cannam@125
|
1 .Dd November 2, 2014
|
cannam@125
|
2 .Dt SNDFILE-CONVERT 1
|
cannam@125
|
3 .Os
|
cannam@125
|
4 .Sh NAME
|
cannam@125
|
5 .Nm sndfile-convert
|
cannam@125
|
6 .Nd convert sound files from one format to another
|
cannam@125
|
7 .Sh SYNOPSIS
|
cannam@125
|
8 .Nm sndfile-convert
|
cannam@125
|
9 .Op Fl override-sample-rate Ns = Ns Ar rate
|
cannam@125
|
10 .Op Fl endian Ns = Ns Cm little | big | cpu
|
cannam@125
|
11 .Op Fl normalize
|
cannam@125
|
12 .Op Ar encoding
|
cannam@125
|
13 .Ar input
|
cannam@125
|
14 .Ar output
|
cannam@125
|
15 .Sh DESCRIPTION
|
cannam@125
|
16 .Nm
|
cannam@125
|
17 converts sound files from one audio format to another.
|
cannam@125
|
18 The output file is overwritten it it already exists.
|
cannam@125
|
19 .Ss Formats
|
cannam@125
|
20 The format of the output file is determined by the filename extension.
|
cannam@125
|
21 The following file formats are currently recognized:
|
cannam@125
|
22 .Pp
|
cannam@125
|
23 .Bl -tag -compact -width ircam
|
cannam@125
|
24 .It wav
|
cannam@125
|
25 WAV (Microsoft)
|
cannam@125
|
26 .It aif
|
cannam@125
|
27 AIFF (Apple/SGI)
|
cannam@125
|
28 .It au
|
cannam@125
|
29 AU (Sun/NeXT)
|
cannam@125
|
30 .It snd
|
cannam@125
|
31 AU (Sun/NeXT)
|
cannam@125
|
32 .It raw
|
cannam@125
|
33 RAW (header-less)
|
cannam@125
|
34 .It gsm
|
cannam@125
|
35 RAW (header-less)
|
cannam@125
|
36 .It vox
|
cannam@125
|
37 RAW (header-less)
|
cannam@125
|
38 .It paf
|
cannam@125
|
39 PAF (Ensoniq PARIS, big-endian)
|
cannam@125
|
40 .It fap
|
cannam@125
|
41 PAF (Ensoniq PARIS, little-endian)
|
cannam@125
|
42 .It svx
|
cannam@125
|
43 IFF (Amiga IFF/SVX8/SV16)
|
cannam@125
|
44 .It nist
|
cannam@125
|
45 SPHERE (NIST SPeech HEader Resources)
|
cannam@125
|
46 .It sph
|
cannam@125
|
47 SPHERE (NIST SPeech HEader Resources)
|
cannam@125
|
48 .It voc
|
cannam@125
|
49 VOC (Creative Labs)
|
cannam@125
|
50 .It ircam
|
cannam@125
|
51 SF (Berkeley/IRCAM/CARL)
|
cannam@125
|
52 .It sf
|
cannam@125
|
53 SF (Berkeley/IRCAM/CARL)
|
cannam@125
|
54 .It w64
|
cannam@125
|
55 W64 (SoundFoundry WAVE 64)
|
cannam@125
|
56 .It mat
|
cannam@125
|
57 MAT4 (GNU Octave 2.0 / Matlab 4.2)
|
cannam@125
|
58 .It mat4
|
cannam@125
|
59 MAT4 (GNU Octave 2.0 / Matlab 4.2)
|
cannam@125
|
60 .It mat5
|
cannam@125
|
61 MAT5 (GNU Octave 2.1 / Matlab 5.0)
|
cannam@125
|
62 .It pvf
|
cannam@125
|
63 PVF (Portable Voice Format)
|
cannam@125
|
64 .It xi
|
cannam@125
|
65 XI (FastTracker 2)
|
cannam@125
|
66 .It htk
|
cannam@125
|
67 HTK (HMM Tool Kit)
|
cannam@125
|
68 .It sds
|
cannam@125
|
69 SDS (Midi Sample Dump Standard)
|
cannam@125
|
70 .It avr
|
cannam@125
|
71 AVR (Audio Visual Research)
|
cannam@125
|
72 .It wavex
|
cannam@125
|
73 WAVEX (MS WAVE with WAVEFORMATEX)
|
cannam@125
|
74 .It sd2
|
cannam@125
|
75 SD2 (Sound Designer II)
|
cannam@125
|
76 .It flac
|
cannam@125
|
77 FLAC (FLAC Lossless Audio Codec)
|
cannam@125
|
78 .It caf
|
cannam@125
|
79 CAF (Apple Core Audio File)
|
cannam@125
|
80 .It wve
|
cannam@125
|
81 WVE (Psion Series 3)
|
cannam@125
|
82 .It prc
|
cannam@125
|
83 WVE (Psion Series 3)
|
cannam@125
|
84 .It ogg
|
cannam@125
|
85 OGG (OGG Container format)
|
cannam@125
|
86 .It oga
|
cannam@125
|
87 OGG (OGG Container format)
|
cannam@125
|
88 .It mpc
|
cannam@125
|
89 MPC (Akai MPC 2k)
|
cannam@125
|
90 .It rf64
|
cannam@125
|
91 RF64 (RIFF 64)
|
cannam@125
|
92 .El
|
cannam@125
|
93 .Ss Options
|
cannam@125
|
94 The following options are recoginzed:
|
cannam@125
|
95 .Pp
|
cannam@125
|
96 .Bl -tag -compact -width "override-sample-rate=XXXXX"
|
cannam@125
|
97 .It Fl override-sample-rate Ns = Ns Ar rate
|
cannam@125
|
98 Make the input use sample rate of
|
cannam@125
|
99 .Ar rate
|
cannam@125
|
100 Hz.
|
cannam@125
|
101 .It Fl endian Ns = Ns Cm little
|
cannam@125
|
102 Make the output file use little endian data.
|
cannam@125
|
103 .It Fl endian Ns = Ns Cm big
|
cannam@125
|
104 Make the output file use big endian data.
|
cannam@125
|
105 .It Fl endian Ns = Ns Cm cpu
|
cannam@125
|
106 Make the output file use CPU endianness.
|
cannam@125
|
107 .It Fl normalize
|
cannam@125
|
108 Normalize the audio data in the output file.
|
cannam@125
|
109 .El
|
cannam@125
|
110 .Ss Encodings
|
cannam@125
|
111 The optional
|
cannam@125
|
112 .Ar encoding
|
cannam@125
|
113 parameter allows setting of the data encoding for the output file.
|
cannam@125
|
114 The following encodings are currently supported:
|
cannam@125
|
115 .Pp
|
cannam@125
|
116 .Bl -tag -compact -width ima-adpcmXX
|
cannam@125
|
117 .It Fl pcms8
|
cannam@125
|
118 signed 8 bit pcm
|
cannam@125
|
119 .It Fl pcmu8
|
cannam@125
|
120 unsigned 8 bit pcm
|
cannam@125
|
121 .It Fl pcm16
|
cannam@125
|
122 16 bit pcm
|
cannam@125
|
123 .It Fl pcm24
|
cannam@125
|
124 24 bit pcm
|
cannam@125
|
125 .It Fl pcm32
|
cannam@125
|
126 32 bit pcm
|
cannam@125
|
127 .It Fl float32
|
cannam@125
|
128 32 bit floating point
|
cannam@125
|
129 .It Fl ulaw
|
cannam@125
|
130 ULAW
|
cannam@125
|
131 .It Fl alaw
|
cannam@125
|
132 ALAW
|
cannam@125
|
133 .It Fl ima-adpcm
|
cannam@125
|
134 IMA ADPCM (WAV only)
|
cannam@125
|
135 .It Fl ms-adpcm
|
cannam@125
|
136 MS ADPCM (WAV only)
|
cannam@125
|
137 .It Fl gsm610
|
cannam@125
|
138 GSM6.10 (WAV only)
|
cannam@125
|
139 .It Fl dwvw12
|
cannam@125
|
140 12 bit DWVW (AIFF only)
|
cannam@125
|
141 .It Fl dwvw16
|
cannam@125
|
142 16 bit DWVW (AIFF only)
|
cannam@125
|
143 .It Fl dwvw24
|
cannam@125
|
144 24 bit DWVW (AIFF only)
|
cannam@125
|
145 .It Fl vorbis
|
cannam@125
|
146 Vorbis (OGG only)
|
cannam@125
|
147 .El
|
cannam@125
|
148 .Pp
|
cannam@125
|
149 If no encoding is specified for the output file,
|
cannam@125
|
150 .Nm
|
cannam@125
|
151 will try to use the encoding of the input file.
|
cannam@125
|
152 This will not always work as most container formats
|
cannam@125
|
153 (e.g. WAV, AIFF etc) only support a small subset of encodings
|
cannam@125
|
154 (e.g. 16 bit PCM, a-law, Vorbis etc).
|
cannam@125
|
155 .Sh EXIT STATUS
|
cannam@125
|
156 .Ex -std
|
cannam@125
|
157 .Sh SEE ALSO
|
cannam@125
|
158 .Lk http://www.mega-nerd.com/libsndfile/
|
cannam@125
|
159 .Sh AUTHORS
|
cannam@125
|
160 .An Erik de Castro Lopo Aq Mt erikd@mega-nerd.com .
|