1b815c7f3Sopenharmony_ci.Dd November 2, 2014
2b815c7f3Sopenharmony_ci.Dt SNDFILE-INTERLEAVE 1
3b815c7f3Sopenharmony_ci.Os
4b815c7f3Sopenharmony_ci.Sh NAME
5b815c7f3Sopenharmony_ci.Nm sndfile-interleave ,
6b815c7f3Sopenharmony_ci.Nm sndfile-deinterleave
7b815c7f3Sopenharmony_ci.Nd convert mono files into a multi-channel file and vice versa
8b815c7f3Sopenharmony_ci.Sh SYNOPSIS
9b815c7f3Sopenharmony_ci.Nm sndfile-interleave
10b815c7f3Sopenharmony_ci.Ar input1
11b815c7f3Sopenharmony_ci.Ar input2
12b815c7f3Sopenharmony_ci.Ar ...
13b815c7f3Sopenharmony_ci.Fl o Ar output
14b815c7f3Sopenharmony_ci.Nm sndfile-deinterleave
15b815c7f3Sopenharmony_ci.Ar file
16b815c7f3Sopenharmony_ci.Sh DESCRIPTION
17b815c7f3Sopenharmony_ci.Nm sndfile-interleave
18b815c7f3Sopenharmony_cicreates a multi-channel file taking audio data
19b815c7f3Sopenharmony_cifrom two or more mono files as individual channels.
20b815c7f3Sopenharmony_ciThe format of the output file is determined by its filename suffix.
21b815c7f3Sopenharmony_ciThe audio parameters of the output file will be made so that
22b815c7f3Sopenharmony_cithe format can accommodate each of the mono inputs;
23b815c7f3Sopenharmony_cifor example, the samplerate will be the maximal samplerate
24b815c7f3Sopenharmony_cioccurring in the inputs.
25b815c7f3Sopenharmony_ciThe output file will be overwritten if it already exists.
26b815c7f3Sopenharmony_ci.Pp
27b815c7f3Sopenharmony_ci.Nm sndfile-deinterleave
28b815c7f3Sopenharmony_cicreates two or more mono files from a multi-channel audio file,
29b815c7f3Sopenharmony_cicontaining data from the individual channels. The names of the
30b815c7f3Sopenharmony_ciresulting mono files are of the form
31b815c7f3Sopenharmony_ci.Dq name_XY.suf
32b815c7f3Sopenharmony_ciwhere
33b815c7f3Sopenharmony_ci.Em name
34b815c7f3Sopenharmony_ciand
35b815c7f3Sopenharmony_ci.Em suf
36b815c7f3Sopenharmony_ciare the basename and suffix of the original file.
37b815c7f3Sopenharmony_ciIf any file of such name already exists, it will be overwritten.
38b815c7f3Sopenharmony_ciApart from the number of channels,
39b815c7f3Sopenharmony_cithe audio format of the resulting mono files
40b815c7f3Sopenharmony_ciis the same as that of the original file.
41b815c7f3Sopenharmony_ci.Sh EXIT STATUS
42b815c7f3Sopenharmony_ci.Ex -std
43b815c7f3Sopenharmony_ci.Sh EXAMPLES
44b815c7f3Sopenharmony_ciMerge a mono OGG file and a mono FLAC file into a stereo WAV file:
45b815c7f3Sopenharmony_ci.Bd -literal -offset indent
46b815c7f3Sopenharmony_ci$ sndfile-interleave left.ogg right.flac -o stereo.wav
47b815c7f3Sopenharmony_ci.Ed
48b815c7f3Sopenharmony_ci.Pp
49b815c7f3Sopenharmony_ciSplit a multi-channel into individual mono files:
50b815c7f3Sopenharmony_ci.Bd -literal -offset indent
51b815c7f3Sopenharmony_ci$ sndfile-deinterleave multi.wav
52b815c7f3Sopenharmony_ciInput file : multi
53b815c7f3Sopenharmony_ciOutput files :
54b815c7f3Sopenharmony_ci    multi_00.wav
55b815c7f3Sopenharmony_ci    multi_01.wav
56b815c7f3Sopenharmony_ci    multi_02.wav
57b815c7f3Sopenharmony_ci    multi_03.wav
58b815c7f3Sopenharmony_ci.Ed
59b815c7f3Sopenharmony_ci.Sh SEE ALSO
60b815c7f3Sopenharmony_ci.Lk http://libsndfile.github.io/libsndfile/
61b815c7f3Sopenharmony_ci.Sh AUTHORS
62b815c7f3Sopenharmony_ci.An Erik de Castro Lopo Aq Mt erikd@mega-nerd.com
63