I'd like to be able to determine what music album CD is in a CD drive. For example, if someone claims that the CD in their drive is Eminem - The Eminem Show, I would like to be able to verify that the CD is indeed The Eminem Show.
Any ideas? I've applied for a Gracenote developer license, but they won't get back to me for five days.
Also, how does this work? Is there some GUID or other unique identifier that music discs are encoded with?
Lastly, might this be possible with data CDs, like, say, the Diablo II install Disc 1? If so, any directions you can point me in, for accomplishing this?
You probably want to use something like libcddb to get/verify music CD information. I don't know if there is a similar database for program discs.
As for music CDs, Gracenote works by analyzing the actual waveform data of every track on the CD. It does this is a format-neutral way. It talks about it here.
I'd also recommend last.fm, MusicBrainz, and discogs.
来源:https://stackoverflow.com/questions/576372/identifying-cds