Hi all,
I have been playing with my application a little bit (based on Gstreamer) When I try to decode a SD interlaced H.264 video, the decoder fails out with error "-1 etx: 0xC000"
From what I have gathered so far, the 0xC000 is a parameter that the decoder does not like about the stream and it is a fatal error. Is that a correct analysis? And, if that is, how can I go about getting this stream to play? I am pulling this from a RTSP stream and playing. I know that my setup is correct because I can play all kinds of other streams (progressive H.264/MPEG4).
The stream plays fine in VLC, so this just seems to be a compatibility issue for some reason. Can someone point me in the right direction of how to get this playing the stream?
If anyone can take a look, you can access the stream from the following URL in VLC:
rtsp://streaming3.mstraffic.com:1935/rtpinternal/031905-hq.stream
Maybe someone at TI can look at the video and tell me what is wrong with it?
System:
DVSDK 2.10
Gstreamer 1.01
DM368
Thanks
Tim
Hi Tim,
I am not able to access the video. Can you attach the video here?. Or there is file based stand alone test application provided with decoder release package you can try to decode stream using this application.
What is version of decoder you are using? if you are not using 02.00.00.13 version please upgrade to it.
link for the codec package is http://software-dl.ti.com/dsps/dsps_public_sw/codecs/DM36x/index_FDS.html
Can you check this file out for me? I recorded it into MP4 file.
Can you check this out for me?
Your attached stream successfully decoded. Can you please tell which decoder mode you are using? If you are not setting universal mode, please set it.
Please note that, this stream is not starting with IDR, so you can expect error from decoder till it gets IDR.
Thanks,
Veeranna
Hi Veeranna,
Thanks for looking at it for me. I am using Gstreamer for decoding. But I am on DVSDK 2.1 and using it out of the box. So, I think that Gstreamer TI uses the default settings on the decoder. But, I am getting back a fatal error when I try to decode (this is from RTP stream, not from file) Should I just ignore that errors until the stream starts? I assume that the decoder is set for universal out of the box? But, if that is not the case can you tell me how to change it?
Veeranna,
Also, lets assume that I try to keep decoding. How will I know how much data to progress forward before sending more data to the decoder? Since the decoder did not decode the frame, I will not know how much data was used correct?
If you are using base param mode, then default decoder mode will be universal. you can check this by having look at what size you are passing to parameter struct.
As you said you are able progressive streams, from where you are getting streams? from DM36x TI encoder or else?. And to change any params or to use extended params please refer testapp provided with release package or http://processors.wiki.ti.com/index.php/Extending_data_structures_in_XDM.
Regarding data feeding to decoder, application need not worry as decoder sends bytes consumed in process call you just need to add this offset while sending ptr to next process call.
I kindly suggest you to refer test application and run it with your stream. It is very simple and can change any parameter and you can understand codec interface better.
test app will be found at dm365_h264dec_02_00_00_xx_production\packages\ti\sdo\codecs\h264dec\apps.
Can you look at my other post please?
http://e2e.ti.com/support/embedded/multimedia_software_codecs/f/356/t/207857.aspx
http://pastebin.com/EPwtSZkT