SNDFILE-INTERLEAVE(1)
β¨ SNDFILE-INTERLEAVE π
okay bestie, so this is a page from the General Commands Manual, and it's about two lil tools that live together: sndfile-interleave and sndfile-deinterleave. one glues mono files into a big multi-channel file, the other takes a big multi-channel file apart into lil mono ones. it's giving β¨file scissorsβ¨ but for audio.
πΈ NAME πΈ
<pink>sndfile-interleave</pink>, <pink>sndfile-deinterleave</pink> β convert mono files into a multi-channel file and vice versa
like. the whole vibe. one direction and then the other direction. π¦
π SYNOPSIS π
sndfile-interleave input1 input2 ... -o output
sndfile-deinterleave file
literally that's it. that's the whole thing. no cap. π
π DESCRIPTION π
sndfile-interleave β the glue one π«Ά
so sndfile-interleave creates a multi-channel file, and it does that by taking audio data from two or more mono files and treating each one as its own individual channel. so like. two monos walk in, one stereo walks out. iconic.
the format of the output file is determined by its filename suffix. so yes bestie, the extension IS the format, that's the whole mechanism, don't fight it. π
the audio parameters of the output file will be made so that the format can accommodate each of the mono inputs β for example, the samplerate will be the maximal samplerate occurring in the inputs. so if one input is faster, the output matches the fastest one. main character energy wins, obviously. π
β οΈ the output file will be overwritten if it already exists. like. gone. bye. no confirmation dialog, no "are you sure", nothing. π
sndfile-deinterleave β the un-glue one π§
sndfile-deinterleave creates two or more mono files from a multi-channel audio file, containing data from the individual channels. so it's the exact reverse vibe. π
the names of the resulting mono files are of the form <yellow>name_XY.suf</yellow> where name and suf are the basename and suffix of the original file.
β οΈ if any file of such name already exists, it will be overwritten. same energy. same drama. π
apart from the number of channels, the audio format of the resulting mono files is the same as that of the original file. so it doesn't remix or rescale anything, it just splits. periodt. β¨
π EXIT STATUS π
the sndfile-interleave utility exits 0 on success, and >0 if an error occurs.
so like. 0 = we ate. anything above 0 = something went sideways. π
π EXAMPLES π
merge a mono OGG file and a mono FLAC file into a stereo WAV file:
$ sndfile-interleave left.ogg right.flac -o stereo.wav
two different formats, one happy stereo wav. slay. π₯
split a multi-channel into individual mono files:
$ sndfile-deinterleave multi.wav
Input file : multi
Output files :
multi_00.wav
multi_01.wav
multi_02.wav
multi_03.wav
see how it named them? multi_00.wav, multi_01.wav, multi_02.wav, multi_03.wav β that's the name_XY.suf thing in action. four channels, four files, zero chaos. π
πΈ SEE ALSO πΈ
go look at it bestie, iykyk. π¦
π AUTHORS π
Erik de Castro Lopo <erikd@mega-nerd.com>
absolute legend, we stan. π
and that's the whole page fr fr. this version came from the Debian folks, dated November 2, 2014, and it's SNDFILE-INTERLEAVE(1) β ok bye bestie, go interleave something π
β¨π
π¦ where this page comes from
- alpine 3.22: libsndfile-doc 1.2.2-r2 Β· LGPL-2.1-or-later
- alpine 3.23: libsndfile-doc 1.2.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: libsndfile-doc 1.2.2-r2 Β· LGPL-2.1-or-later
- arch rolling: libsndfile 1.2.2-4 Β· LGPL-2.1-or-later
- centos-stream 10: libsndfile-utils 1.2.2-7.el10 Β· LGPL-2.1 OR LGPL-3.0
- centos-stream 9: libsndfile-utils 1.0.31-10.el9 Β· LGPLv2+ and GPLv2+ and BSD
- debian bookworm: sndfile-programs 1.2.0-1+deb12u1 Β· LGPL-2.1-or-later
- debian trixie: sndfile-programs 1.2.2-2+deb13u1 Β· LGPL-2.1-or-later
- fedora 43: libsndfile-utils 1.2.2-10.fc43 Β· LGPL-2.1-or-later AND GPL-2.0-or-later AND BSD-3-Clause
- fedora 44: libsndfile-utils 1.2.2-11.fc44 Β· LGPL-2.1-or-later AND GPL-2.0-or-later AND BSD-3-Clause
- nixpkgs unstable: libsndfile 1.2.2
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- ubuntu jammy: sndfile-programs 1.0.31-2build1 Β· LGPL-2.1-or-later
- ubuntu jammy: sndfile-programs 1.0.31-2ubuntu0.2 Β· LGPL-2.1-or-later
- ubuntu noble: sndfile-programs 1.2.2-1ubuntu5 Β· LGPL-2.1-or-later
- ubuntu noble: sndfile-programs 1.2.2-1ubuntu5.24.04.1 Β· LGPL-2.1-or-later
- ubuntu questing: sndfile-programs 1.2.2-3
- ubuntu resolute: sndfile-programs 1.2.2-4 Β· LGPL-2.1-or-later
- ubuntu stonking: sndfile-programs 1.2.2-4 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms