1SNDFILE-INTERLEAVE(1) BSD General Commands Manual SNDFILE-INTERLEAVE(1)
2
4 sndfile-interleave, sndfile-deinterleave — convert mono files into a
5 multi-channel file and vice versa
6
8 sndfile-interleave input1 input2 ... -o output
9 sndfile-deinterleave file
10
12 sndfile-interleave creates a multi-channel file taking audio data from
13 two or more mono files as individual channels. The format of the output
14 file is determined by its filename suffix. The audio parameters of the
15 output file will be made so that the format can accommodate each of the
16 mono inputs; for example, the samplerate will be the maximal samplerate
17 occurring in the inputs. The output file will be overwritten if it
18 already exists.
19
20 sndfile-deinterleave creates two or more mono files from a multi-channel
21 audio file, containing data from the individual channels. The names of
22 the resulting mono files are of the form “name_XY.suf” where name and suf
23 are the basename and suffix of the original file. If any file of such
24 name already exists, it will be overwritten. Apart from the number of
25 channels, the audio format of the resulting mono files is the same as
26 that of the original file.
27
29 The sndfile-interleave utility exits 0 on success, and >0 if an error
30 occurs.
31
33 Merge a mono OGG file and a mono FLAC file into a stereo WAV file:
34
35 $ sndfile-interleave left.ogg right.flac -o stereo.wav
36
37 Split a multi-channel into individual mono files:
38
39 $ sndfile-deinterleave multi.wav
40 Input file : multi
41 Output files :
42 multi_00.wav
43 multi_01.wav
44 multi_02.wav
45 multi_03.wav
46
48 http://www.mega-nerd.com/libsndfile/
49
51 Erik de Castro Lopo <erikd@mega-nerd.com>
52
53BSD November 2, 2014 BSD