Slashdot Mirror


Using CDDB to Fill ID3 Information in Existing MP3s?

masonbrown asks: "I've got about 2000 songs in my MP3 collection, using iTunes on the Mac. I'd love to fill in the empty ID3 tags such as Album Title, Date, etc. automatically from something like CDDB. Is there any way to automate this after the song is already in MP3 format (like going by Artist and Song Title)?"

1 of 68 comments (clear)

  1. Re:you should know how it works by nathanh · · Score: 5, Informative
    CDDB works by doing a simple lookup of the CD's ID (burned in )

    What total rot. There's no such thing as a "CD ID". The CDDB ID is a one-way hash of the track lengths. Here is a comment from a script I wrote a few years ago.

    # The cddb disc id looks like this: sum the digits of each track's
    # starting point in seconds, shove that in the high byte; find the
    # total _playing_ time (subtract leadins) and put into the 2nd and
    # 3rd bytes; put the number of tracks in the low byte. The playing
    # time can't exceed approx 80 mins, so it will never overflow. The
    # summation of digits can overflow so the specs require the modulo
    # 255 first (not bitwise-and like you'd expect, weird huh).

    It might be possible to create a CDDB ID from a full album of MP3s. But I think there's no hope if you have random MP3s from incomplete albums.