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

Pavel Koshevoy pkoshevoy at gmail.com
Fri Feb 17 18:20:58 CET 2012

On 2/17/2012 2:45 AM, Don Moir wrote:
> This file is probably a "bad" file.

Yes, it is.  If you look at it with mkvinfo GUI you'll see that there 
are no keyframes there.

You can fix it using yamkaRemux, make sure to pass the -fixKeyFlag 
option.  With this option yamkaRemux parses H.264 tracks and looks for 
IDR nal_init_type.  It uses that to fix the Matroska SimpleBlock 
keyframe flag.

You can get yamka source here:

Binaries here:

Hope this helps,

More information about the ffmpeg-devel mailing list