[MEncoder-users] Different output when Mencoder runned by PHP script and from a command line

Robert Nichols rnicholsNOSPAM at comcast.net
Sun Mar 16 17:19:07 CET 2008


Al wrote:
> Hello,
> 
> I run absolutely same command from PHP script and then command line. I get
> different output:
> 
> http://www.roamearth.com/temp/with-php-script.flv    ---- lower quality, buggy
> playing in VLC, 795 Kb
> 
> http://www.roamearth.com/temp/with-command-line.flv    ---- higher quality, ok
> playing in VLC, 1600 Kb
> 
> 
> The commands are (2 passes):
> 
> /usr/local/bin/mencoder -really-quiet -fps 30000/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 30000/1001 -oac mp3lame -lameopts abr:br=64:mode=0 -channels 1 -srate
> 22050 -of lavf -lavfopts format=flv -o /home/re/video/2/temp.flv
> /home/re/ff/logo30000.avi /home/re/video/2/34temp
> 
> /usr/local/bin/mencoder -really-quiet -fps 30000/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 30000/1001 -oac mp3lame -lameopts abr:br=64:mode=0 -channels 1 -srate
> 22050 -of lavf -lavfopts format=flv -o /home/re/video/2/temp.flv
> /home/re/ff/logo30000.avi /home/re/video/2/34temp
> 
> 
> I wonder why does it happen? How can I fix it?

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.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.




More information about the MEncoder-users mailing list