[LAU] Adventures in concatenating ogg files -- fixed

Ken Restivo ken at restivo.org
Wed Nov 19 18:13:12 UTC 2014


On Wed, Nov 19, 2014 at 04:25:49AM +0100, Ralf Mardorf wrote:
> On Tue, 2014-11-18 at 18:02 -0800, Ken Restivo wrote:
> > If my math is correct,  44.1khz, 2 channels, 16 bits, 3:22:53 is
> > 2,147,317,200 bytes.
> 
> (16 bit * 44100 Hz * 2 channels * (3 * 60 * 60 + 22 * 60 + 53) seconds) / 8 bit = 2,147,317,200 bytes
> 

Fixed! FWIW, the magickal incantation which worked was:

ogg123 --audio-buffer 0 -q -d raw -o byteorder:little -f - input-files/*ogg |  oggenc -r -Q - > output-file.ogg

The culprit was the WAV header. Removing it fixed it.

-ken


More information about the Linux-audio-user mailing list