π΅ Metadata Best Practices for Music Libraries
This guide explains essential metadata tags, format differences, and practical strategies to maintain a clean, searchable, and server-friendly music library compatible with Selfhost Music and other players.
π Why Metadata Matters
Well-structured metadata ensures:
- Accurate browsing and searching
- Proper album grouping (including compilations and multi-disc releases)
- Reliable scrobbling
- Consistent playlist behavior
- Correct cover art and lyrics display
- Compatibility across servers and players
π·οΈ Core Metadata Tags
Essential Fields
| Field | Purpose | ID3 (MP3/AAC) | Vorbis/FLAC |
|---|---|---|---|
| Title | Track title | TIT2 |
TITLE |
| Artist | Track performing artist | TPE1 |
ARTIST |
| Album | Album/release name | TALB |
ALBUM |
| Album Artist | Groups compilations correctly | TPE2 |
ALBUMARTIST |
| Track Number | Track order | TRCK |
TRACKNUMBER |
| Disc Number | Disc index in multi-disc releases | TPOS |
DISCNUMBER |
| Date / Year | Release date | TDRC |
DATE / YEAR |
| Genre | Musical category | TCON |
GENRE |
Advanced / Recommended Fields
- Composer / Conductor / Publisher β important for classical and soundtrack collections.
- MusicBrainz IDs
musicbrainz_trackidmusicbrainz_albumidmusicbrainz_artistid- Helps with persistent identification and reduces ambiguity.
- ReplayGain
replaygain_track_gainreplaygain_album_gain- Enables normalized playback where supported.
- Cover Art
- Embedded image (
APICin ID3) - Or sidecar
cover.jpginside album folder
- Embedded image (
- Lyrics
- Unsynchronized β
USLT(ID3) /LYRICS - Synchronized β
.lrcfiles
- Unsynchronized β
π§ Format-Specific Notes
ID3 (MP3 / AAC)
Common frames:
TIT2β TitleTPE1β ArtistTALBβ AlbumUSLTβ LyricsAPICβ Embedded artwork
Vorbis / FLAC / OGG
Simple key-value structure:
TITLEARTISTALBUMLYRICS
More flexible and easier to edit in bulk.
MP4 / M4A
Uses different internal atoms:
Β©namβ TitleΒ©ARTβ ArtistΒ©albβ Album
GUI tools automatically translate these for you.
β Practical Tagging Tips
- Always fill Album Artist for compilations.
- Use zero-padded track numbers:
01,02,03. - Prefer full dates:
YYYY-MM-DD. - Avoid mixing multiple genres in a single string.
- Use MusicBrainz IDs when relying on automated tools.
- Keep consistent separators for multi-artist tracks.
π Recommended Tools
beets (CLI, automated)
Powerful importer with MusicBrainz integration.