[Libav-user] Rewind file to start
d3ck0r at gmail.com
Fri Aug 29 18:44:14 CEST 2014
You also need to flush the codec contexts.
also you probably need SEEK_BACKWARD ... I found that seek( 0, SEEK_ANY )
would skip the first keyframe
There is also av_seek_file()
On Thu, Aug 28, 2014 at 11:35 PM, Lyndon Hill <
emptystate-at-yahoo.co.uk at ffmpeg.org> wrote:
> What is the best (most universal) way to rewind a file to the start ?
> Currently I am using
> av_seek_frame(formatContext, videoStream, 0, AVSEEK_FLAG_ANY);
> However, in an HEVC bit stream, there are no timestamps (as interpreted by
> x265) so this method will not work.
> Thanks in advance
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user