fi
echo "$aspect" | grep -q ":"
if [ $? != 0 ]; then
- SCALE=",scale -zoom -xy $aspect"
+ SCALE=",scale -zoom -sws 9 -xy $aspect"
else
SCALE=",scale=$aspect"
fi
# MP4 encoding
found_profile=1
if [ "$profile" == "iphone" ]; then
- SCALE=",scale=480:320"
+ # SCALE: 480x320
+ # scale width to 480, set height appropriately, but keep a multiple of 16
+ #SCALE=",scale=480:-10"
+ # scale the video down however far is necessary to fit in 480x320
+ SCALE=",dsize=480:320:0,scale=-8:-8"
else
- SCALE=",scale=320:240"
+ # SCALE: 320x240
+ # scale width to 320, set height appropriately, but keep a multiple of 16
+ #SCALE=",scale=320:-10"
+ # scale the video down however far is necessary to fit in 320x240
+ SCALE=",dsize=320:240:0,scale=-8:-8"
fi
final_output_file="$dest/$dvdname.mp4"
mencoder_general_opts="-quiet $lang_opts -passlogfile $passlogfile"
video_encoder_opts[8]="trellis=1"
video_encoder_opts[9]="level_idc=30"
video_encoder_opts[10]="global_header"
+ video_encoder_opts[11]="bframes=0"
+ video_encoder_opts[12]="partitions=all"
for OPTS in "${video_encoder_opts[@]}"; do
mencoder_video_encoder_opts="$mencoder_video_encoder_opts:$OPTS"
done