1SNDFILE-CONVERT(1)        BSD General Commands Manual       SNDFILE-CONVERT(1)
2

NAME

4     sndfile-convert — convert sound files from one format to another
5

SYNOPSIS

7     sndfile-convert [-override-sample-rate=rate] [-endian=little | big | cpu]
8                     [-normalize] [encoding] input output
9

DESCRIPTION

11     sndfile-convert converts sound files from one audio format to another.
12     The output file is overwritten it it already exists.
13
14   Formats
15     The format of the output file is determined by the filename extension.
16     The following file formats are currently recognized:
17
18     wav    WAV (Microsoft)
19     aif    AIFF (Apple/SGI)
20     au     AU (Sun/NeXT)
21     snd    AU (Sun/NeXT)
22     raw    RAW (header-less)
23     gsm    RAW (header-less)
24     vox    RAW (header-less)
25     paf    PAF (Ensoniq PARIS, big-endian)
26     fap    PAF (Ensoniq PARIS, little-endian)
27     svx    IFF (Amiga IFF/SVX8/SV16)
28     nist   SPHERE (NIST SPeech HEader Resources)
29     sph    SPHERE (NIST SPeech HEader Resources)
30     voc    VOC (Creative Labs)
31     ircam  SF (Berkeley/IRCAM/CARL)
32     sf     SF (Berkeley/IRCAM/CARL)
33     w64    W64 (SoundFoundry WAVE 64)
34     mat    MAT4 (GNU Octave 2.0 / Matlab 4.2)
35     mat4   MAT4 (GNU Octave 2.0 / Matlab 4.2)
36     mat5   MAT5 (GNU Octave 2.1 / Matlab 5.0)
37     pvf    PVF (Portable Voice Format)
38     xi     XI (FastTracker 2)
39     htk    HTK (HMM Tool Kit)
40     sds    SDS (Midi Sample Dump Standard)
41     avr    AVR (Audio Visual Research)
42     wavex  WAVEX (MS WAVE with WAVEFORMATEX)
43     sd2    SD2 (Sound Designer II)
44     flac   FLAC (FLAC Lossless Audio Codec)
45     caf    CAF (Apple Core Audio File)
46     wve    WVE (Psion Series 3)
47     prc    WVE (Psion Series 3)
48     ogg    OGG (OGG Container format)
49     oga    OGG (OGG Container format)
50     mpc    MPC (Akai MPC 2k)
51     rf64   RF64 (RIFF 64)
52
53   Options
54     The following options are recoginzed:
55
56     -override-sample-rate=rate  Make the input use sample rate of rate Hz.
57     -endian=little              Make the output file use little endian data.
58     -endian=big                 Make the output file use big endian data.
59     -endian=cpu                 Make the output file use CPU endianness.
60     -normalize                  Normalize the audio data in the output file.
61
62   Encodings
63     The optional encoding parameter allows setting of the data encoding for
64     the output file.  The following encodings are currently supported:
65
66     -pcms8       signed 8 bit pcm
67     -pcmu8       unsigned 8 bit pcm
68     -pcm16       16 bit pcm
69     -pcm24       24 bit pcm
70     -pcm32       32 bit pcm
71     -float32     32 bit floating point
72     -ulaw        ULAW
73     -alaw        ALAW
74     -ima-adpcm   IMA ADPCM (WAV only)
75     -ms-adpcm    MS ADPCM (WAV only)
76     -gsm610      GSM6.10 (WAV only)
77     -dwvw12      12 bit DWVW (AIFF only)
78     -dwvw16      16 bit DWVW (AIFF only)
79     -dwvw24      24 bit DWVW (AIFF only)
80     -vorbis      Vorbis (OGG only)
81
82     If no encoding is specified for the output file, sndfile-convert will try
83     to use the encoding of the input file.  This will not always work as most
84     container formats (e.g. WAV, AIFF etc) only support a small subset of
85     encodings (e.g. 16 bit PCM, a-law, Vorbis etc).
86

EXIT STATUS

88     The sndfile-convert utility exits 0 on success, and >0 if an error
89     occurs.
90

SEE ALSO

92           http://libsndfile.github.io/libsndfile/
93

AUTHORS

95     Erik de Castro Lopo <erikd@mega-nerd.com>.
96
97BSD                            November 2, 2014                            BSD
Impressum