Mercurial > mplayer.hg
changeset 9251:9733351ea3e5
update to use lavc, xvid, divx4
author | atmos4 |
---|---|
date | Mon, 03 Feb 2003 13:04:24 +0000 |
parents | bb490ffeebf5 |
children | b1533eba7231 |
files | TOOLS/menc2pass |
diffstat | 1 files changed, 14 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/TOOLS/menc2pass Mon Feb 03 10:27:50 2003 +0000 +++ b/TOOLS/menc2pass Mon Feb 03 13:04:24 2003 +0000 @@ -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,@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" }