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)?"
A long time ago I wrote a program which can, Among other things, re-tag mp3s based on the filename. This isn't exactly CDDB, but it's a start.
It's a perl program, so it Should run on OS X without modification, so long as you've got it's perl module requirements taken care of.
The program is called The MP3 Butler, and you can get it from http://babblica.net/mp3butler.
get 0wned. irc.w30wnzj00.com
Tag & Rename is a relative cheap program for mass editing of ID3 tags. One of it's many features is that if you have a directory that contains all of the tracks of one album, in order, it will go to CDDB and retrieve the album/track information. It will of course create ID3 tags from this information if you desire.
The user interface takes a little getting used to, and it's a Windows program, and it's payware, but I had to respond to all the folks who say "it can't be done". Tag&Rename does it.
http://www.softpointer.com/tr.htm
A.
...bringing you cynical quips since 1998
Unless you've been living in a cave for the past two years you'd know that CDDB has been hijacked by Gracenote who've turned what was a nice, cooperative development, steadily built up by thousands of unpaid users into a private, commercial venture.
Nowadays, if you're developing commercial software that accesses the CDDB database you have to pony up licensing fees or look elsewhere.
That elsewhere is freedb. Check it out and use it instead of using CDDB.
"Accept that some days you are the pigeon, and some days you are the statue." - David Brent, Wernham Hogg
You probably want to use Applescript for this. Check out this page for a buttload of iTunes applescripts. For example the "Get CDDB Track Names" script will tag the selected tracks in iTunes with info from a CDDB webpage (that you searched for). And you can use the built-in applescripts to search the CDDB.
But honestly, with only 2000 songs, it would probably be less work to do it yourself, especially if you can use iTunes multiple-edit mode on tracks from the same album.
I hold it, that a little rebellion, now and then, is a good thing. -- Thomas Jefferson
Sure, you aren't going to get every invalid version, but who wants that anyway? For clean rips, you should be able to narrow the range down a lot. No, it won't be one-to-one like a CD, but that's okay too.
For someone who's done it already, check out MoodLogic. Hooks in with winamp too.
-Bill
SlashSig Karma: Excellent (mostly affected by moderatio
Um... no. There is no "CD ID number" burned into every CD. CDDB works by assuming that the track lengths are unique to a CD, which almost always works. That is why if you have the MP3s and you burn them to a CD, you can sometimes get CDDB to recognize it. Of course, that only works if all the different people you got your MP3s from ripped them with the same conventions, i.e. do you include the song gap, and if so, at the beginning or the end, etc.
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.
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.
Using a program called "mp3ascd" to generate the CDDB ID, and another program called "rebot" to do the renaming based on the ID. (Both found on freshmeat). Not the best software in the world, and I had to make a shell script to glue them together. But it is entirely possible.