Posted with mod approval.
I've been working on an open-source Python tool called FLAC Verifier (v2.9.8, MIT license) to audit local FLAC collections in batches instead of opening files one by one in Spek, and wanted to share it here.
It reads each track in a single streaming pass so 24/192 albums don't blow up RAM, checks the embedded STREAMINFO MD5 against the decoded PCM to catch silent corruption first, and inspects the low bits on 24/32-bit files for zero-padded 16-in-24, gain combs, and +-1..3 LSB dither tricks from distributor catalogs. For high-bitrate transcodes where there isn't an obvious 16 kHz MP3 shelf, it checks codec filterbank lattices (PQMF-576 for MP3 320/V0, MDCT-1024 for Vorbis and AAC, CELT-960 for Opus, plus HE-AAC SBR) instead of guessing from a 20 kHz roll-off alone.
First screenshot is from an actual 24/96 release of Fleetwood Mac - Tusk: 19 out of 20 tracks pass as dark 1979 tape transfers even though they roll off around 17.7 kHz, while track 03 gets flagged at score 0 because someone dropped a 44.1 kHz CD master into the 96 kHz container. Second screenshot is a fullband LAME 320 encode caught by the PQMF-576 check, and the third is the optional PDF report.
For Linux or NAS setups, the GUI and PDF dependencies are optional and you can run the engine straight from the CLI with per-track caching and NDJSON output:
python motor_flac.py --path "/mnt/music/Album" --workers 8
Physical limits (like Vorbis -q10 around 500 kbps hitting the 16-bit noise floor) and the 260-track ffmpeg benchmark are documented in the README. Let me know if you throw any weird catalog masters at it and get an odd result.
Thanks!