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

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

 



On Mon, 15 Mar 2004 23:26:51 +0100
derek holzer <derek@xxxxxxx> 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@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
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  nospam@xxxxxxxxxxxxx (Yes it's valid)
+-----------------------------------------------------------+
"Republicans understand the importance of bondage between
mother and child." - George W. Bush

[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