[MPlayer-users] Re: file size falls short of 700MB for multi pass

Jonathan Rogers jonner at teegra.net
Mon Jun 23 16:39:52 CEST 2003


Jason Pepas wrote:
> just for the record, these are the scripts I am using:
> 
> audio.sh:
> ----------------------------------------
> #!/bin/bash
> 
> set -e
> 
> if test $# -ne 2
> then
>         echo "usage: ./audio.sh <filename> <ofps>"
>         exit 1
> fi
> 
> ofps=$2
> 
> rm -f frameno.avi
> mencoder \
>         -oac copy \
>         -ovc frameno \
>         -ofps ${ofps} \
>         -o frameno.avi ${1}
> 
> 
> video.sh:
> ----------------------------------------
> #!/bin/bash
> 
> set -e
> 
> if test $# -ne 3
> then
>         echo "usage: ./video.sh <filename> <ofps> <vbitrate>"
>         exit 1
> fi
> 
> filename=$1;
> ofps=$2;
> vbitrate=$3;
> 
> mencoder \
>         -oac copy \
>         -ovc lavc \
>         -lavcopts 
> vcodec=mpeg4:vhq:vbitrate=${vbitrate}:vpass=1:v4mv:vqmin=2:vqmax=9 \
>         -vop scale=640x480 \
>         -ofps ${ofps} \
>         -o ${filename}-1.avi ${filename}
> 
> mencoder \
>         -oac copy \
>         -ovc lavc \
>         -lavcopts 
> vcodec=mpeg4:vhq:vbitrate=${vbitrate}:vpass=2:v4mv:vqmin=2:vqmax=9 \
>         -vop scale=640x480 \
>         -ofps ${ofps} \
>         -o ${filename}.avi ${filename}
> 
> rm -f divx2pass.log
> rm -f ${filename}-1.avi
> 
> 
> and here are the command lines:
> ./audio.sh /usr/local/video/alias/alias.1x02.SVCD.SD-6.mpg 23.976
> ./video.sh /usr/local/video/alias/alias.1x02.SVCD.SD-6.mpg 23.976 1978

I'm surprised that "-vop scale=640x480" works. According to the manpage, 
you should use "-vop scale=640:480". Is the output video the correct size?

Jonathan Rogers



More information about the MPlayer-users mailing list