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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Feb 17 18:37:33 CET 2012


On Fri, Feb 17, 2012 at 04:45:30AM -0500, Don Moir wrote:
> The only recovery is to shut the file down and reopen it.

I forgot to say: almost certainly not.
Seeking with AVSEEK_FLAG_ANY should work just fine.
It might make sense to use that automatically for H.264 with
sei_recovery_frame_cnt >= 0 (there seems no easy way to
get this info out of FFmpeg. Well, except by inducing it
from key_frame == 1 and frame_type != I I guess).


More information about the ffmpeg-devel mailing list