[linux-audio-user] Wave file conversion (multi-mono->stereo, then downsample/downsize, then dither)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 09, 2004 at 11:21:35AM -0700, Mark Knecht wrote:
> On Thu, 2004-09-09 at 11:02, Eric Dantan Rzewnicki wrote:
> > ecasound!
> > ecasound -a:1 -i:mono1.wav \
> >     -a:2 -i:mono2.wav \
> >     -a:1,2 -f:24,2,96000 -o:stereo.wav \
> >     -a:2 -erc:1,2 -eac:0,1
> > Do that all on one line. The returns are escaped to make it easier to
> > read. This creates 2 chains, one for each input mono wav file. Both
> > chains are connected to the same output file. You have to set the format
> > for the output because ecasound defaults to 16,2,44100. You don't need
> > to set the format for the inputs if they are .wavs because ecasound will
> > read the info from the wav headers. Then for chain 2 you route channel 
> > one to channel two (-erc:1,2), and mute channel 1 (-eac:0,1).
> > -ERic Rz.
> Thanks. I'll give that a try. At least that handles step one, assuming
> no audio problems are created.

If step 2 was downsampling to 16 bit 44.1kHz, then just change the -f
above to: -f:16,2,44100 ... sorry I missed that bit.

The internal sample rate conversion is linear interpolation, I think,
which works ok. But, if you have libsamplerate installed ecasound can 
use that instead for higher quality conversion. libsamplerate support is
enabled at ./configure time. I always install ecasound from source, so 
I'm not sure how the various distros compile and package it. I suppose 
on one of your gentoo boxes that should be no problem.

-Eric Rz.

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux