Old 05-01-2008   #1
MyCE Rookie
 
Join Date: Oct 2007
Posts: 24
CD/DVD-ROM identification method?

Not quite sure where this question might belong, so I'll ask it here.

I'm looking for some kind of method or algorithm to identify a CD- or DVD-ROM with a fairly high degree of a probability. I'm not trying to identify the medium, but for a was to say 'yes, I'm sure I've already catalogued the contents of this CD/DVD before' in something like 1 or 2 seconds. I imagine that someone must already have tried to develop something like that.

In short, I'm looking for something like a CDDB algorithm, but for CD and DVD-ROM instead of CD-DA, and with lower false positives.

A MD5 hash for the contents (with certain restrictions) would probably have been ideal, except that it can't be done in 1-2 seconds.

Is there anything like this out there?
athulin is offline   Reply With Quote
Old 06-01-2008   #2
MyCE Resident
 
_chef_'s Avatar
 
Join Date: Aug 2004
Location: @FX labs .de ...playing LLAMATRON :-]
Posts: 31,135
Re: CD/DVD-ROM identification method?

Quote:
Originally Posted by athulin View Post
Not quite sure where this question might belong, so I'll ask it here.

I'm looking for some kind of method or algorithm to identify a CD- or DVD-ROM with a fairly high degree of a probability. I'm not trying to identify the medium, but for a was to say 'yes, I'm sure I've already catalogued the contents of this CD/DVD before' in something like 1 or 2 seconds. I imagine that someone must already have tried to develop something like that.

In short, I'm looking for something like a CDDB algorithm, but for CD and DVD-ROM instead of CD-DA, and with lower false positives.

A MD5 hash for the contents (with certain restrictions) would probably have been ideal, except that it can't be done in 1-2 seconds.

Is there anything like this out there?
I doubt that is possible as you think.
FIRST and always the mediatype is identified by a drive, the content is another part.
__________________
Enable DMA with micrAp$0ft Enable DMA free at your will busTRACE => Upper/Lower Filters Util
DevCon
***HOW TO ... Delete the Upper & Lower Filters!***

If you expect help then please use the powerful SEARCH. Try ThreatFire
I am looking for DVD-R for Authoring & HD DVD media. Please PM me if you can help me.

Vamos Tribbles! V-a-m-o-s!!
_chef_ is offline   Reply With Quote
Old 06-01-2008   #3
MyCE Rookie
 
Join Date: Oct 2007
Posts: 24
Re: CD/DVD-ROM identification method?

>I doubt that is possible as you think.

I have no doubt that it is possible -- I'm simply trying to find out if anyone have done something like this before: if there already is something reasonably well accepted? That is my main question.

For instance, CDDB1 works simply by taking the number of tracks on the CD-DA and their length, chew on that a bit, and spit out a number.

The absolutely simplest thing to use for a ISO9660 CD-ROM would be to use the Volume Identifier as key. But as there are quite a number of collisions already (especially for old CD-ROMs), a more extensive scheme, such as taking the primary volume set descriptor and MD5-hash that. A still more complex scheme would be to append the directory structure it references and MD5-hash that.

Each of these could be used as a 'thumbprint' to identify the contents of the CD -- from the awful (Volume Identifier alone) to what at first sight, at least, seems to work better.
athulin is offline   Reply With Quote
Old 06-01-2008   #4
Senior Moderator & Editor
 
imkidd57's Avatar
 
Join Date: Feb 2005
Location: New Fajara
Posts: 8,786
Re: CD/DVD-ROM identification method?

Moved to 'Optical Storage Technical Discussions'.
imkidd57 is offline   Reply With Quote
Old 06-03-2008   #5
New on Forum
 
Join Date: Mar 2008
Posts: 9
Re: CD/DVD-ROM identification method?

One could create a numerical string that contains # of files, # of dirs, size of disc in bytes, # of sectors, time used on the disc, leadout lba, etc. All of which can be read in seconds.

Example
-----------

Code:
50      8    2289248
FILES   DIRS LEADOUT LBA
|-----||----||--------|
00000500000080002289248
Nakor_ is offline   Reply With Quote
Old 07-03-2008   #6
MyCE Rookie
 
Join Date: Oct 2007
Posts: 24
Re: CD/DVD-ROM identification method?

Quote:
Originally Posted by Nakor_ View Post
One could create a numerical string that contains # of files, # of dirs, size of disc in bytes, # of sectors, time used on the disc, leadout lba, etc.
True, but it 'feels' as if that captures more form than content. And that's what made CDDB1 fail ultimately -- I can easily imagine that, say, two successive releases of some software development kit have the same number of files, dirs, and size, and only differs in file sizes and file contents.
Any differences between these two will be found in the volume descriptors, i.e. the system area of the CD-ROM.

What I've experimented with so far is to create a MD5 hash from all the
ISO9660 file descriptor blocks followed by at most 20 further evenly spaced
blocks counted from block 16 (that is, with LBA = 16 + n*32 or something like that.

It doesn't capture file structure, which I would like to include.

I would also like to include media size and recording method (is it a CD-ROM, or a CD-R etc.) to ensure simple copies could be recognized.

But I've realised that it's going to be well-nigh impossible to test it properly, so it's rather on back-burner for now.
athulin is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CD/DVD identification software afacomms Burning Software 0 08-11-2005 05:31
Best (cheap) CD / DVD resurfacing method? superhitachi4 Blank Media 6 02-09-2005 03:28
problem with dvd-rom drive and cd-rom identification. Carlo1973 CD, DVD and Blu-ray Writers 0 03-03-2005 04:48
LG 52x24x52x16x CD-R/CD-RW/CD-ROM/DVD-ROM Combination Drive GCC-4520B Kenshin CD, DVD and Blu-ray Writers 0 24-02-2003 21:07
LTD 165H DVD-ROM and CD-R identification/info justsatorn LiteOn / PLDS / Sony Writer 3 31-10-2002 01:11


All times are GMT +2. The time now is 08:01.
Top