Ticket #1213 (closed defect: fixed)
Ogg: video time stamps start incorrectly, cannot transcode to AVI
| Reported by: | reimar | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avformat |
| Version: | git-master | Keywords: | ogg |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
I am not sure whether this is a broken file or whether the ogg demuxer fills in bogus video time stamps.
The issue here is that audio starts with huge time stamps while video starts with 0.
This was originally reported as a Debian bug because MPlayer has issues handling it: "Bug#668543: mplayer: ogv video freezes with DRI failure".
For FFmpeg, this results in an actually error when transcoding to AVI (though this can probably be worked around without fixing the underlying Ogg demuxer issue, please only close if the Ogg demuxer has been fixed or it is sure the file is too broken to change the Ogg demuxer to work nicely with it):
ffmpeg -i broken.ogv out.avi
ffmpeg version N-39755-g3bb9889 Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 14 2012 00:47:46 with gcc 4.6.3
configuration: --enable-gpl
libavutil 51. 46.100 / 51. 46.100
libavcodec 54. 14.101 / 54. 14.101
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 67.101 / 2. 67.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
[ogg @ 0x1990080] Broken file, keyframe not correctly marked.
Input #0, ogg, from 'broken.ogv':
Duration: 09:11:03.74, start: 0.000000, bitrate: 0 kb/s
Stream #0:0: Data: none
Stream #0:1: Video: theora, yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0:2: Audio: vorbis, 48000 Hz, stereo, s16, 224 kb/s
Metadata:
TITLE : LAC 2012 - High Quality
LOCATION : CCRMA, Stanford University, CA, US
ORGANIZATION : Linux Audio Conference 2012
LICENSE : CC
ENCODER : ffmpeg2theora-0.28+svn18224M
w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:8/9 sws_param:flags=2
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
Output #0, avi, to 'out.avi':
Metadata:
ISFT : Lavf54.3.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, flt, 192 kb/s
Metadata:
TITLE : LAC 2012 - High Quality
LOCATION : CCRMA, Stanford University, CA, US
ORGANIZATION : Linux Audio Conference 2012
LICENSE : CC
ENCODER : ffmpeg2theora-0.28+svn18224M
Stream mapping:
Stream #0:1 -> #0:0 (theora -> mpeg4)
Stream #0:2 -> #0:1 (vorbis -> ac3)
Press [q] to stop, ? for help
[theora @ 0x1bf87c0] vp3: first frame not a keyframe
[avi @ 0x19dcfc0] Too large number of skiped frames 1032161
av_interleaved_write_frame(): Invalid argument
Attachments
Change History
Changed 13 months ago by reimar
-
attachment
broken.ogv
added
comment:1 Changed 12 months ago by cehoyos
- Keywords ogg added
- Status changed from new to open
- Version changed from unspecified to git-master
- Component changed from undetermined to avformat
- Reproduced by developer set



Broken Ogg file from Debian ticket.