Show HN: FLAC, MP3 and DST decoders, about 2x faster than FFmpeg's (MIT)

  • Posted 43 minutes ago by georgk
  • 1 points
https://orpheic.com/decoders/
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.

0 comments