function compress_vob_file {
typeset -i found_profile=0
+ # XVID profile
if [ "$profile" == "xvid" ]; then
- # DIVX 2 pass encoding
found_profile=1
final_output_file="$dest/$dvdname.avi"
mencoder_general_opts="-quiet $lang_opts -passlogfile $passlogfile"
fi
+ # MP4 encoding profiles
if [ "$profile" == "mp4" ] || [ "$profile" == "mp4hq" ] || [ "$profile" == "mp4vhq" ]; then
-
+ found_profile=1
final_output_file="$dest/$dvdname.mp4"
mencoder_general_opts="-quiet $lang_opts -passlogfile $passlogfile"
mencoder_output_opts="-ofps 30000/1001 -sws 9 -of lavf -lavfopts format=mp4"
video_encoder_opts[6]="b_pyramid"
video_encoder_opts[7]="weight_b"
fi
- # Fast
- if [ "$profile" == "mp4hq" ]; then
+ # Fast (17fps)
+ if [ "$profile" == "mp4" ]; then
video_encoder_opts[0]="bitrate=$target_bitrate"
video_encoder_opts[1]="threads=$mencoder_threads"
video_encoder_opts[2]="subq=4"
fi
+ # iphone and ipod MP4 profiles
if [ "$profile" == "iphone" ] || [ "$profile" == "ipod" ]; then
- # MP4 encoding
found_profile=1
if [ "$profile" == "iphone" ]; then
# SCALE: 480x320