<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>I guess you need to pre-append SPS and PPS information (not only (0x00 0x00 
0x01)) in the beginning of 1st frame. </DIV>
<DIV>Decoder will use this information.</DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=ivan.ushakov@gmail.com 
href="mailto:ivan.ushakov@gmail.com">Ivan Ushakov</A> </DIV>
<DIV><B>Sent:</B> Sunday, August 19, 2012 12:31 PM</DIV>
<DIV><B>To:</B> <A title=libav-user@ffmpeg.org 
href="mailto:libav-user@ffmpeg.org">libav-user@ffmpeg.org</A> </DIV>
<DIV><B>Subject:</B> [Libav-user] H264 decoding problem</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Hello. 

<DIV> </DIV>
<DIV>I'm using libav for decoding h264 in my iOS application. This application 
also uses Live555 for RTSP stuff.</DIV>
<DIV> </DIV>
<DIV>I use following link for testing: <EM 
style="LINE-HEIGHT: 16px; BACKGROUND-COLOR: rgb(255,255,255); FONT-STYLE: normal; FONT-FAMILY: arial,sans-serif">rtsp</EM><SPAN 
style="LINE-HEIGHT: 16px; BACKGROUND-COLOR: rgb(255,255,255); FONT-FAMILY: arial,sans-serif; COLOR: rgb(34,34,34)">://</SPAN><EM 
style="LINE-HEIGHT: 16px; BACKGROUND-COLOR: rgb(255,255,255); FONT-STYLE: normal; FONT-FAMILY: arial,sans-serif">184.72</EM><SPAN 
style="LINE-HEIGHT: 16px; BACKGROUND-COLOR: rgb(255,255,255); FONT-FAMILY: arial,sans-serif; COLOR: rgb(34,34,34)">.239.149/vod/mp4:BigBuckBunny_175k.mov</SPAN></DIV>
<DIV> </DIV>
<DIV>When I get data from Live555 MediaSink I add 3 bytes (0x00 0x00 0x01) at 
the beginning and trying to decode it with libav.</DIV>
<DIV>I got following errors:</DIV>
<DIV> </DIV>
<DIV>
<DIV>2012-08-19 10:21:55.008 RTPlayer[333:12f03] Unknown NAL code: 28 (2350 
bits)</DIV>
<DIV>2012-08-19 10:21:55.010 RTPlayer[333:12f03] no frame!</DIV>
<DIV>2012-08-19 10:21:55.108 RTPlayer[333:12f03] non-existing PPS 0 
referenced</DIV>
<DIV>2012-08-19 10:21:55.109 RTPlayer[333:12f03] decode_slice_header error</DIV>
<DIV>2012-08-19 10:21:55.110 RTPlayer[333:12f03] no frame!</DIV>
<DIV>2012-08-19 10:21:55.110 RTPlayer[333:12f03] non-existing PPS 0 
referenced</DIV>
<DIV>2012-08-19 10:21:55.111 RTPlayer[333:12f03] decode_slice_header error</DIV>
<DIV>2012-08-19 10:21:55.112 RTPlayer[333:12f03] no frame!</DIV>
<DIV> </DIV>
<DIV>...</DIV>
<DIV> </DIV>
<DIV>2012-08-19 10:21:56.572 RTPlayer[333:12f03] non-existing PPS 0 
referenced</DIV>
<DIV>2012-08-19 10:21:56.572 RTPlayer[333:12f03] decode_slice_header error</DIV>
<DIV>2012-08-19 10:21:56.573 RTPlayer[333:12f03] Unknown NAL code: 29 (191 
bits)</DIV>
<DIV>2012-08-19 10:21:56.574 RTPlayer[333:12f03] no frame!</DIV>
<DIV>2012-08-19 10:21:56.672 RTPlayer[333:12f03] non-existing PPS 0 
referenced</DIV>
<DIV>2012-08-19 10:21:56.673 RTPlayer[333:12f03] decode_slice_header error</DIV>
<DIV>2012-08-19 10:21:56.674 RTPlayer[333:12f03] no frame!</DIV>
<DIV>2012-08-19 10:21:56.675 RTPlayer[333:12f03] non-existing PPS 0 
referenced</DIV>
<DIV>2012-08-19 10:21:56.676 RTPlayer[333:12f03] decode_slice_header error</DIV>
<DIV>2012-08-19 10:21:56.677 RTPlayer[333:12f03] Partitioned H.264 support is 
incomplete</DIV>
<DIV>2012-08-19 10:21:56.678 RTPlayer[333:12f03] non-existing PPS 0 
referenced</DIV>
<DIV>2012-08-19 10:21:56.679 RTPlayer[333:12f03] decode_slice_header error</DIV>
<DIV>2012-08-19 10:21:56.679 RTPlayer[333:12f03] no frame!</DIV>
<DIV> </DIV></DIV>
<DIV>And so on.</DIV>
<DIV> </DIV>
<DIV>Could somebody help me with this?</DIV>
<DIV> </DIV>
<DIV>Thank you</DIV>
<P>
<HR>
_______________________________________________<BR>Libav-user mailing 
list<BR>Libav-user@ffmpeg.org<BR>http://ffmpeg.org/mailman/listinfo/libav-user<BR></DIV></DIV></DIV></BODY></HTML>