[Libav-user] H264 decoding problem

Krishna krishnaks at iwavesystems.com
Tue Aug 21 09:25:49 CEST 2012


I guess you need to pre-append SPS and PPS information (not only (0x00 0x00 0x01)) in the beginning of 1st frame. 
Decoder will use this information.

From: Ivan Ushakov 
Sent: Sunday, August 19, 2012 12:31 PM
To: libav-user at ffmpeg.org 
Subject: [Libav-user] H264 decoding problem

Hello. 

I'm using libav for decoding h264 in my iOS application. This application also uses Live555 for RTSP stuff.

I use following link for testing: rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov

When I get data from Live555 MediaSink I add 3 bytes (0x00 0x00 0x01) at the beginning and trying to decode it with libav.
I got following errors:

2012-08-19 10:21:55.008 RTPlayer[333:12f03] Unknown NAL code: 28 (2350 bits)
2012-08-19 10:21:55.010 RTPlayer[333:12f03] no frame!
2012-08-19 10:21:55.108 RTPlayer[333:12f03] non-existing PPS 0 referenced
2012-08-19 10:21:55.109 RTPlayer[333:12f03] decode_slice_header error
2012-08-19 10:21:55.110 RTPlayer[333:12f03] no frame!
2012-08-19 10:21:55.110 RTPlayer[333:12f03] non-existing PPS 0 referenced
2012-08-19 10:21:55.111 RTPlayer[333:12f03] decode_slice_header error
2012-08-19 10:21:55.112 RTPlayer[333:12f03] no frame!

...

2012-08-19 10:21:56.572 RTPlayer[333:12f03] non-existing PPS 0 referenced
2012-08-19 10:21:56.572 RTPlayer[333:12f03] decode_slice_header error
2012-08-19 10:21:56.573 RTPlayer[333:12f03] Unknown NAL code: 29 (191 bits)
2012-08-19 10:21:56.574 RTPlayer[333:12f03] no frame!
2012-08-19 10:21:56.672 RTPlayer[333:12f03] non-existing PPS 0 referenced
2012-08-19 10:21:56.673 RTPlayer[333:12f03] decode_slice_header error
2012-08-19 10:21:56.674 RTPlayer[333:12f03] no frame!
2012-08-19 10:21:56.675 RTPlayer[333:12f03] non-existing PPS 0 referenced
2012-08-19 10:21:56.676 RTPlayer[333:12f03] decode_slice_header error
2012-08-19 10:21:56.677 RTPlayer[333:12f03] Partitioned H.264 support is incomplete
2012-08-19 10:21:56.678 RTPlayer[333:12f03] non-existing PPS 0 referenced
2012-08-19 10:21:56.679 RTPlayer[333:12f03] decode_slice_header error
2012-08-19 10:21:56.679 RTPlayer[333:12f03] no frame!

And so on.

Could somebody help me with this?

Thank you


--------------------------------------------------------------------------------
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120821/55546e56/attachment.html>


More information about the Libav-user mailing list