FLAC Detective Documentation
Welcome to the FLAC Detective documentation! This tool analyzes FLAC audio files to detect MP3-to-FLAC transcodes using advanced spectral analysis.
What is FLAC Detective?
FLAC Detective is a command-line tool that detects fake lossless audio files (MP3s transcoded to FLAC, ALAC, APE or WAV). It uses an 11-rule scoring system — plus an optional 12th CNN rule — with advanced spectral analysis to achieve high accuracy while protecting legitimate files from vinyl, cassettes, and high-quality MP3 sources.
Key Features
High Precision: 11-rule scoring system (0-150 points), plus an optional 12th CNN rule
4-Level Verdict: AUTHENTIC, WARNING, SUSPICIOUS, FAKE_CERTAIN
Protection Layers: Prevents false positives for analog sources
Fast Performance: 80% faster than baseline through caching
Flexible Output: Console, text reports, JSON export
Auto-Repair: Corrupted FLAC files automatically fixed
Quick Start
Installation
# Via pip (recommended)
pip install flac-detective
# Already installed? Use --upgrade to get the latest version
pip install --upgrade flac-detective
# Via Docker
docker pull ghcr.io/guillain-rdcde/flac_detective:latest
Plain
pip installdoes not upgrade an existing install — it prints “Requirement already satisfied” and exits. Use--upgrade(or-U). See Getting Started → Upgrading for details.
Basic Usage
# Analyze a directory
flac-detective /path/to/music
# Generate JSON report
flac-detective /path/to/music --format json
# Verbose output
flac-detective /path/to/music --verbose
Understanding Verdicts
Verdict |
Score |
Meaning |
|---|---|---|
✅ AUTHENTIC |
≤ 30 |
No evidence of transcoding |
❓ WARNING |
31-54 |
Borderline - manual review recommended |
⚠️ SUSPICIOUS |
55-85 |
Likely transcode |
❌ FAKE_CERTAIN |
≥ 86 |
Multiple strong indicators of transcoding |
Documentation Structure
The documentation is organised into core guides plus two deep dives:
index.md (this file) - Overview and navigation
getting-started.md - Installation and first steps
user-guide.md - Complete usage guide with examples
api-reference.md - Python API documentation
technical-details.md - How it works under the hood (11 rules + optional ML Rule 12)
CONTRIBUTING.md - Development and contribution guide
ml/README.md - The ML model R&D case study
roadmap-formats.md - Multi-format design note
Common Tasks
I want to analyze my music collection
→ Start with Getting Started, then read User Guide
I want to use FLAC Detective in my Python code
→ Read API Reference
I want to understand how detection works
→ Read Technical Details
I want to contribute code or report bugs
→ Read Contributing
External Resources
GitHub Repository: https://github.com/Guillain-RDCDE/FLAC_Detective
PyPI Package: https://pypi.org/project/flac-detective/
Issue Tracker: https://github.com/Guillain-RDCDE/FLAC_Detective/issues
Discussions: https://github.com/Guillain-RDCDE/FLAC_Detective/discussions
Support
Report bugs: GitHub Issues
Ask questions: GitHub Discussions
Security issues: Email guillain@poulpe.us (see SECURITY.md)
License
FLAC Detective is released under the MIT License. See LICENSE for details.
Version: 1.1.0 | Last Updated: June 2026