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.

H.264 (ver 2.0) DM6446 decoder fails to decode non IDR frame.

Hi,

I am using DM6446 and trying to make a IP based video phone. We have started coding using loopbackCombo code base. So far encoder is working fine. When we tried to decode remote frame we faced some problem. The remote end is sending to DM6446 H.264 RTP packet. They are sending multiple RTP with same timestamp. Those packets are not FU (fragmented packet), they are single NALU packet. So we have inserted delimiter 0x00000001 infront of every packet.


Now the problem we have faced is that the non IDR packet is not decoded successfully. The TI decoder return error code 0x8a2.
Here is the decoder frame sequence which we are following right now.

H.264 Decoder on DM6446 version 2.0 (December 2008)

Frame0 = 0x00000001 + SPS + 0x00000001 + PPS +  0x00000001 + IDR pic0 ... + 0x00000001 + IDR pic5 [successfully decoded, IDR pic0 to IDR pic5 have same timestamp]
Frame1 = 0x00000001 + non IDR pic [successfully decoded, because there is only one packet]
Frame2 = 0x00000001 + non IDR pic0 + 0x00000001 + non IDR pic1 + 0x00000001 + non IDR pic2 [decoder failed with error code 0x8a2, non IDR pic0 to pic2 have same timestamp]


I appreciate your feedback to resolve this issue.

 

  • Hi,

    Could you please share the encoded stream, so that we will verify and let you know about the same. And also mention the complete version of the release package, which you are using.

    Best Regards,

    Mahantesh

     

  • Here is the version of H264 which we are using. If you have more updated release version please give me the downloading link.

    The H.264 encoder version is 2.00 and release date is November 2008.

    The H.264 decoder version is 2.00 and release date is December 2008.

    We have fixed decoder problem by added proper encoded frame size and decoder does not produce any error. Now we found that the output of decoder gives nice video

    from one of the 3rd party phone. But when we tried with another 3rd party phone the video is not nice, it has lots of color block on the video. Though the decoder return

    code says successful.

     

    Any thought?

     

     

  • Hi,

    Can you please check whether the decoder returns any extended error code through the following variable,  

    "outArgs.viddecOutArgs.decodedBufs.extendedError",

    If this is zero, then please share the stream for further verification at our end as well. 

    The release package version whatever you are using is the correct one, which is the last release package.

    Best regards,

    Mahantesh

     

  • Hi Mahantesh,

    The value of the extended error(outArgs.decodedBufs.extendedError) of decoder is zero. But the output display frame has lots of color blocks.

    I have uploaded the wireshark capture in 4shared.com. You can download "h264_ptk.cap" stream capture from the following link.

    http://www.4shared.com/file/pHJ0xG-_/h264_ptk.html

    Let me know if you need anything else.

     

    Thank you

    --Manjur

  • Hi Manjur,

    Thanks for the info.

    And also, the stream "h264_ptk.cap" you have mentioned is in which format, is it in mp4 or avi format or contains plane encoded video data?, because I am unable to play this stream using Elecard and VLC player. Please provide the proper stream for verifying the same at our end.

    Best regards,

    Mahantesh

     

     

  • Hi Mahantesh,

    Thanks for your quick reply.

    As you want to play the stream on VLC, here is another link which I have tested on VLC player.

    http://www.4shared.com/get/bkLsnvvn/video.html

    The format is plane H.264 encoded frame. There are 240 encoded frames on this file. 

    Let me know if you are able to play it. The previous h264_ptk.cap file was just network capture which is not directly playable on VLC.

    Thank you

    --Manjur

  • Hello Manjur,

    I have downloaded file video.h264 from path http://www.4shared.com/get/bkLsnvvn/video.html

    I have tried to decode this stream using reference JM decoder version 17.2 (latest version available). Then in the generated output also colored patches are seen. Please confirm this by generating output at your end using reference JM decoder latest version.

    VLC player shows output well, but it might be using some error concealment routine to conceal these colored patches.

    Regards,

    Jaydeep

  • Hi Jaydeep,

    Thanks for your reply. I did not try with JM decoder yet(not enough time right now). But I would like to add some information. This video stream works with our four different 3rd party video phone perfectly. And those four video phone are using H264 standard. Is it possible to dig more deep to find why it fails on TI H264 decoder?

    Let me know if you get something.

    Thank you

    --Manjur