Music Auto Tagger is an automated music library organizer based on audio fingerprinting and duration sequence fingerprinting. Designed for NAS and server environments, it monitors your download folder, identifies music files, fetches comprehensive metadata (including lyrics), and organizes them into a clean structure.
Core Value: Say goodbye to messy music folders. Automatically tag, cover, and organize your music library to perfection.
The built-in real-time monitoring dashboard provides:
- 📊 Real-time statistics and processing progress
- 📝 Recently processed files with detailed metadata
- 📋 Live system logs with auto-scroll
- ⚙️ System configuration and status overview
- 🎧 Audio Fingerprinting: Uses Chromaprint (AcoustID) to accurately identify files even with garbled filenames (e.g.,
track01.mp3). - 📝 Authoritative Metadata: Sources data from MusicBrainz to automatically complete Title, Artist, Album, Year, Composer, Lyricist, and more.
- 📜 Synced Lyrics: 🆕 Integrates with LrcLib to automatically download and embed synced lyrics (.lrc), perfect for modern players.
- 🖼️ HD Cover Art: Automatically downloads and embeds high-quality album art from the Cover Art Archive.
- 📁 Automated Organization: Automatically renames and sorts files into a
Artist/Album/Titlestructure. - 🤖 Unattended Operation: Works seamlessly with qBittorrent/Transmission to process downloads automatically upon completion.
- ⚡ Smart Scan Optimization: 🆕 Two-tier identification + folder-level caching
- Tier 1: Quick Scan - Tag & duration sequence matching, passes at 90% accuracy
- Tier 2: Fingerprint - Only triggered when quick scan fails, ensures high recognition rate
- Folder-level Caching - Subsequent files in the same album use cached results, skip all scans
- Performance Boost: Processing a 16-track album requires only 1 full scan + 15 cache lookups
- 💾 Dual Persistence Modes:
- File Mode (Default): Uses a CSV file to track processed files. Zero config, ready out of the box for personal use.
- MySQL Mode: Supports external database connection for massive libraries and high concurrency.
- 🐳 Docker Ready: Provides lightweight Docker images compatible with Synology, QNAP, Unraid, and other NAS systems.
- 🔄 Smart Retry: Automatically handles network failures with retry logic and isolates failed files for later inspection.
- 📊 Web Monitoring Dashboard: 🆕 Built-in real-time monitoring dashboard to visualize processing progress, system status, and runtime logs.
- 🌐 Multi-language Support: 🆕 Supports both Chinese and English interfaces, easily switchable via configuration file, providing localized experience for global users.
Since music releases are extremely complex (Singles, EPs, Albums, Compilations, Deluxe Editions, etc.), to ensure the tool accurately categorizes your music into the correct albums, it is highly recommended to follow this practice:
Please place audio files from the same album (or single) into a separate folder before processing them with this tool.
❌ Not Recommended: Dumping hundreds of songs from different artists and albums into a single directory. ✅ Recommended:
/Downloads/Jay_Chou_Fantasy/(Contains songs from the Fantasy album)/Downloads/Adele_21/(Contains songs from the 21 album)
Reason: When files are isolated in separate folders, the program can better determine that they belong to the same album based on context, avoiding misidentification of album tracks as "Best Of" compilations or "Single" versions.
The easiest way to run the application. Configuration is done in the web UI after login.
-
Create docker-compose.yml
version: '3.8' services: music-tagger: image: ghcr.io/lux032/musicautotagger:latest container_name: music-tagger ports: - "8080:8080" # Web dashboard environment: - PUID=1000 - PGID=1000 - UMASK=022 volumes: - /path/to/downloads:/music - /path/to/music_library:/app/tagged_music - ./data:/app/data - ./config.properties:/app/config.properties restart: unless-stopped
Set
PUID/PGIDto match the NAS user/group that owns your mounted folders.UMASKcontrols default permissions. -
Start Service
docker-compose up -d
-
Access Web Monitoring Dashboard
Open
http://localhost:8080in your browser.- First visit will prompt you to create an admin account (stored in
data/admin.json). - If
config.propertiesis missing, the app auto-generates it on startup. - All settings (API keys, database, proxy, paths, language) are managed in the web UI.
- First visit will prompt you to create an admin account (stored in
If you prefer to run it locally for development or testing:
- JDK 17+
- Maven 3.6+
- Chromaprint (fpcalc) (Must be added to system PATH)
- FFmpeg (Must be added to system PATH)
# 1. Build
mvn clean package
# 2. Run
java -jar target/MusicDemo-1.0-SNAPSHOT.jar
# 3. Access Web Dashboard
# Open http://localhost:8080 in your browserConfiguration is created automatically on first run. All settings (API keys, database, proxy, paths, language) are managed in the web UI after login.
- QNAP NAS Users: See QNAP Deployment Guide (Chinese)
- Database Setup: Default is file-based. For MySQL setup, see Database Setup
- Windows Guide: Windows Build & Test
Issues and Pull Requests are welcome!
If this project helps you, please consider giving it a ⭐ Star!
This project is licensed under the MIT License.
The MIT License is a permissive open source license that allows you to:
- ✅ Commercial use
- ✅ Modification
- ✅ Distribution
- ✅ Private use
The only requirement is to include the copyright notice and license notice in all copies or substantial portions of the software.
This tool relies on the following third-party services. Please respect their respective Terms of Service:
- MusicBrainz - Music metadata service
- AcoustID - Audio fingerprinting service
- LrcLib - Lyrics service
- Cover Art Archive - Album art service
- FFmpeg - Audio processing toolkit
Disclaimer: This tool relies on third-party services (MusicBrainz, AcoustID, LrcLib). Please respect their Terms of Service.
