2009-07-09, 22:34
well two good points indeed !
motd2k Wrote:Trouble is if you rip a DVD it'll be decrypted, and therefore the contents of the files (which dvdinfo relies on) will be changed too. It sounds like a useful function but certainly not worldendingly so!
Anyway I'll look into it, I'm certainly not up for begging someone to release code when it'll be an hour max to do it myself.
reaven Wrote:Is there a way to get the dvd disc title or any other metadata, since this
is not getting anything maybe only works in Xbox.Code:System.DVDLabel
maybe something like this app. can be port in xbmc
more info
more info
more info
#######################################################
# Parameter #
# dvd_device device for dvd-access #
# dvd_dir rip-directory #
# name default name 'change-me.iso #
# #
# Returns name of inserted dvd or 'change-me.iso #
#############3#########################################
def get_disc_name(dvd_device,dvd_dir,default_name):
complet_command = 'volname ' + dvd_device + ' > ' + dvd_dir + '/NAME'
sys.platform.startswith('linux')
status = os.system("%s" % (complet_command))
print 'executed command volname to get dvd-name .....'
# In the case the command volname is not installed ... #
# the function recturns 'change-me.iso #
volume_path = dvd_dir + '/NAME'
stat_info = os.stat(volume_path)
file_of_volume = stat_info[stat.ST_SIZE]
if (file_of_volume != 0):
print 'we found a name of the inserted dvd :'
f = open(volume_path,'r')
name = f.readline()
f.close
# erase NAME
os.remove(volume_path)
print name + '\n'
name = string.strip(string.lower(name))
return name
else:
print 'volume name can not be read .... or command volname not found ....'
return default_name
#######################################################
public static string GetDVDID(string Drive)
{
long id = 0;
int hr;
object comobj = null;
DirectShowLib.Dvd.AMDvdRenderStatus status;
DirectShowLib.Dvd.IDvdGraphBuilder dvdGraph = (DirectShowLib.Dvd.IDvdGraphBuilder)new DirectShowLib.DvdGraphBuilder();
hr = dvdGraph.RenderDvdVideoVolume(null, DirectShowLib.Dvd.AMDvdGraphFlags.None, out status);
DsError.ThrowExceptionForHR(hr);
hr = dvdGraph.GetDvdInterface(typeof(DirectShowLib.Dvd.IDvdInfo2).GUID, out comobj);
DsError.ThrowExceptionForHR(hr);
DirectShowLib.Dvd.IDvdInfo2 dvdInfo = (DirectShowLib.Dvd.IDvdInfo2)comobj;
//comobj = null;
dvdInfo.GetDiscID(Drive + ":\\VIDEO_TS", out id);
const int HEXADECIMAL = 16;
String HexID = Convert.ToString(id, HEXADECIMAL);
return HexID;
}
(2010-08-31, 15:49)doum Wrote: A big up
There is a feature in MediaPortal I like a lot (I have a lot of physical media, DVD and Blu-ray). When inserting a disc, it is scanned, the information media are recovered (resolution, sound) and fanarts etc. are retrieved on the Internet, the DVD is inserted in the library. It appears then a different color to indicate that the media is not inserted.
For everything else I much prefer XBMC, it is unfortunate that one can not handle the physical media as easily.
Does that help manage the disks directly in XBMC?
(2013-01-19, 23:35)ccrocker Wrote:ohh! a good news. I think all developpers of Meedios need to go on XBMC now(2010-08-31, 15:49)doum Wrote: A big up
There is a feature in MediaPortal I like a lot (I have a lot of physical media, DVD and Blu-ray). When inserting a disc, it is scanned, the information media are recovered (resolution, sound) and fanarts etc. are retrieved on the Internet, the DVD is inserted in the library. It appears then a different color to indicate that the media is not inserted.
For everything else I much prefer XBMC, it is unfortunate that one can not handle the physical media as easily.
Does that help manage the disks directly in XBMC?
I realize this is a very old thread, but I'm the Meedios DiscId developer. I'm going to work on porting this over to XBMC. It may take a while as I'm not too familiar with XBMC but I'm going to take a shot. I'm looking forward to digging into XBMC.