FLAC Downsampler

A command line tool to downsample FLAC files.

  • Written in Zig 0.15.1
  • Uses no libraries aside from libFLAC statically linked and built with the Zig Build System
  • Uses a custom FIR low-pass filtering and decimation by an integer factor

I have some 192kHz music that I wanted to put on my iPod, which only supports up to 48kHz. I also didn’t want to use FFmpeg, because thats boring, so I took it as a chance to learn a new library and a bit of DSP.

Usage

Super basic right now, but it’ll change at some point:

$ flac_downsampler.exe
Usage: flac_downsampler.exe [SAMPLE_RATE] [INPUT_FILE] [OUTPUT_FILE]

$ flac_downsampler.exe 48000 "Equus Caballus - 08 Where I...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help