[FFmpeg-trac] #1003(avformat:new): matroska file hits eof after any seek
FFmpeg
trac at avcodec.org
Fri Feb 17 18:33:05 CET 2012
#1003: matroska file hits eof after any seek
----------------------------------+---------------------------------------
Reporter: DonMoir | Type: defect
Status: new | Priority: normal
Component: avformat | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
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 at 384Kbps
17.00 A-V: 0.035 fd= 13 aq= 0KB vq= 0KB sq= 0B f=0/0 f=0/0
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1003>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list