diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-03 13:04:24 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-03 13:04:24 +0000 |
commit | 8a3ed7643312207df3ac9c4db39114a93599ff01 (patch) | |
tree | 4c6f1fdfac5838a86f6ea399cfa2398cc2c99530 /TOOLS | |
parent | 06d22fab96dae0f6ec062058c33ef3b76a7dcd04 (diff) | |
download | mpv-8a3ed7643312207df3ac9c4db39114a93599ff01.tar.bz2 mpv-8a3ed7643312207df3ac9c4db39114a93599ff01.tar.xz |
update to use lavc, xvid, divx4
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9252 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/menc2pass | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/TOOLS/menc2pass b/TOOLS/menc2pass index d6b4bd138f..c52533fef3 100755 --- a/TOOLS/menc2pass +++ b/TOOLS/menc2pass @@ -9,11 +9,22 @@ my $mencoder="mencoder"; # Path to MEncoder (including binary name) 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" } |