[Libav-user] Why does av_seek_frame() not seek to a keyframe?

Don Moir donmoir at comcast.net
Mon Jul 23 21:26:37 CEST 2012


----- Original Message ----- 
From: "Michael Bradshaw" <mbradshaw at sorensonmedia.com>
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice 
and libavfilter." <libav-user at ffmpeg.org>
Sent: Monday, July 23, 2012 3:10 PM
Subject: Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?


> On Mon, Jul 23, 2012 at 12:50 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> 
> wrote:
>> [...]
>> You are probably right, I assumed that from a users' perspective,
>> the only relevant question is if above command line returns a gray
>> frame or the next keyframe.
>
> Ah, I see. I think that's where the confusion is coming from. I think
> that that behavior is OK (well, we all want better seeking
> functionality eventually, but for the time being it's currently OK
> enough), provided it's clearly documented. The way it is currently
> documented, I thought av_seek_frame() would seek to an actual keyframe
> ("Seek to the keyframe at timestamp."). Personally, I think it should
> at least be stated that it may seek to a non keyframe for some
> formats/streams.
>
> Thoughts?
>

Probably bug report should be posted. These are the kind of things that can 
make using ffmpeg difficult. Mostly ffmpeg works really well, but then you 
run into these kind of issues. 



More information about the Libav-user mailing list