[MPlayer-users] Re: file size falls short of 700MB for multi pass
Jason Pepas
j.pepas at mail.utexas.edu
Mon Jun 23 16:29:53 CEST 2003
> It will not work :(
> I had same problem and this strange behaviour can be suppressed with
> vqmin=2 and vqmax=9 in -lavcopts.
unfortunately, this did not solve my problem. still winds up being the same
file size (~508MB).
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
More information about the MPlayer-users
mailing list