You may take a look at the PyMedia, http://pymedia.org/
It has all the stuff you need. Here is the simple code that helps you:
 
#-----------------------
import pymedia.removable.cd as cd
cd.init()
# Assume you have 1 DVD-ROM in your setup
c= cd.CD(0)
props= c.getProperties()
if props[ 'type' ]!= 'DVD':
  print 'Media in %s has type %s, not DVD. Cannot read DVD data.' % ( c.getName(), props[ 'type' ] )
  return 0
# Assume your main track is 0
tr0= c.open( props[ 'titles' ][ 0 ][ 'name' ] )
f= open( 'output.vob', 'wb' )
s= tr0.read( 1000000 )
while len( s ):
  f.write( s )
  s= tr0.read( 1000000 )
f.close()
#-----------------------
 
Hope this helps.
Dmitry/
  
----- Original Message -----
Sent: Thursday, October 28, 2004 6:15 PM
Subject: [Freevo-devel] dvdbackup

Hi every devel,

I'm working on a slimmed-down version of dvdcopy (75% deleted, 25% remains).  Very simply, I'd like to present a user with the ability to backup the main track of a dvd to hard drive.  It works using vobcopy, but there are some threading issues, coupled with my lack of python understanding, that I need help with.  Would someone like to look over the modified code?  Please email me: robsbox <at> optonline <dot> net.  Thank you.

Reply via email to