zresample(1)
β¨ zresample(1) β¨
okay bestie, pull up a chair π«Ά this is zresample, a USER COMMANDS legend from the zita-resampler universe, and she is literally here to resample and change the sample format of your audio files. no cap. let's get into it π
π NAME π
zresample β resample and change sample format of audio files
π¦ SYNOPSIS π¦
zresample [options] input-file output-file
π DESCRIPTION π
so what she does is: she copies an audio file, but changes the sample rate and/or the sample format while she's at it. main character behavior, honestly. β¨
for 16-bit output she can also dither the audio signal β yes, dither, we love her for that. π
your input can be any audio file that the libsndfile library can read, so like, basically anything. the output file type is one of: WAV, WAVEX, CAF, AIFF or FLAC. periodt.
πΈ OPTIONS πΈ
--helpβ display a short help text. the "hey bestie, here's the vibe" button π--ratesample-rate β set the output sample rate. ok so this one's important: zresample uses thezita-resamplerlibrary, which means not all combinations of input/output sample rate will be accepted. the resample ratio must be reducible to a fractiona/bwith bothaandbless than or equal to1000. that's the rule, no exceptions, she's picky and that's iconic of her π--gaingain β gain in dB, defaultzero. that's a literalzero, not "zero vibes", justzero. π
π Output file type π
--wavβ produce aWAVfile, or for more than 2 channels, aWAVEXfile. this is the default. yes queen, she comes pre-loaded. π--ambβ produce aWAVEXfile with the Ambisonic GUID. such files should have the.ambfilename extension. so like, use.amb, bestie, don't be chaotic. π--cafβ produce a Core Audio file.--aiffβ produce anAIFFfile.--flacβ produce aFLACfile. lossless girlie π
β Output sample format β
--16bitβ output sample format is signed 16-bit. this option also enables the use of dithering, described below π--24bitβ output sample format is 24-bit. this is the default. she just shows up like that π--floatβ output sample format is 32-bit floating point.
π§ Dithering π§
--recβ add white dithering noise with a rectangular distribution. this is the best option if the output data is going to be processed again, but in that case it would be advisable to use24-bitorfloat. so like β if it's getting reworked later, go big or go home π--triβ add filtered noise with a triangular distribution. compared to the rectangular dither this reduces the noise density in the lower frequency range. lowkey a glow-up for your low end πΈ--lipsβ this uses the optimal error feedback filter described by Stanley Lipschitz. this is recommended if the output is the final distribution format, e.g. for aCD. final boss energy, she ate π₯
π¦ Timing π¦
--padβ insert zero valued input samples at the start and end so that the output includes the full symmetric filter response even for the first and last samples. so nobody gets chopped at the edges, bestie π₯Ί
π EXIT STATUS π
Zero in case there are no errors, non-zero otherwise. simple. clean. she's not dramatic about it (unlike me). β¨
π AUTHOR π
Fons Adriaensen (fons (at) linuxaudio.org)
ngl bestie, if you're feeding her weird sample rate combos, remember thea/bwithaandbβ€1000thing. she will not negotiate. π
version 0.0.1 πΈ May 2010 πΈ that's the whole page, bestie β go resample something iconic. mwah ππβ¨
π¦ where this page comes from
- arch rolling: zita-resampler 1.11.2-3 Β· GPL-3.0-or-later
- fedora 43: zita-resampler 1.11.2-3.fc43 Β· GPL-3.0-or-later
- fedora 43: zita-resampler 1.11.2-3.fc43 Β· GPL-3.0-or-later
- fedora 44: zita-resampler 1.11.2-4.fc44 Β· GPL-3.0-or-later
- fedora 44: zita-resampler 1.11.2-4.fc44 Β· GPL-3.0-or-later
- opensuse-leap 16.0: zita-resampler-tools 1.11.2-bp160.1.9 Β· GPL-3.0-or-later
- opensuse-leap 16.0: zita-resampler-tools 1.11.2-bp160.1.9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms