MusicBrainz and Rivendell

From Rivendell Wiki

Jump to: navigation, search

From wikipedia:Musicbrainz:

MusicBrainz is a project that aims to create an open content music database. Similar to the freedb project, it was founded in response to the restrictions placed on the CDDB. However, MusicBrainz has expanded its goals to reach beyond a compact disc metadata storehouse to become a structured "Wikipedia for music".

Musicbrainz offers a database of metadata associated with music and relationships between tracks, albums, and artists. Rivendell has no support for the MusicBrainz database, and cannot directly interface with any musicbrainz applications.

By adding a few fields to your Rivendell database and loading a plugin into a tagger you can update carts with metadata from MusicBrainz externally.


File:RD_and_MB.png

Pros

  • Find Lost Information
By using an audio fingerprinting technique, carts without metadata can potentially be identified.
  • Unicode
The RD 1.x applications do not support unicode, but the MySQL database they use does. By using the modified Picard tagger to edit cart metadata, unicode data may be stored. While RD will not correctly displayed this information until later a version, the endpoints of current Now+Next modules may successfully interpret unicode.
  • Fix Freedb Lookups
Freedb/CDDB doesn't support multiple artists on a CD. By loading and tagging carts from these CDs into Picard, you can replace those ugly 'Various Artist' entries in your library.

Cons

  • Increased SQL table size

You will be adding fields to your database that are superflous to Rivendell, here are is the effect on one database after the fields were added.

1.5M    CART.MYD
1.4M    CART.MYI
11392 rows affected
1.6M    CART.MYD
1.4M    CART.MYI

How this affects perfomance has not been tested.

Installation

You will need the Picard tagger, and the MySQLdb python plugin for any of this to work. How you install those is up to you.


Save one of the following scripts:

http://github.com/3M3RY/Rivendell-Extras/raw/master/picard%20plugin/rivendell.py

http://github.com/3M3RY/Rivendell-Extras/raw/master/picard%20plugin/rivendell-artistsort.py

rivendell-artistsort.py will save artist names in a sortable format.

Load and activate the plugin in Picard from Options -> Options... -> Plugins

If you do not have the Install plugin... option, you will have to manually move the script to ~/.config/MusicBrainz/Picard/plugins/, and then activate the plugin in Picards options.


Now when cart files are loaded from /var/snd to Picard, the cart metadata is loaded from MySQL, and saved back to MySQL. It's not very convenient, but it is faster than manual entry.

For instructions on using Picard, see http://musicbrainz.org/doc/How_To_Tag_Files_With_Picard.

Personal tools