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/
|
- [Freevo-devel] dvdbackup Robert Gingher
- Re: [Freevo-devel] dvdbackup Dmitry Borisov
- Re: [Freevo-devel] dvdbackup den_RDC
- [Freevo-devel] screen redraw mplayer
- Re: [Freevo-devel] screen redraw mplayer
- [Freevo-devel] Re: screen redraw Dirk Meyer