[FFmpeg-devel] [PATCH] avformat/flacdec: support fast-seek
chingyichan.tw at gmail.com
Thu Sep 24 17:41:03 CEST 2015
Is it acceptable to provide an option for different methods
between accuracy seek and fast but inaccurate.
For example, mp3dec having "usetoc" option to seek by toc.
2015-09-24 22:02 GMT+08:00 Hendrik Leppkes <h.leppkes at gmail.com>:
> On Thu, Sep 24, 2015 at 2:44 PM, Ching-Yi Chan <chingyichan.tw at gmail.com>
> > I found the generic seek will invoke the flac_read_timestamp function.
> > It read exta packet will slow down the seek time
> > https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/flacdec.c#L224
> It does that to get to an accurate seek position. We do not have a way
> to tell avformat to do a fast and inaccurate seek, and accuracy seems
> more important to me, if the format allows for it.
> Reading the index would however still allow this seek function to be
> faster than it is now, since it knows the points in the index as
> boundary points.
> - Hendrik
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
More information about the ffmpeg-devel