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 Tracktype.org.

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 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

Cool Tech

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Breitling Superocean Heritage Chronographe 44

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?