oggenc ignores --ignorelength switch, unable to process Large Wav files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vorbis-tools |
Fix Released
|
Unknown
|
|||
vorbis-tools (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: vorbis-tools
oggenc ignores the command line switch --ignorelength, which should enable it to process WAV files bigger than 2GB. In the current maverick version (also in the upstream trunk) dumping a DVD 5.1 audio track with mplayer and feeding the WAV to oggenc will stop encoding always exactly after 62 minutes of audio, or to be more precise after 3728.2 seconds.
Usual command line is:
$ mkfifo ./tmp/fifo
$ oggenc --ignorelength -q1.9 -o tmp/audio.ogg ./tmp/fifo &
$ mplayer -really-quiet -channels 6 -aid 128 -ao pcm:fast:
WARNING: WAV file uses side surround instead of rear for 5.1;
remapping side speakers to rear in encoding.
Opening with wav module: WAV file reader
Encoding "/home/
at quality 1.90
[100.0%] [ 0m00s remaining] \
Done encoding file "/home/
File length: 62m 08.0s
Elapsed time: 7m 55.9s
Rate: 7.8349
Average bitrate: 167.3 kb/s
The original audio track is, of course, longer than 62:08 minutes. In this case, the track is 163 minutes, but I have tested with other DVDs always getting the same 62:08 minutes of resulting vorbis encoded.
The problem is that mplayer sets the size on the WAV header to 2GB and oggenc then stops when it reaches that point.
2 GB corresponds to 62 minutes for 48 kHz, 6 channels, 16 bits/sample
2*1024³/(48000*6*2) = 3728.27 s = 62m08.27s.
I attach a patch for vorbis-
$ oggenc --ignorelength -q1.9 -o tmp/audio.ogg ./tmp/fifo &
$ mplayer -really-quiet -channels 6 -aid 128 -ao pcm:fast:
WARNING: WAV file uses side surround instead of rear for 5.1;
remapping side speakers to rear in encoding.
Opening with wav module: WAV file reader
Encoding "/home/
at quality 1.90
Encoding [21m21s so far] -
Done encoding file "/home/
File length: 163m 17.0s
Elapsed time: 21m 21.3s
Rate: 7.6461
Average bitrate: 167.7 kb/s
This change, by the way, was at some point included in trunk, revision 15003:
https:/
But it was reversed sometime afterwards
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: vorbis-tools 1.4.0-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-24-generic x86_64
Architecture: amd64
Date: Sun Jan 9 16:19:43 2011
InstallationMedia: Xubuntu 10.04 "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: vorbis-tools
tags: | added: patch |
Changed in vorbis-tools: | |
status: | Unknown → New |
Changed in vorbis-tools: | |
status: | New → Fix Released |
It looks like the change was reverted in r16793 (https:/ /trac.xiph. org/changeset/ 16793/trunk/ vorbis- tools/oggenc/ audio.c).