Show HN

FLAC, MP3 and DST decoders

by @georgk

FLAC, MP3 and DST decoders, about 2x faster than FFmpeg's (MIT) I've published three audio decoders under the MIT licence: FLAC, MP3, and DST (the lossless compression inside SACDs). C++17, no dependencies. How many times faster they run than FFmpeg's own decoders: Desktop (i9-14900K): FLAC x2.37 faster MP3 x2.25 faster DST x2.01 faster Apple M4: FLAC x3.45 faster MP3 x2.76 faster DST x2.06 faster Raspberry Pi 5: FLAC x1.58 faster MP3 x2.27 faster DST x2.89 faster FLAC and DST output is identical to FFmpeg's The code is here: https://github.com/orpheic/orpheic-decoders tools/bench.sh downloads eight freely licensed recordings from Wikimedia Commons and repeats the FLAC and MP3 comparison against the FFmpeg you have installed. Limits: the MP3 number is for a fast path (the exact path is slower than FFmpeg). The code was written by an AI model (Claude) under my direction, nothing was accepted without a measurement. They're the decoders inside Orpheic, a free music player I'm building.

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app