[Ffmpeg-devel] H264 segfault

Måns Rullgård mru
Sat Jun 4 01:29:44 CEST 2005

"leon jorgunsen" <leon.jorgunsen at caramail.com> writes:

>> "leon jorgunsen" <leon.jorgunsen at caramail.com> writes:
>> >> On Fri, Jun 03, 2005, M?ns Rullg?rd wrote:
>> >> > Derk-Jan Hartman <d.hartman at student.utwente.nl> writes:
>> >> > That clip doesn't contain any IDR frames, so it won't be playable.
>> >>  Wrong. AVC broadcast streams do not use IDR frames (or very few) to
>> >> be able to do open gop.
>> >>  You need to start decoding from I frame (there is a SEI message to
>> >> tell you which one can be used)
>> >
>> > Recovery point SEI messages may be used by Broadcasters.
>> > But the stream contains IDR and no SEI NAL units.
>> Show me.
> The first NAL units of the H.264 stream are "Access unit delimiter" 
> or "Coded slice of a non-IDR picture", so you cannot decode it as 
> no PPS/SPS can be activated.
> After those "not-decodable" NAL units, a SPS and a PPS NAL units 
> arrive just before a "Coded slice of an IDR picture" NAL unit.
> The pps_id present in the slice headers allows a decoder to 
> activate the SPS and PPS already received. 
> So you can decode the video stream properly from this point.
> The SPS ans PPS are repeated before every other IDR in the stream
> and no SEI is present.

You're right, the SPS and PPS are there.  Now the question is why
libavcodec doesn't decode it, but keeps complaining about missing
PPS, without producing as much as a single frame of output.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list