[FFmpeg-devel] matroska file hits eof on any seek

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Feb 17 19:41:34 CET 2012

On Fri, Feb 17, 2012 at 11:15:23AM -0700, Pavel Koshevoy wrote:
> On 2/17/2012 10:51 AM, Reimar Döffinger wrote:
> >Also, if intra refresh is used then it is possible that there
> >is not one single IDR slice even in a multi-hour video that can
> >be seeked to any place without any issue.
> Can you suggest how I should handle this situation?

If you look at libavcodec/h264_parser.c you'll find
what FFmpeg does.
For this case: Parse the recovery SEI and check
recovery_frame_cnt. In that case probably all frames should be
marked as keyframes.

More information about the ffmpeg-devel mailing list