[Ffmpeg-devel] h264 stream decoding problem
Sat Feb 24 00:59:05 CET 2007
> From: Francois Oligny-Lemieux [mailto:eucloid at gmail.com]
> Sent: 23 February 2007 22:32
> On 2/23/07, Gonzalo Berdeal <gonberdeal at hotmail.com> wrote:
> > Hello,
> > I think that all the non-keyframes that arrive to the
> > avcodec_decode_video() function are discarded by this function
> > automatically and the function will begin working when one keyframe
> > arrives. So you don't need to worry if the first frame arriving to
> > avcodec_decode_video() function is keyframe or not.
> no not true.
> There is a need to start on a key frame (at least in h264.c).
> Otherwise it shows motion over empty picture.
Actually I've substituted avcodec_decode_video() by a call to
a dsp function, since I'm using ffmpeg on an embedded platform.
That dsp must have a keyframe as the very first frame. Are there
ffmpeg functions where I can test for keyframes before calling
More information about the ffmpeg-devel