Trying to get volume id of dvd. But not sure how?
Hi, I am trying to fix a broken application and I am having trouble with figuring out how to fix it's method of getting the name of the dvd. It used to use hal for this, but I would like to switch it to depending on libdvdnav/libdvdread for it. The best that I can figure out is that I am supposed to use this->vm->dvd_name to get it, but I am not sure exactly on how to implement it in the C++ code. I have also seen some stuff that goes somthing like: info->tt_srpt but I can not find anything that gives me the answer I am looking for. I can get the number of titles and stuff like that but nothing that even remotely comes close to giving me the volume id of the dvd. Is this possible? -- pauline123
On Thu, Apr 3, 2014 at 4:18 PM, pauline martin <321eniluap@gmail.com> wrote:
Hi,
I am trying to fix a broken application and I am having trouble with figuring out how to fix it's method of getting the name of the dvd. It used to use hal for this, but I would like to switch it to depending on libdvdnav/libdvdread for it.
dvdnav_get_title_string() will give you the string encoded on the disc. There are calls in libdvdread that get you this information, I think DVDUDFVolumeInfo().
The best that I can figure out is that I am supposed to use this->vm->dvd_name to get it, but I am not sure exactly on how to implement it in the C++ code.
You might find if you look around the archive for this list that Roger Pack might have already noticed that the dvdnav vm struct is not to be trusted with the title information. Good luck! E -- Erik Hovland erik@hovland.org http://hovland.org/
pauline martin <321eniluap@...> writes:
Hi,
I am trying to fix a broken application and I am having trouble with figuring out how to fix it's method of getting the name of the dvd. It used to use hal for this, but I would like to switch it to depending on libdvdnav/libdvdread for it.
The best that I can figure out is that I am supposed to use this->vm->dvd_name to get it, but I am not sure exactly on how to
implement
it in the C++ code.
I have also seen some stuff that goes somthing like: info->tt_srpt but I can not find anything that gives me the answer I am looking for. I can get the number of titles and stuff like that but nothing that even remotely comes close to giving me the volume id of the dvd. Is this possible?
There's a couple of ways to get unique identifiers from a DVD, but I'm going to assume you mean the title, which is a 32-character string. dvdnav has a function, dvdnav_get_title_string(). http://git.videolan.org/? p=libdvdnav.git;a=blob;f=src/dvdnav.c;h=bd579dc3977908719e28f4788a89afa077ed 5d8e;hb=HEAD#l878 lsdvd just grabs the bytes directly from the volume: https://github.com/thierer/lsdvd/blob/master/lsdvd-0.16/lsdvd.c#L125-L156 'volname' would do the same thing -- used to ship with util-linux, I think. I haven't seen it in a while. Finally, I've got a little C program I wrote on my own that just grabs the title. https://github.com/beandog/dvd_info/blob/master/dvd_title.c hth Steve
There's a couple of ways to get unique identifiers from a DVD, but I'm going to assume you mean the title, which is a 32-character string.
Derp, actually it's 16 characters. I was thinking of provider ID. Here's another old C program that used to ship with libdvdread that does the same thing: https://github.com/hilbix/libdvdread-samples/blob/master/disc_id.c Steve
On 04/11/2014 11:25 PM, Steve Dibb wrote:
There's a couple of ways to get unique identifiers from a DVD, but I'm going to assume you mean the title, which is a 32-character string.
Derp, actually it's 16 characters. I was thinking of provider ID.
Here's another old C program that used to ship with libdvdread that does the same thing: https://github.com/hilbix/libdvdread-samples/blob/master/disc_id.c
Bah, to correct myself *again*, the UDF filesystem allows for 32 characters total, and the ISO one allows for 33. You can get the UDF one from libdvdread using UDFGetVolumeIdentifier in dvd_udf.h You can get the same title from libdvdnav using dvdnav_get_title_string in dvdnav.h. Steve
participants (3)
-
Erik Hovland -
pauline martin -
Steve Dibb