[Ffmpeg-devel] h264 stream decoding problem

Klaas-Pieter Vlieg vlieg
Sat Feb 24 12:12:37 CET 2007


Hi
>
> From: Francois Oligny-Lemieux [mailto:eucloid at gmail.com] 
> Sent: 24 February 2007 02:23
> Hello,
> 
> Well if it can help, I use a parser where I wait for an I 
> frame. The logic I use (and correct me if I miss cases) and 
> which works fine with at least two devices is:
> 
> if nal_type == NAL_SLICE_IDR //  ==5
>  then it's a key frame
> if nal_type == NAL_SLICE // ==1
>  and if ( slice_type == 7 or 2 )
>    then it's a key frame
> 
> It is very minimalist and I suspect it might not work for all 
> sort of bitstream.
> 
Sure this helps, thanks a lot :)
Can anyone with h264 knowledge confirm this is covering most or all key frame cases?

Klaas-Pieter Vlieg




More information about the ffmpeg-devel mailing list