Chris@40: .Dd November 2, 2014 Chris@40: .Dt SNDFILE-INTERLEAVE 1 Chris@40: .Os Chris@40: .Sh NAME Chris@40: .Nm sndfile-interleave , Chris@40: .Nm sndfile-deinterleave Chris@40: .Nd convert mono files into a multi-channel file and vice versa Chris@40: .Sh SYNOPSIS Chris@40: .Nm sndfile-interleave Chris@40: .Ar input1 Chris@40: .Ar input2 Chris@40: .Ar ... Chris@40: .Fl o Ar output Chris@40: .Nm sndfile-deinterleave Chris@40: .Ar file Chris@40: .Sh DESCRIPTION Chris@40: .Nm sndfile-interleave Chris@40: creates a multi-channel file taking audio data Chris@40: from two or more mono files as individual channels. Chris@40: The format of the output file is determined by its filename suffix. Chris@40: The audio parameters of the output file will be made so that Chris@40: the format can accommodate each of the mono inputs; Chris@40: for example, the samplerate will be the maximal samplerate Chris@40: occuring in the inputs. Chris@40: The output file will be overwritten if it already exists. Chris@40: .Pp Chris@40: .Nm sndfile-deinterleave Chris@40: creates two or more mono files from a multi-channel audio file, Chris@40: containing data from the individual channels. The names of the Chris@40: resulting mono files are of the form Chris@40: .Dq name_XY.suf Chris@40: where Chris@40: .Em name Chris@40: and Chris@40: .Em suf Chris@40: are the basename and suffix of the original file. Chris@40: If any file of such name already exists, it will be overwritten. Chris@40: Apart from the number of channels, Chris@40: the audio format of the resulting mono files Chris@40: is the same as that of the original file. Chris@40: .Sh EXIT STATUS Chris@40: .Ex -std Chris@40: .Sh EXAMPLES Chris@40: Merge a mono OGG file and a mono FLAC file into a stereo WAV file: Chris@40: .Bd -literal -offset indent Chris@40: $ sndfile-interleave left.ogg right.flac -o stereo.wav Chris@40: .Ed Chris@40: .Pp Chris@40: Split a multi-channel into individual mono files: Chris@40: .Bd -literal -offset indent Chris@40: $ sndfile-deinterleave multi.wav Chris@40: Input file : multi Chris@40: Output files : Chris@40: multi_00.wav Chris@40: multi_01.wav Chris@40: multi_02.wav Chris@40: multi_03.wav Chris@40: .Ed Chris@40: .Sh SEE ALSO Chris@40: .Lk http://www.mega-nerd.com/libsndfile/ Chris@40: .Sh AUTHORS Chris@40: .An Erik de Castro Lopo Aq Mt erikd@mega-nerd.com