[Libav-user] Why does av_seek_frame() not seek to a keyframe?
Michael Bradshaw
mbradshaw at sorensonmedia.com
Thu Jul 19 19:20:23 CEST 2012
On Thu, Jul 19, 2012 at 2:54 AM, John Stebbins <stebbins at jetheaddev.com> wrote:
> Another alternative is libav supplies a helper function that does this for
> you. The API for such a helper would have a parameter to set the seek
> window. The advantage to libav providing a helper function for this is
> libav has more information than the app in many cases in the form of an
> index. There may be keyframes closer to the desired seek position than the
> window limit. libav could seek directly to the closest keyframe to the
> desired position through the index. The application can not do this and
> would always have to seek first to the outer limit of it's desired window
> and then read from that point onward.
I think a function along those lines would be incredibly useful.
--Michael
More information about the Libav-user
mailing list