CD fingerprints

CD fingerprints

An avid PC world reader wrote: "I was particularly intrigued by the fact that after ripping my audio CD to the MP3 format in WinAmp, it would read the song info and fill in the headers." Tim wondered how this worked so ... there are two ways to figure out what is on a CD: fingerprinting and CD text.

Fingerprinting, the more common method (which used to be known as CDDB), is used by the commercial CD-identifying service offered by Gracenote and two free CD databases: Freedb and

The fingerprint of a CD, called the CDDB ID, is an almost unique value -- "almost" because it is possible for two (or more) compact disks to have the same fingerprint. Freedb explains: "The disc ID ... is not as good as it could be -- in fact, it is pretty bad as a unique identifier for a CD. Therefore, completely different CDs (with the same length in seconds and the same [number of tracks]) can have the same disc ID ... This disc ID algorithm and the cddb protocol can unfortunately not be changed without losing backward compatibility to existing applications."

According to Wikipedia, the CDDB ID "identifies CDs with a 32-bit number, usually displayed as a hexadecimal number containing 8 digits: XXYYYYZZ. The first two digits (labeled XX) represent a checksum based on the starting times of each track on the CD. The next four digits (YYYY) represent the total time of the CD in seconds from the start of the first track to the end of the last track. The last two digits (ZZ) represent the number of tracks on the CD."

Actually that description was for the old CDDB1 service, the free version of the Gracenote database that was shut down in 2001. As far as I can determine the IDs in the "new" Gracenote database are formed using the same algorithm but the old access protocol, also called CDDB1, has been changed by Gracenote and is not backward compatible.

If you feel inspired you can examine an example of Perl code that performs the CDDB1 calculation or a Java version.

The free services support the CDDB1 ID format and, like Gracenote, support access via an HTTP form (unique to each service), but unlike Gracenote they support the CDDB1 protocol -- Gracenote uses a proprietary version for commercial reasons. Note that Gracenote also keeps the CDDB IDs hidden, while freedb and tracktype both display the ID and allow you to search by it.

Just in case you were asking yourself, "Self, I wonder what the ID is for Led Zeppelin's 'Led Zeppelin III,'" the answer is 7f10d60a.

WinAmp, in common with many other music management applications, figures out the CDDB ID when it reads a CD and then automagically looks it up using whichever CD database you've configured it for. Thus when you rip a CD, WinAmp can fill in the MP3 header tags.

Actually, depending on which service you use, you will occasionally get multiple matches in which users disagree on the details of a CD or, as I pointed out earlier, two or more CDs have the same fingerprint. WinAmp will ask you to choose which you think is the correct version for your CD.

Join the PC World newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Mark Gibbs

Network World
Show Comments

Most Popular Reviews

Latest Articles


PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?