mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00: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:
parent
06d22fab96
commit
8a3ed76433
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user