Last modified: 2014-07-20 15:58:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69953, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67953 - ogv transcodes have broken audio tracks with ffmpeg2theora 0.29
ogv transcodes have broken audio tracks with ffmpeg2theora 0.29
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-13 18:08 UTC by Brion Vibber
Modified: 2014-07-20 15:58 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
example broken ogv transcode output (1.81 MB, video/ogg)
2014-07-13 18:08 UTC, Brion Vibber
Details

Description Brion Vibber 2014-07-13 18:08:26 UTC
Created attachment 15929 [details]
example broken ogv transcode output

ogv transcodes of files with audio have broken audio tracks with ffmpeg2theora 0.29...

Depending on the player, either the video plays silently (Chrome) or it sort of explodes and stops immediately (VLC, ogv.js).

Tested on Mac OS X with libav 10.2 & ffmpeg2theora 0.29 installed via Homebrew.
Tested on Ubuntu Trusty (MediaWiki-Vagrant) with libav 9.13 and ffmpeg2theora 0.29 from distro packages.


Example command line as derived from wiki debug logs:

ffmpeg2theora '/srv/images/3/3f/Jarry_-_Métro_de_Montréal_(640×360).ogv' -V '160' -F '15' -a '-1' -H '44100' -c '2' --no-upscaling --keyint '128' --buf-delay '256' --width '284' --height '160' --aspect '284:160' -o out-160p.ogv

Note you can get that particular source video from <https://upload.wikimedia.org/wikipedia/commons/3/3f/Jarry_-_M%C3%A9tro_de_Montr%C3%A9al_%28640%C3%97360%29.ogv>

ffmpeg2theora 0.29's console output on Ubuntu Trusty:


[ogg @ 0xea7560] Multiple fisbone for the same stream is not implemented. Update your Libav version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[ogg @ 0xea7560] 29 bytes of comment header remain
[ogg @ 0xea7560] truncated comment header, 1 comments not found
[ogg @ 0xea7560] max_analyze_duration reached
Input #0, ogg, from '/srv/images/3/3f/Jarry_-_Métro_de_Montréal_(640×360).ogv':
  Duration: 00:01:50.12, start: 0.000000, bitrate: 1140 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 640x368, 23.98 fps, 23.98 tbn, 23.98 tbc
    Metadata:
      ENCODER         : ffmpeg2theora-0.26+svn16924
    Stream #0.2: Audio: vorbis, 48000 Hz, stereo, fltp, 125 kb/s
    Metadata:
      ENCODER         : ffmpeg2theora-0.26+svn16924
      SOURCE_OSHASH   : 96dc36c92cf57b6a
  Pixel Aspect Ratio: 1.00/1   Frame Aspect Ratio: 1.77/1
  Resize: 640x368 => 284x160
  Resample Framerate: 23.976 => 15.000
  Resample: 48000Hz => 44100Hz
[audioresample @ 0x104e500] Audio sample format conversion failed
[audioresample @ 0x104e500] Audio sample format conversion failed
.... lots more of these ....
[audioresample @ 0x104e500] Audio sample format conversion failed
[audioresample @ 0x104e500] Audio sample format conversion failed
  0:01:49.93 audio: 0kbps video: 137kbps, ET: 00:00:00, est. size: 1.8 MB   
  0:01:50.12 audio: 0kbps video: 137kbps, time elapsed: 00:00:08
Comment 1 Bawolff (Brian Wolff) 2014-07-13 20:50:51 UTC
ogginfo has the following to say about the attached file:

Negative or zero granulepos (0) on Vorbis stream outside of headers. This file was created by a buggy encoder
Vorbis stream 3:
	Total data length: 29 bytes
	Playback length: 0m:00.000s
	Average bitrate: inf kb/s
Logical stream 3 ended
Comment 2 Brion Vibber 2014-07-13 22:39:29 UTC
I've got a patch in progress to optionally use avconv/ffmpeg instead of ffmpeg2theora to produce the .ogv transcodes; it seems to work on Trusty, but still testing on more files.
Comment 3 Gerrit Notification Bot 2014-07-13 22:45:37 UTC
Change 145990 had a related patch set uploaded by Brion VIBBER:
Optionally use avconv/ffmpeg for .ogv transcodes

https://gerrit.wikimedia.org/r/145990
Comment 4 Gerrit Notification Bot 2014-07-20 15:36:54 UTC
Change 145990 merged by jenkins-bot:
Optionally use avconv/ffmpeg for .ogv transcodes

https://gerrit.wikimedia.org/r/145990
Comment 5 Bawolff (Brian Wolff) 2014-07-20 15:58:33 UTC
Resetting to new, as that's more a work around then a fix to the underlying issue.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links