Music indexing
To get your music into Cardinal Music, you need to index it with Cardinal Media Server.
Supported file typesβ
- mp3
- flac
- opus
- ogg
- m4a
- wav
- aac
- wma
- aiff, aif
- ape (Monkey's Audio)
- wv (WavPack)
- dsf (DSD)
Every format except mp3 is converted to mp3 on the server as it plays, so each one plays in every browser.
Metadata priorityβ
Metadata that is embedded in the music file will take priority over the metadata that is derived from the folder structure, except for these items:
- Album art - If an album art image is present in the same folder as the track then it will be prioritized over the album art that is embedded in the file. See the album art job docs for more info.
Folder structureβ
Use this folder structure to help your Media Server figure out metadata.
/music π Cardinal Media Server's music library root
/[...] π Other folders, any depth, optional
/Artist name
/Release name π Can contain yearΒΉ
/CD 1 π Optional disc folderΒ²
track.mp3 π Can contain track numberΒ³
cover.jpg π Optional cover artβ΄
ΒΉ Release folder structureβ
The release name can be prefixed with the year. The year can optionally be surrounded by square brackets or parentheses. There must be a space or a dash after the year.
Valid release names:
- β
Stranger Heads Prevail - β
2016 Stranger Heads Prevail - β
2016 - Stranger Heads Prevail - β
2016-Stranger Heads Prevail - β
(2016) Stranger Heads Prevail - β
[2016] Stranger Heads Prevail
Invalid release names:
- β
[2016]Stranger Heads Prevail
Β² Disc folder structureβ
Releases can optionally be divided into disc folders. Valid names are Disc,
Disk and CD (case insensitive), with an optional space or dash, and any
number afterwards.
Valid disc folder names:
- β
Disc 1 - β
Disc-1 - β
Disc1 - β
CD 1 - β
CD-1 - β
CD1
Invalid disc folder names:
- β
1
A disc marker at the end of a release folder name also works, so each disc can be its own release folder. Every disc lands in one release:
- β
/Artist name/Release name (Disc 1)and/Artist name/Release name (Disc 2)β one release, "Release name" - β
/Artist name/Release name [FLAC]/Release name (CD2)β disc 2 of "Release name [FLAC]", because the disc folder repeats its release folder's name
Discs in tagsβ
Every disc of a release is one release, even when the album tag names the disc.
A disc marker at the end of the album tag is removed: Brotherhood (CD1),
Brotherhood (Disc 2), Brotherhood - Disc 2, Brotherhood [CD 2 of 2] and
Brotherhood CD2 and Brotherhood (Disc Two) are all "Brotherhood".
The disc number comes from the disc tag first, then the marker in the album tag, then the folder.
A disc whose album tag adds a subtitle stays in the release too, when the disc tags agree on the number of discs and the year matches. The release takes the shared name:
- β
The Great Cold Distance(disc 1/3),The Great Cold Distance - B-Sides & Extras(disc 2/3) andThe Great Cold Distance - Live in Bulgaria(disc 3/3) β one release, "The Great Cold Distance", with three discs - β
/Mellon Collie/Dawn to DusktaggedMellon Collie: Dawn to Dusk(disc 1/2) and/Mellon Collie/Twilight to StarlighttaggedMellon Collie: Twilight to Starlight(disc 2/2) β one release, "Mellon Collie" - β
Everything Is WrongandUnderwaters 1-5in one folder β two releases, because the tags name different albums
How tracks become releasesβ
The tags decide which tracks form a release, and the folders keep apart albums that the tags alone can't tell apart.
- Tracks in one release folder (disc folders included) with the same album tag are one release, even when their artist tags differ. Punctuation and case in the album tag don't matter.
- A release with an album artist tag belongs to that artist. Tracks whose album artist tags differ are never one release.
- A release without an album artist tag belongs to the artist of more than half of its tracks, or to Various Artists when no artist has that many. A track marked as part of a compilation belongs to Various Artists.
- Releases in different folders with the same name and artist are one release only when their years match. An artist's 2007 EP and 2018 album, both named after the band, stay two releases.
Β³ Track file structureβ
The track name can be prefixed with the track and disc numbers. The numbers can optionally be surrounded by square brackets or parentheses. There must be a space or a dash after the numbers.
A disc number can only be given with an accompanying track number, and when given together, the disc number is on the left.
Valid track names:
- β
Psychopomp.mp3 - β
09 Psychopomp.mp3 - β
9 Psychopomp.mp3 - β
09 - Psychopomp.mp3 - β
09-Psychopomp.mp3 - β
(09) Psychopomp.mp3 - β
[9] Psychopomp.mp3 - β
1-9 Psychopomp.mp3 - β
01-09 Psychopomp.mp3
Invalid track names:
- β
(09)Psychopomp.mp3
β΄ Cover art structureβ
Add an image named cover.jpg or folder.jpg next to your music file to use it
as the album art for that song.
See the album art job for more information.
Was this article helpful?