[Libav-user] Byte based seeking
arthur.500 at gmail.com
Tue Aug 22 00:15:26 EEST 2017
What is the best approach to perform byte seeking when seek via timestamp
(by using av_seek_frame()) is not available?
In my case, it is feasible to preprocess the input video by iterating
through all AVFrames. I read that av_seek_frame() with AVSEEK_FLAG_BYTE
doesn't always work.
I tried to use the approach described in  using avio_seek() but I did
not succeed, I populated a (timestamp -> byte) map, such that "byte" is the
byte offset of the last read key frame while preprocessing the video. The
frame that I obtain after performing the seek comes way before the target,
and there are lots of key frames between them.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user