Skip to content

What is trueflac?

A FLAC file promises the sound of the CD. Converting an MP3 to FLAC keeps that promise on the label only: the file is bigger, the sound is the MP3’s. Music shared online, old downloads and “lossless” packs often hold such files, and nothing in their tags says so.

trueflac looks at the sound itself. For each file it answers:

  • ok: no sign of a lossy source;
  • suspect: a clue points at a lossy source, with the clue and, when it can tell, the codec;
  • unreadable: the file could not be decoded.

A suspect file is not proven fake. An old recording, a master filtered at the studio or a phone recording sold as lossless can look exactly like a converted MP3. trueflac reports what it sees in the sound; deciding what to do with the file stays yours.

It is built the other way round from most detectors: it would rather miss a fake than accuse a genuine file. A threshold is only accepted when no genuine file of the bench crosses it.

  1. Cut highs. An encoder throws away the highs it finds inaudible. Above that point, a decoded file holds nothing but the rounding noise of its bit depth.
  2. Codec grid. An encoder works on blocks and sets to zero what it finds inaudible. Analyzed with the same transform at the same block start, the decoded file shows those zeros again.

The second clue is what catches the files that keep their highs: MP3 V0 and 320 kbit/s, AAC 256, Vorbis. How it works explains both.

  • It never writes, moves, renames or deletes a file, never changes a tag, and never goes on the network.
  • It does not tell a CD file blown up to 24 bits or 96 kHz (“fake high resolution”) yet: see the roadmap.
  • It does not repair anything: a lossy source cannot be turned back into a lossless one.

trueflac is the engine of the fake FLAC check in S.O.K, the media organizer of the Opale family. It works on its own as a command and a Python library.

Built with Kiln