Opened 4 years ago

Closed 4 years ago

#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 (1)

broken.ogv (2.0 MB) - added by reimar 4 years ago.
Broken Ogg file from Debian ticket.

Change History (4)

Changed 4 years ago by reimar

Broken Ogg file from Debian ticket.

comment:1 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords ogg added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:2 Changed 4 years ago by michael

teh "Too large number of skiped frames" error doesnt appear anymore and the convertion to avi appears to succeed.

comment:3 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Fixed in FFmpeg 1.0 and current git head.

Note: See TracTickets for help on using tickets.