[FFmpeg-devel] matroska file hits eof on any seek
donmoir at comcast.net
Fri Feb 17 10:45:30 CET 2012
This file is probably a "bad" file.
VLC can seek into it effectively but it will end up breaking down with distorted frames.
ffdshow can seek into it but it is very slow.
Use avformat_seek_file at any position including zero and the next packet read will fail.
avformat_seek_file returns zero as an indication of success.
The only recovery is to shut the file down and reopen it.
Any seek with ffplay, smplayer, my own app, just stops playback (because it will hit EOF) and you can't get out of it without closing the file.
I have not opened a ticket on it but will if requested. I figure you have enough tickets already but let me know.
If nothing else can be done about it, then at least a failure by avformat_seek_file would be good as long as it was able to continue to playback.
If anyone wants to take a look, here's the file:
http://sms.pangolin.com/temp/bad_seek_matroska_eof.mkv (103 mb)
More information about the ffmpeg-devel