[FFmpeg-trac] #3827(ffmpeg:new): Provide an option to quickly seek by a number of frames

FFmpeg trac at avcodec.org
Mon Aug 4 17:01:54 CEST 2014


#3827: Provide an option to quickly seek by a number of frames
-------------------------------------+----------------------------------
             Reporter:  11rcombs     |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+----------------------------------

Comment (by ubitux):

 {{{avformat_seek_file()}}} has an almost unused flag called
 {{{AVSEEK_FLAG_FRAME}}} that could be used for this purpose if implemented
 properly. Subtitles use that (see {{{ff_subtitles_queue_seek()}}}) because
 they actually have a complete index. Assuming we do an index-pass, that
 might be realizable with some demuxers supporting the load of that index.

 Note that your proposed method would work only if 1 packet = 1 video
 frame, which AFAIK is not always true.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3827#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list