[vorbis] Joining .WAV files with ogg-vorbis

Paul Martin pm at nowster.zetnet.co.uk
Thu Oct 16 22:08:18 PDT 2003



On Thu, Oct 16, 2003 at 10:53:52PM -0500, Tom Felker wrote:

> But while FLAC is lossless, it's still a waste of CPU.  For the OP:  If I only 
> had Sox, I'd do this:
> 
> sox a.wav a.cdr
> sox b.wav b.cdr
> cat a.cdr b.cdr | sox -t cdr - ab.wav

Or even

<p>(for i in a.wav b.wav; do sox $i -t cdr - ; done) | sox -t cdr - ab.wav

which avoids the use of temporary files.

This can be extended to a shell script, eg. "concatwav":

#!/bin/sh
(for i in $@; do sox "$i" -t cdr - ; done) | sox -t cdr - concat.wav

<p>
-- 
Paul Martin <pm at zetnet.net> (work)
  <pm at nowster.zetnet.co.uk> (home)
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list