Donations
Goal: | $120.00 | ||
Received: | $0.00 | ![]() | |
Goal Met: | No |
[All Donations]
DVDs
Forums
DVDxml.com :: Forums :: Forums :: Troubleshooting |
|
<< Previous thread | Next thread >> |
Generating DVDID programmatically |
Go to page [1] 2 | |
Moderators: Tim, Ghostwheel
|
Author | Post | ||
the_dude |
| ||
![]() Registered Member #7854 Joined: Wed Mar 26 2008, 09:16AMPosts: 2 | Hello- I have the need to generate a DVDID programmatically. I have used several tools (My DVD Settings included), but I need to be able to auto-generate that hash. Does anyone know of a command-line application or a code snippet? | ||
Back to top | | ||
Carlton Bale |
| ||
![]() Registered Member #6955 Joined: Thu Feb 21 2008, 10:15AMPosts: 1 | I'm trying to find out that info myself. It *MIGHT* be just a CRC64 hash of the DVD Serial number. I think this is how the My DVD Settings program generated the DVDID.XML file from the DVD Profiler data. I don't think it actually looks at files on the DVD. | ||
Back to top | | ||
Channing |
| ||
![]() Registered Member #8642 Joined: Sun May 04 2008, 08:10AMPosts: 1 | The key to doing it is the Windows API call "IDvdInfo2::GetDiscID". You can search MSDN for more info. Here is a sample app I wrote that does it from the command-line: (UPDATE: Don't know why anything that starts a "less-than" symbol is getting a semi-colon added after it. Just remove the semi-colon right after the less-than symbol from the sample code)
[ Edited Wed Aug 13 2008, 08:39PM ] | ||
Back to top | | ||
Gimpnuts |
| ||
![]() ![]() Registered Member #4366 Joined: Tue Sep 18 2007, 06:09PMPosts: 45 | Here is a command line tool that I wrote that does what you ask. The proper syntax is: DVDinfoGen [drive letter] [/fullinfo] The drive letter is optional, as the program will find all DVD drives installed on your system and use the first drive that has a disc in it if you omit it. If you have multiple DVD drives, I suggest you supply the drive letter regardless. The fullinfo switch will grab the DVD ID, download the dvd info from the web, clean the name up (removing things like "[Special Edition][2 Discs]", download the cover art (cover art is stored in c:\programdata\dvdcovers) and modifies the dvdinfo data to point to the locally stored cover art so that it doesn't download from the web anymore. The program will then display the dvdid xml data to the console. If you want to write this data directly to a file, pipe the output to a file. See the example below. DVDinfoGen e: /fullinfo > c:\dvd\Bridge_to_Terabithia.dvdid.xml You must extract both files and they must be located in the same directory together. This program requires the .NET Framework 2.0 runtime installed to work correctly. Lastly, if AnyDVD is installed, it will self-register with AnyDVD to patch itself into the list of approved programs that AnyDVD will pass the CRC64 to unmodified. If AnyDVD is installed, it will only do this once, and then notify you that it did so and tell you to run the program again to generate the correct DVDid. I wrote this tool as a means to help cache my collection of nearly 400 movies stored on a 3.5TB Media Server (even running on Gigabit, it took forever to download the covers and info each time) - I used this program in conjunction with another that I wrote that sweeps through all of the dvd items cached in Media Center to cut the time necessary to display the dvd library down to roughly 20 seconds (from 2 minutes). You can download the file at: http://uploaded.to/?id=8mztft I hope you find this useful Enjoy! [ Edited Sun Sep 07 2008, 12:49AM ] | ||
Back to top | | ||
Gimpnuts |
| ||
![]() ![]() Registered Member #4366 Joined: Tue Sep 18 2007, 06:09PMPosts: 45 | Has anyone tried this program yet? Did you find it useful? | ||
Back to top | | ||
Alezis |
| ||
![]() Registered Member #11185 Joined: Sun Sep 14 2008, 01:04AMPosts: 3 | Gimpnuts wrote ... Has anyone tried this program yet? Did you find it useful? That seems to work with an actual dvd in the drive by what I understand... this wouln'd work with dvd on hard drive then... | ||
Back to top | | ||
Gimpnuts |
| ||
![]() ![]() Registered Member #4366 Joined: Tue Sep 18 2007, 06:09PMPosts: 45 | No. Although I could modify this program to generate a dvdid from hard drive, it is unreliable and subject to changes to the dvd structure caused from any outside interference with the standard dvd structure and processes (shrinking the dvd, AnyDVD, DVD43, removing any part of the dvd, etc). Using a CRC checksum provides a means of identifying a legitimate, unmodified original disc, and these processes and programs fundamentally change that checksum. We need to remember that the DVDID is actually a CRC of multiple files on the discs structure, and changing a single bit or byte will result in a drastically different DVDID being generated. It is because of this that of the few programs capable of generating a DVDID, virtually none allow this to be done from the hard drive. There is no reliable method of doing this, and this is why the dvdid.xml files are recognized in the first place, they provide a means of overriding what previously would have been a completely useless checksum. Think of it as both identification and verification. As far as the caching portion of the program is concerned, this program represents a first-party methodology when the dvd is first ripped. I will be releasing another program here shortly that will gather up all the dvdid information from media center, and cache it after-the-fact. If you are interested in that (it's a huge time saver for large libraries like many of us here have), then keep watch on these forums as I will release it here first. | ||
Back to top | | ||
John S |
| ||
![]() Registered Member #11393 Joined: Sat Sep 27 2008, 10:36AMPosts: 1 | Gimpnuts wrote ... Has anyone tried this program yet? Did you find it useful? It generates the dvdid.xml file perfectly. Thanks! But I tried it with the /fullinfo switch and it doesn't seem to be writing the other files. I can see it accessing the Internet and dowloading the xml and folder.jpg....but can't seem to find where they are written. I created a c:/programdata/dvdcovers folder, but nothing is getting written there. Thanks again. Getting the dvdid is the hardest part. Would be cool if I could also cache the metadata as well. | ||
Back to top | | ||
T-F |
| ||
![]() Registered Member #12925 Joined: Fri Dec 19 2008, 12:07AMPosts: 3 | I just tested it and it works! I am just starting to migrate my DVD media to VMC and I want to try using just DVDinfoGen and the built in VMC capabilities to get basic DVD cover & meta data. I'll let you know who it goes. Thanks again for sharing! | ||
Back to top | | ||
jgriffin |
| ||
![]() Registered Member #2112 Joined: Sun Apr 08 2007, 12:46AMPosts: 5 | Hey Gimpnuts. Great program! Works really well. You mentioned that you had an app that swept through the exisiting library to pre-cache the information the way this app does. Any chance of making that available? Thanks | ||
Back to top | | ||
Go to page [1] 2 | |
Powered by e107 Forum System
Search Downloads
Login
Most ever online: 69
(Members: 0, Guests: 69)
on Aug 02 : 12:45
Social Networks
Chat Box
You must be logged in to post comments on this site - please either log in or if you are not registered click here to signup
View all posts (871)