This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

A decode problem on Dm6467



Hello,

I'm now trying to realize the communication between two dm6467s. One dm6467 works as a client and the other  as a server. The client sends encoded data to the server and the server receive the data, decoding it. 

If the client sends packets after the server starts working, the whole program runs well. Even if I pause the client and then continue it , there is no decoding problem.

However,  if the client sends packets before the server starts working, the decoding thread will fail with a message "failed to

decode the video buffer". The return value of the decode function is "-1". I've no ideas what's wrong with it.

Can anyone help me?

 

  • I am assuming this is under Linux. Please state PSP. What's the rest of the software stack like? Please identify all the TI and non-TI components.

  • Hi Paul. Yin ,

    It is under Ubuntu Linux. There are no non-Ti components.

    The Ti components I use are dvsdk_2_00_00_18, PSP_02_00_00_110, dmai_1_20_00_06, codec_engine_2_23_01, xdais_6_23, linuxutils_2_23_01, bios_5_33_04,

    biosutils_1_01_00, cg6x_6_0_21, dsplink-1_60-prebuilt, xdctools_3_15_00_50, edma3_lld_1_05_00.

    I modify the  decode and encode examples in dvsdk_demos_2_00_00_04 and hope to realize its network function. Now, I only encode and  decode video data using H.264.

    Audio data haven't been added into the program. Data is transferred on UDP in a LAN.

  • If the client sends data before the server begins,  the server will miss the first several packets. I guess  these missing packets from the encoder  maybe contain important information  and  the decoder need  them to finish the first decode progress and get the requirements. I cannot think of other reasons which can explain this problem.

    I've tested that if the packets lost are not the first several ones, the decoder will report errors but I manage to modify the program and  let the decoder continue  decoding.However

    this does not work if the first several packets are lost. The whole program will stop and exit.

  • Thanks for the clarification. Let's see if our experts in the Linux forum can comment.