[Libav-user] Why is av_seek_frame() inaccurate in some cases ?

Michael Bradshaw mbradshaw at sorensonmedia.com
Sat Apr 14 18:49:40 CEST 2012


On Sat, Apr 14, 2012 at 10:40 AM, Lucas Soltic <soltic.lucas at gmail.com>wrote:
>
> So I don't think I did anything fancy, but I still can't find out why the
> video seeking is inaccurate. I would be really grateful if someone had
> ideas about this issue.
>

There's two reasons I can see why you would be getting this result: 1) It
could be seeking to the closest keyframe in the video, and 2) some demuxers
seek by DTS and not PTS.

You say it works fine for H.264 videos though, so I'm not entirely sure
what could be causing it.

--Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120414/edb0048d/attachment.html>


More information about the Libav-user mailing list