Mercurial > mplayer.hg
comparison TOOLS/menc2pass @ 3024:7a5021d0a2de
Small two pass mencoder helper script in perl.
author | atmos4 |
---|---|
date | Tue, 20 Nov 2001 13:02:56 +0000 |
parents | |
children | ee0c2391e45d |
comparison
equal
deleted
inserted
replaced
3023:7d6a1fd5bbab | 3024:7a5021d0a2de |
---|---|
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 |