Skip to main content

Advanced FLAC authenticity analyzer - Detects MP3-to-FLAC transcodes with high precision

Project description

🎵 FLAC Detective

FLAC Detective Banner

Python Version PyPI version PyPI Downloads License Status codecov Code style: black Pre-commit

Advanced FLAC Authenticity Analyzer for Detecting MP3-to-FLAC Transcodes

FLAC Detective is a professional-grade command-line tool that analyzes FLAC audio files to detect MP3-to-FLAC transcodes with high precision. Using advanced spectral analysis and an 11-rule scoring system, it helps you maintain an authentic lossless music collection.


✨ Key Features

  • 🎯 High Precision Detection: 11-rule scoring system with intelligent protection mechanisms
  • 📊 4-Level Verdict System: Clear confidence ratings from AUTHENTIC to FAKE_CERTAIN
  • ⚡ Performance Optimized: 80% faster than baseline through smart caching and parallel processing
  • 🔍 Advanced Analysis: Spectral analysis, compression artifact detection, and multi-segment validation
  • 🛡️ Protection Layers: Prevents false positives for vinyl rips, cassette transfers, and high-quality MP3s
  • 📝 Flexible Output: Console reports with Rich formatting, JSON export, and detailed logging
  • 🔧 Robust Error Handling: Automatic retries, partial file reading, and comprehensive diagnostic tracking
  • 🔨 Automatic Repair: Corrupted FLAC files are automatically repaired with full metadata preservation

🚀 Quick Start

Installation

# Install via pip (Recommended)
pip install flac-detective

# OR run with Docker
docker pull ghcr.io/guillainm/flac-detective:latest

📦 See Getting Started for complete installation instructions.

Basic Usage

# Analyze current directory
flac-detective .

# Analyze specific directory
flac-detective /path/to/music

📖 See User Guide for detailed usage examples and command line options.


📚 Documentation

Detailed documentation is available in the docs/ directory:


🎯 Use Cases

  • Library Maintenance: Clean your music collection of fake lossless files
  • Quality Verification: Validate FLAC authenticity before archiving
  • Batch Processing: Analyze large music libraries efficiently
  • Format Validation: Ensure genuine lossless quality for critical listening

🤝 Contributing

Contributions are welcome! Please read our CONTRIBUTING.md for detailed guidelines and CODE_OF_CONDUCT.md for community standards.


🔒 Security

For security policy and vulnerability reporting, please see SECURITY.md.


📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


📞 Support


FLAC Detective - Maintaining authentic lossless audio collections

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flac_detective-0.9.6.tar.gz (100.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flac_detective-0.9.6-py3-none-any.whl (101.1 kB view details)

Uploaded Python 3

File details

Details for the file flac_detective-0.9.6.tar.gz.

File metadata

  • Download URL: flac_detective-0.9.6.tar.gz
  • Upload date:
  • Size: 100.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for flac_detective-0.9.6.tar.gz
Algorithm Hash digest
SHA256 0fb63b4dbe79d6ee523e6ca32707704c209570cb46eca24807d1f4e86aa2f354
MD5 8d292e273413f9880efad696bcc44f1d
BLAKE2b-256 3552f9568fe3618de718a5b0d23b35c5237882c52a6fb4b214c6f9ae9271a048

See more details on using hashes here.

File details

Details for the file flac_detective-0.9.6-py3-none-any.whl.

File metadata

  • Download URL: flac_detective-0.9.6-py3-none-any.whl
  • Upload date:
  • Size: 101.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for flac_detective-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 54c5d1466ac0b2b1c722b33020e2330f2c8df2ce4a5b9e609a857c536a867fca
MD5 114b394401af2d50b311488cb932fe89
BLAKE2b-256 0ac03dfd5fbadb1ea204857a4b45a62f0f2795193d05a0a4c306866758ac09f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page