Subject: Re: [ecasound] format conversion error
From: Kai Vehmanen (k_AT_eca.cx)
Date: Fri Jun 13 2003 - 17:34:29 EEST
On Tue, 10 Jun 2003, Julien Claassen wrote:
> ecasound -f:16,2,48000 -i 48khz.wav -f:16,2,44100 -o 44khz.wav
> I then did:
> file 44khz.wav
> And this returned that I still got a 48khz file. So what to do? Am I doing
Ecasound never implicitly resamples any audio, so all objects must have
the same sample rate (2.2.0 and newer). If you need to resample, then you
must use the resample audio object:
ecasound -f:16,2,48000 -i 48khz.wav -o resample,44100,44khz.wav
or the other way
ecasound -f:16,2,44100 -i resample,48000,48khz.wav -o 44khz.wav
> something wrong or is ecasound? Btw. I use ecasound 2.2.3. (I did it with sox
> and it worked fine, but anyway...)
Unless you compile ecasound with libsamplerate, I recommend using sox
for resampling. Ecasound's own resampler is just a simple linear
interpolator, so the quality is not that good.
-- http://www.eca.cx Audio software for Linux!
This archive was generated by hypermail 2b28 : Fri Jun 13 2003 - 17:34:55 EEST