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

@show

Show HN: FLAC, MP3 and DST decoders, about 2x faster than FFmpeg's (MIT) orpheic.com · 2 points · 0 comments · HN thread

TL;DR Orpheic, a free music player in development, has released three MIT-licensed C++17 decoders for MP3, FLAC and DST (the lossless layer inside SACDs). The author reports they run about 1.6 to 3.5 times faster than FFmpeg's decoders on a desktop, Apple M4 and Raspberry Pi 5, with FLAC and DST output matching FFmpeg's. The story has 2 points and no comments yet.

  • FLAC, MP3 (fast path) and DST decoders are written in C++17 with no dependencies and released under the MIT licence.
  • Reported speed versus FFmpeg on an i9-14900K desktop: FLAC 2.37x, MP3 fast path 2.25x, DST stereo 2.01x, DST five or six channels 1.81x.
  • FLAC and DST output is reported identical to FFmpeg's, sample for sample and byte for byte, on the files measured; MP3 has no bit-exact reference, so accuracy is judged against a double-precision reading of the standard.
  • The MP3 fast path is the number reported; the exact path used for playback is several times slower than FFmpeg.
  • The code was written by Claude under the author's direction, and the repository includes tools/bench.sh to repeat the FLAC and MP3 comparisons on public recordings.
  • DST test files are private excerpts, so DST results cannot be reproduced with the published files.

Links in the post

  • orpheic-decoders repository: MIT-licensed C++17 FLAC, MP3 and DST decoders with benchmark, accuracy and hash-check tools, and build instructions.

Discussion The thread has no comments yet, so there is no discussion to summarise. The submission has only its score of 2 points.

#audioDecoders #FLAC #MP3 #FFmpeg #showHN #cpp