3024
|
1 #!/usr/bin/perl -w
|
|
2 # Helper script to ease MEncoder two pass encoding
|
|
3 # Copyleft 2001 by Felix Buenemann <atmosfear@users.sourceforge.net>
|
|
4 # This files comes udner GPL, see http://www.gnu.org/copyleft/gpl.html for more
|
|
5 # information on it's licensing.
|
|
6 use strict;
|
|
7 my $mencoder="mencoder"; # Path to MEncoder (including binary name)
|
|
8
|
|
9 die <<"EOF" unless @ARGV;
|
|
10 Menc2Pass: No arguments given!
|
|
11 Please give all usual encoding parameters you would give to mencoder, but leave
|
|
12 away the -pass switch.
|
|
13 EOF
|
|
14
|
|
15 for(my $i=1; $i<=2; $i++) {
|
|
16 system($mencoder,@ARGV," -pass $i")
|
|
17 and die "MEncoder pass $i failed!\n"
|
|
18 }
|
|
19
|