SNDFILE-CONVERT(1) | General Commands Manual | SNDFILE-CONVERT(1) |
sndfile-convert
—
convert sound files from one format to another
sndfile-convert |
[-override-sample-rate =rate]
[-endian =little |
big | cpu ]
[-normalize ] [encoding]
input output |
sndfile-convert
converts sound files from
one audio format to another. The output file is overwritten it it already
exists.
The format of the output file is determined by the filename extension. The following file formats are currently recognized:
The following options are recoginzed:
-override-sample-rate
=rate-endian
=little
-endian
=big
-endian
=cpu
-normalize
The optional encoding parameter allows setting of the data encoding for the output file. The following encodings are currently supported:
-pcms8
-pcmu8
-pcm16
-pcm24
-pcm32
-float32
-ulaw
-alaw
-ima-adpcm
-ms-adpcm
-gsm610
-dwvw12
-dwvw16
-dwvw24
-vorbis
If no encoding is specified for the output file,
sndfile-convert
will try to use the encoding of the
input file. This will not always work as most container formats (e.g. WAV,
AIFF etc) only support a small subset of encodings (e.g. 16 bit PCM, a-law,
Vorbis etc).
The sndfile-convert
utility exits 0
on success, and >0 if an error occurs.
Erik de Castro Lopo <erikd@mega-nerd.com>.
November 2, 2014 | Debian |