[Libav-user] Rewind file to start
J Decker
d3ck0r at gmail.com
Fri Aug 29 18:44:14 CEST 2014
You also need to flush the codec contexts.
av_flush_buffer
http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/17549
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:
> Hi,
>
> 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
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140829/a25b9c64/attachment.html>
More information about the Libav-user
mailing list