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 < [email protected]> 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 > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
