[linux-audio-user] command line utility to change bit depth

derek holzer derek at x-i.net
Thu Mar 18 04:54:23 EST 2004


Eric, Erik...

thanks both of you for the info. I am really starting to like ecasound!
;-) I found one tutorial on the web, but do you  have any suggestions
for must-read docs to master this program?

thx,
d.

Eric Dantan Rzewnicki wrote:
> Erik de Castro Lopo wrote:
> 
>> On Mon, 15 Mar 2004 23:26:51 +0100
>> derek holzer <derek at x-i.net> wrote:
>>
>>> Does anyone know a good command-line app to change bit depth of WAV 
>>> files? I'd like to batch process a bunch of files. Ecasound does not 
>>> have this feature to my knowledge.
>>
>> In the libsndfile source code distribution there is an example program
>> called sndfile-convert:
>>
>>    erikd at miles > sndfile-convert       Usage : sndfile-convert 
>> [encoding] <input file> <output file>
>>           where [encoding] may be one of the following:
>>               -pcms8     : force the output to signed 8 bit pcm
>>            -pcmu8     : force the output to unsigned 8 bit pcm
>>            -pcm16     : force the output to 16 bit pcm
>>            -pcm24     : force the output to 24 bit pcm
>>            -pcm32     : force the output to 32 bit pcm
>>            -float32   : force the output to 32 bit floating point
>>            -ulaw      : force the output ULAW
>>            -alaw      : force the output ALAW
>>            -ima-adpcm : force the output to IMA ADPCM (WAV only)
>>            -ms-adpcm  : force the output to MS ADPCM (WAV only)
>>            -gsm610    : force the GSM6.10 (WAV only)
>>            -dwvw12    : force the output to 12 bit DWVW (AIFF only)
>>            -dwvw16    : force the output to 16 bit DWVW (AIFF only)
>>            -dwvw24    : force the output to 24 bit DWVW (AIFF only)
>>           The format of the output file is determined by the file 
>> extension of the
>>        output file name. The following extensions are currently 
>> understood:
>>               aif        : AIFF (Apple/SGI)
>>            wav        : WAV (Microsoft)
>>            au         : AU (Sun/NeXT)
>>            snd        : AU (Sun/NeXT)
>>            svx        : IFF (Amiga IFF/SVX8/SV16)
>>            paf        : PAF (Ensoniq PARIS)
>>            fap        : PAF (Ensoniq PARIS)
>>            nist       : WAV (NIST Sphere)
>>            ircam      : SF (Berkeley/IRCAM/CARL)
>>            sf         : SF (Berkeley/IRCAM/CARL)
>>            voc        : VOC (Creative Labs)
>>            w64        : W64 (SoundFoundry WAVE 64)
>>            raw        : RAW (header-less)
>>            mat4       : MAT4 (GNU Octave 2.0 / Matlab 4.2)
>>            mat5       : MAT5 (GNU Octave 2.1 / Matlab 5.0)
>>            mat        : MAT4 (GNU Octave 2.0 / Matlab 4.2)
>>            pvf        : PVF (Portable Voice Format)
>>            sds        : SDS (Midi Sample Dump Standard)
>>            xi         : XI (FastTracker 2)
>>
>> libsndfile is at :
>>
>>     http://www.mega-nerd.com/libsndfile/
>>     
>> Erik
> 
> 
> And of course, ecasound can be compiled with libsndfile support giving 
> it access to pretty much all the above.
> 
> -ERic Rz.
> 


-- 
derek holzer ::: http://www.umatic.nl
---Oblique Strategy # 146:
"Spectrum analysis"




More information about the Linux-audio-user mailing list