[Mplayer-cvslog] CVS: main/TOOLS menc2pass,1.3,1.4

Atmosfear atmos4 at mplayerhq.hu
Mon Feb 3 14:04:45 CET 2003


Update of /cvsroot/mplayer/main/TOOLS
In directory mail:/var/tmp.root/cvs-serv17639/TOOLS

Modified Files:
	menc2pass 
Log Message:
update to use lavc, xvid, divx4


Index: menc2pass
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/menc2pass,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- menc2pass	29 Jan 2003 16:48:36 -0000	1.3
+++ menc2pass	3 Feb 2003 13:04:24 -0000	1.4
@@ -9,11 +9,22 @@
 die <<"EOF" unless @ARGV;
 Menc2Pass: No arguments given!
 Please give all usual encoding parameters you would give to mencoder, but leave
-away the -pass switch.
+away the pass=<n> suboption.
 EOF
 
 for(my $i=1; $i<=2; $i++) {
-	system($mencoder, at ARGV," -pass $i")
-		and die "MEncoder pass $i failed!\n"
+  my $parm="";
+  foreach my $val (@ARGV) {
+    if($val =~ /-lavcopts/) {
+      $parm.="$val vpass=$i:";
+    } elsif($val =~ /-(divx4)|(xvid)opts/) {
+      $parm.="$val pass=$i:";
+    } else {
+      $parm.="$val ";
+    }
+  }
+  print "Running $mencoder $parm\n";
+  system($mencoder,$parm)
+  	and die "MEncoder pass $i failed!\n"
 }
 



More information about the MPlayer-cvslog mailing list