AccurateRip: Difference between revisions

From Hydrogenaudio Knowledgebase
(→‎Drive offsets: rephrased a bit to make some corrections)
(→‎Drive offsets: more fixes)
Line 1: Line 1:
'''AccurateRip''' is a database that accepts and supplies two things: 1. estimates of the accuracy of the digital audio extraction (DAE) capabilities of CD-ROM/CD-RW drives (specifically, their read offsets), and 2. checksums for audio tracks extracted with those drives.
'''AccurateRip''' is a database that accepts and supplies two things: 1. estimates of the accuracy of the digital audio extraction (DAE) capabilities of CD-ROM/CD-RW drives (specifically, their read offsets), and 2. checksums for audio tracks extracted with those drives.


==Drive offsets==
==Drive read offsets==
Very few CD drives actually start reading right at the sector requested by DAE software. They are allowed to be off by as much as 4 sectors (4/75ths of a second), and in reality there are drives that are off by over 1 second. However, most drives are off by less than 2 sectors. Because modern CD drives have "Accurate Stream" technology, there's no "jitter" and the variance will be consistent from read to read, and will tend to be the same for all drives of a certain make & model.
Very few CD drives actually start reading data from audio CDs right at the sector requested by DAE software. There are drives that are off by over 1 sector (1/75th of a second), but most are off by much less (<sup>1</sup>/<sub>250</sub> to <sup>1</sup>/<sub>350</sub> second). Because modern CD drives have "Accurate Stream" technology, there's no "jitter", meaning in this case that the offset is still there, but the variance will be consistent from read to read, and will tend to be the same for all drives of a certain make & model.


The AccurateRip database allows one to find out the read offset, which is a number, for a given make & model of CD drive. This number can then be used by DAE software to ensure that each track is ripped from its exact start to its exact finish.
The AccurateRip database allows one to find out the read offset, which is a number, for a given make & model of CD drive. This number can then be used by DAE software to ensure that each track is ripped from its exact start to its exact finish.

Revision as of 07:47, 12 January 2009

AccurateRip is a database that accepts and supplies two things: 1. estimates of the accuracy of the digital audio extraction (DAE) capabilities of CD-ROM/CD-RW drives (specifically, their read offsets), and 2. checksums for audio tracks extracted with those drives.

Drive read offsets

Very few CD drives actually start reading data from audio CDs right at the sector requested by DAE software. There are drives that are off by over 1 sector (1/75th of a second), but most are off by much less (1/250 to 1/350 second). Because modern CD drives have "Accurate Stream" technology, there's no "jitter", meaning in this case that the offset is still there, but the variance will be consistent from read to read, and will tend to be the same for all drives of a certain make & model.

The AccurateRip database allows one to find out the read offset, which is a number, for a given make & model of CD drive. This number can then be used by DAE software to ensure that each track is ripped from its exact start to its exact finish.

The offset is given in samples. There are 1176 two-byte samples (588 pairs of 16-bit values for the left and right channels) in each sector of an audio CD, corresponding to 1/75th of a second of sound. An AccurateRip offset of +134, for example, means the drive consistently delivers data from 268 bytes behind where it was asked to read from, so the DAE software needs to look that far ahead in order to get the right data.

Ripped track checksums

Once all the samples for a track have been extracted and put into a file such as a WAV, a checksum can be generated to summarize the sample data. Identical data will produce identical checksums. If the data is the slightest bit different, the checksums will usually be very different. The checksums derived from the same tracks from the same pressings of the same CDs, so long as drive offsets have been accounted for, can be compared in order to determine whether the extraction was error-free. That is, if you rip a track and find that your checksum matches what everyone else got, then you can be confident there are no missing or incorrect samples (or that you've all got exactly the same damage, which is nearly impossible). See the secure ripping article for more on this subject.

The AccurateRip database contains checksum data for the tracks on thousands of CDs. DAE software can use this info to decide whether to try re-reading a track that produced a different checksum than was expected.

Submitting offsets and checksums

The database is designed to be anonymously accessed by DAE software, via HTTP. Submitting data should only be done through such software.

External links