Opened 13 years ago
Closed 13 years ago
#1003 closed defect (fixed)
matroska file hits eof after any seek
Reported by: | DonMoir | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | mkv |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
This file is probably a "bad" file.
http://sms.pangolin.com/temp/bad_seek_matroska_eof.mkv (103 mb)
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 timestamp 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.
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.
no errors reported by ffplay or ffmpeg. If you do ffmpeg -ss 10... it will claim nothing was encoded.
ffplay bad_seek_matroska_eof.mkv
ffplay version N-37771-gfd0b8d5 Copyright (c) 2003-2012 the FFmpeg developers
built on Feb 11 2012 13:42:37 with gcc 4.6.2
libavutil 51. 39.100 / 51. 39.100
libavcodec 54. 1.100 / 54. 1.100
libavformat 54. 0.100 / 54. 0.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 62.100 / 2. 62.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, matroska,webm, from 'bad_seek_matroska_eof.mkv':
Metadata:
title : Backstreet.Boys.Live.From.O2.Arena.2008.HDTVRip.1080p.-VoLoNa by HDTVshek.HET
Duration: 00:01:50.84, start: 0.000000, bitrate: 7683 kb/s
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : Backstreet.Boys.Live.From.O2.Arena.2008.HDTVRip.1080p.-VoLoNa
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s (default)
Metadata:
title : AC3 5.1@384Kbps
17.00 A-V: 0.035 fd= 13 aq= 0KB vq= 0KB sq= 0B f=0/0 f=0/0
Change History (3)
comment:1 by , 13 years ago
Keywords: | mkv added |
---|---|
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fails differently if the file is cut.
Sample uploaded to http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1003/