zresample(1)

πŸ“¦ version 1.11.2, in arch rolling, fedora 43, fedora 44, opensuse-leap 16.0

✨ 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 πŸ’–
  • --rate sample-rate β€” set the output sample rate. ok so this one's important: zresample uses the zita-resampler library, which means not all combinations of input/output sample rate will be accepted. the resample ratio must be reducible to a fraction a/b with both a and b less than or equal to 1000. that's the rule, no exceptions, she's picky and that's iconic of her πŸ™ˆ
  • --gain gain β€” gain in dB, default zero. that's a literal zero, not "zero vibes", just zero. πŸ’€

🌈 Output file type 🌈

  • --wav β€” produce a WAV file, or for more than 2 channels, a WAVEX file. this is the default. yes queen, she comes pre-loaded. πŸ‘‘
  • --amb β€” produce a WAVEX file with the Ambisonic GUID. such files should have the .amb filename extension. so like, use .amb, bestie, don't be chaotic. πŸŒ€
  • --caf β€” produce a Core Audio file.
  • --aiff β€” produce an AIFF file.
  • --flac β€” produce a FLAC file. 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 use 24-bit or float. 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 a CD. 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 the a/b with a and b ≀ 1000 thing. she will not negotiate. πŸ™ˆ

version 0.0.1 🌸 May 2010 🌸 that's the whole page, bestie β€” go resample something iconic. mwah πŸŽ€πŸ’–βœ¨