0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

update to use lavc, xvid, divx4

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9252 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2003-02-03 13:04:24 +00:00
parent 06d22fab96
commit 8a3ed76433

View File

@ -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"
}