INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
Unique Id for DVDs and Apple DVP Player hash

Forum Index -> Video -> Programming Printer-friendly version
Reply to topic
Author Message
fortyfoxes
Member


Joined: 15 Aug 2007
Location: United Kingdom

Post Posted: Aug 15, 2007 09:36 Posts Comp View users profile Send private message Reply with quote

I am creating a cross platform application for DVDs and I need to be abe to uniquely identify a DVD inserted into the drive. there seems to be no easily accessible ID in the DVD spec - is that right?

My preferred route would be to use the same technique as used by the Apple DVD player - it calculates some sort of hash and uses this to store metadata in a settings file. The filename of this settings file is based on this has and looks something like this example:

95b83c96e7415c34.plist

On OSX there are low level services that will calculate this ID - but I need to do this on other platforms - does anyone know how this hash is calculated - or if not what strategies should I try for working out my own unique ID?


ChrissyBoy
SVCD2DVD Mod


Joined: 10 Feb 2003
Location: Yorkshire!

Post Posted: Aug 15, 2007 10:24 Posts Comp View users profile Send private message Reply with quote

I would assume that the IFOs are unique per DVD. Therefore i would read the *.IFO files into memory and do a md5/crc on the bytes. The files are very small so it would be nearly instantaneous.
_________________
SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.


Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Programming Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics