分享一个2pass的参数,看文档说是mp4的bframes不能大于1
mencoder diablo_primal.wmv -o /dev/null \
-ovc x264 -x264encopts pass=1:subq=1:frameref=1:bitrate=350:bframes=1:me=hex:nob_adapt:weight_b:partitions=all:trellis=1:qcomp=0.8:direct_pred=auto:threads=auto \
-vf harddup \
-oac faac -faacopts br=64:mpeg=4:tns:object=2 -channels 2 -srate 22050 \
-af volume=5:0 \
-ofps 24000/1001 \
-ss 00:00:00 -endpos 60
mencoder diablo_primal.wmv -o temp.avi \
-ovc x264 -x264encopts pass=2:subq=6:frameref=3:bitrate=350:bframes=1:me=hex:nob_adapt:weight_b:partitions=all:trellis=1:qcomp=0.8:direct_pred=auto:threads=auto \
-vf harddup \
-oac faac -faacopts br=64:mpeg=4:tns:object=2 -channels 2 -srate 22050 \
-af volume=5:0 \
-ofps 24000/1001 \
-ss 00:00:00 -endpos 60