[MEncoder-users] Different output when Mencoder runned by PHP script and from a command line
Al
applepro7777 at gmail.com
Sun Mar 16 21:39:54 CET 2008
Robert Nichols <rnicholsNOSPAM <at> comcast.net> writes:
> Just guessing here, but ...
> Are you certain that the divx2pass.log statistics file is not being lost
> or overwritten between the two passes? Perhaps you need to use the
> -passlogfile option to put that file in a safe place and with a unique
> name.
Thanks for the answer.
I don't think it's possible, because I run nothing between these two passes.
Original PHP code is:
$first = "/usr/local/bin/mencoder -really-quiet -fps ".$frameRate."/1001 -vf
scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts
vcodec=flv:vbitrate=250:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3:vpass=1
-ofps ".$frameRate."/1001 -oac mp3lame -lameopts abr:br=64:mode=0 -channels 1
-srate 22050 -of lavf -lavfopts format=flv -o ".$outputFile."
/home/re/ff/logo".$frameRate.".avi ".$inputFile;
$second = "/usr/local/bin/mencoder -really-quiet -fps ".$frameRate."/1001 -vf
scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts
vcodec=flv:vbitrate=250:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3:vpass=2
-ofps ".$frameRate."/1001 -oac mp3lame -lameopts abr:br=64:mode=0 -channels 1
-srate 22050 -of lavf -lavfopts format=flv -o ".$outputFile."
/home/re/ff/logo".$frameRate.".avi ".$inputFile;
print system("cd /usr/local/bin/");
print system($first);
print system($second);
More information about the MEncoder-users
mailing list