[LAU] sox: everything on the internet is wrong

Ken Restivo ken at restivo.org
Thu Feb 25 23:16:26 EST 2010


On Fri, Feb 26, 2010 at 02:44:37PM +1100, Erik de Castro Lopo wrote:
> Ken Restivo wrote:
> 
> > Example: I want to split a stereo JACK-compatible 32-bit float
> > broadcast WAV file into two mono 32-bit float mono WAV files. Ohh kaaay...
> 
>     erikd at mingus > sndfile-deinterleave 
> 
>     Usage : sndfile-deinterleave <filename>
> 
>     Split a mutli-channel file into a set of mono files.
> 
>     If the input file is named 'a.wav', the output files will be named
>     a_00.wav, a_01.wav and so on.
> 
> 
> On Ubuntu 9.10, sndfile-deinterleave is part of the sndfile-programs
> package.
> 

Not on Debian Lenny, sndfile-program 1.0.17-4, command not found.

But, I figured out how to do it with this somewhat clumsy but effective ecasound line:
ecasound -a:1,2 -i useless.wav -a:1 -f:32,1,44100 -o mono_L.wav -a:2 -f:32,1,44100 -o mono_R.wav -chcopy:2,1


-ken


More information about the Linux-audio-user mailing list