[Mplayer-cvslog] CVS: main/TOOLS dvd2divxscript.pl,1.2,1.3

Alex Beregszaszi syncmail at mplayerhq.hu
Fri Jun 25 18:09:56 CEST 2004


CVS change done by Alex Beregszaszi

Update of /cvsroot/mplayer/main/TOOLS
In directory mail:/var2/tmp/cvs-serv31395

Modified Files:
	dvd2divxscript.pl 
Log Message:
dvd-device option by Anton Tropashko <atropashko at yahoo.com>

Index: dvd2divxscript.pl
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/dvd2divxscript.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dvd2divxscript.pl	9 Jul 2003 20:10:44 -0000	1.2
+++ dvd2divxscript.pl	25 Jun 2004 16:09:54 -0000	1.3
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 #
-# (c) 2002 by Florian Schilhabel <florian.schilhabel at web.de>
+# (c) 2002-2004 by Florian Schilhabel <florian.schilhabel at web.de>
 #
 #
 # version 0.1  initial release  22/08/2002
@@ -36,7 +36,8 @@
 $lang_default = "de";        # ... the language
 $cdsize_default = 700;       # ... the CD-Rom Size
 $writedev_default = "0,1,0"; # ... the CD Writer Device
-$speed_default = 4;          # and the writer speed
+$speed_default = 4;          # ... the writer speed
+$dvd_device = "/dev/dvd";    # and the DVD Rom Device
 
 # end of default Settings
 
@@ -67,7 +68,8 @@
 			"out=s" => \$output,
 			"writecd" => \$writecd,
 			"writedev=s" => \$writedev,
-			"speed=i" => \$speed );
+			"speed=i" => \$speed,
+			"dvd-device=s" => \$dvd_device );
 
 if ($help) {
 	print "Welcome to the DVD to DIVX Helper Script\n";
@@ -98,6 +100,8 @@
 	print "                    for example 0,1,0\n";
 	print "--speed             the writing speed\n";
 	print "                    Default: 4\n";
+	print "--dvd-device        device to pull the video off\n";
+	print "                    Default: /dev/dvd\n";
 	exit;
 }
 
@@ -201,7 +205,7 @@
 # here comes the fun part...
 
 print "precacheing...\n";
-$status = system ("mencoder dvd://$dvd_track -ovc copy -oac copy -alang $lang -o $vob_tempfile 1>/dev/tty8 2>/dev/tty8");
+$status = system ("mencoder dvd://$dvd_track -ovc copy -oac copy -dvd-device $dvd_device -alang $lang -o $vob_tempfile 1>/dev/tty8 2>/dev/tty8");
 die "Prechacheing failed. mencoder exited with Status Code $?" unless $status == 0;
 
 print "Encoding Audio...\n";




More information about the MPlayer-cvslog mailing list