Can six matching track lengths identify the CD in your drive?
Suppose six ripped tracks match the titles and durations on Ettella Diamant , a 2004 CD. Could those files tell you which disc was in the drive? MusicBrainz publishes a table of contents for this release. Track 1 starts at sector 150. Track 2 starts at 15,363. That makes the first track 15,213 sectors long. Now move both starts forward by 75 sectors, or one second. The first track is still…
In a scenario where six tracks from a 2004 CD named Ettella Diamant match the titles and durations listed in MusicBrainz, could those files alone identify the specific disc in a computer's drive? The answer lies in understanding the relationship between track starts and lead-out times.
MusicBrainz provides a table of contents for the release, showing that Track 1 begins at sector 150, Track 2 at 15,363, and the first track spans 15,213 sectors. By shifting both sector starts forward by 75 sectors (equivalent to one second), the lengths of all six tracks remain unchanged, as the shift affects only the starting points.
To explore this concept further, one can install the library 'libdiscid' and its Python binding, then use a script to calculate track lengths based on shifted sector starts. Running the script with a zero or 75 sector shift yields different Disc IDs - J6ByVAb6GiwqAB8S6HnAYK0f4E0- for the zero shift, and a 404 error for the shifted version. The latter indicates that the disc with the altered durations is not found in MusicBrainz's database.
This demonstrates that even with precise metadata, there can be ambiguity in identifying a specific CD. The practical advice for collectors is to keep the original extraction log, including the table of contents, alongside the ripped files to maintain accurate identification. However, if only the files and their durations are available, preserving the pressing information becomes crucial, as a single Disc ID may correspond to multiple CDs.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to
More from Dev.to on urgent.news
Report a problem with this story
Get the day's news by email. Daily, weekly or monthly. Sign up