[Ffmpeg-devel] losing frame after a seek (not aproblembecausethisframe isn't a key frame)

Munier Nicolas Nicolas.Munier
Wed Apr 26 14:29:47 CEST 2006

Thanks for your help Michael,

And great job your are all doing developing those libs.
I first had trouble using av_read_frame in place of av_read_packet (That's why I used CODEC_FLAG_TRUNCATED), but it works fine now without flags :).
And it is way easier and clearer.



-----Message d'origine-----
De?: ffmpeg-devel-bounces at mplayerhq.hu [mailto:ffmpeg-devel-bounces at mplayerhq.hu] De la part de Michael Niedermayer
Envoy??: mardi 25 avril 2006 12:10
??: FFMpeg development discussions and patches
Objet?: Re: [Ffmpeg-devel] losing frame after a seek (not aproblembecausethisframe isn't a key frame)


On Tue, Apr 25, 2006 at 11:22:42AM +0200, Munier Nicolas wrote:
> > you should never set CODEC_FLAG_TRUNCATED, but instead use a AVParser
> > libavformat will do that automatically for you if you use it instead
> > of another demuxer
> Hi,
> Thanks for the tip.
> Do you know where I can find any sample code using the
> AVCodecParserContext and its relative functions to parse a video stream
> in frames. I found the declaration and definition of the functions but
> I'm not sure of the way to use it (initialisation and retrieving frame).

the source for the av_read_frame and av_read_frame_internal functions might
be worth looking at



In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is

ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu

More information about the ffmpeg-devel mailing list