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.

TI speech codec vs ffmpeg codec

Other Parts Discussed in Thread: DM3730

Hi All,

I am trying to encode g722 using TI g722enc in DSP and decode it with ffmpeg g722 decoder and vice versa. When I decode g722, encoded with TI encoder, using TI decoder output is perfect but if i decode the same with ffmpeg decoder output has many unwanted frequencies. It is the same for the reverse direction also.

 

Can anybody have any idea on this?

 

Thanks

Jibin

  • We will get back in 1-2 days.

    regards

    Yashwant

  • This is what i got from team

    ---------------

    There is a known issue with G722/C64x+ implementation. The encoder output is not as per RTP payload, it is byte-swapped. The same issue was fixed with C55x implementation, but it is pending for C64x+ implementation.
     
    This could be causing the interoperability issue.
    -------------------
  • Hi Yashwant Dutt,

    Thanks for the reply.

    Can you explain "The encoder output is not as per RTP payload, it is byte-swapped"?

    G722 encoder takes 16bit input and gives 8bit output. I have seen the byte swapping for input 16bit PCM data in dvsdk_4_02_00_06_dm3730 g722 test application, but its not working for me.

    Is it possible to get more info on this?

     

    Thanks

    Jibin

     

  • Though the G722 encoder output is 8-bit array, internal to the TI codec, it is treated as 16-bit array and the output was written in little-endian format. However, the it should be written in big-endian format. Hence, in every 16bit output value, the bytes were swapped. As the TI decoder is also assuming the same, it was decodable with TI decoder.

    You please try swapping the bytes in the encoder output (i.e. if you have bytes as 0, 1, 2, 3 ...etc, you make them as 1, 0, 3, 2 ...etc) and it could be decodable with any other G722 decoder implementation, and vice versa.

    This was a known issue and will be fixed soon.

    Thanks

    Venkat

  • Hi Venkat,

    Thanks for your answer.

    I am planning to use G711, G723, G726, G729 also in my project. Is there any known issues associated with these codec?

    Is there any wiki page describing these known bugs?

     

    Thanks

    Jibin