- video_encoder_opts[0]="bitrate=$target_bitrate"
- video_encoder_opts[1]="threads=$mencoder_threads"
- video_encoder_opts[2]="chroma_opt"
- video_encoder_opts[3]="vhq=4"
- video_encoder_opts[4]="bvhq=1"
- video_encoder_opts[5]="quant_type=mpeg"
- video_encoder_opts[6]="autoaspect"
+
+ # Very High Quality (16fps)
+ if [ "$profile" == "xvidvhq" ]; then
+ video_encoder_opts[0]="bitrate=$target_bitrate"
+ video_encoder_opts[1]="threads=$mencoder_threads"
+ video_encoder_opts[2]="chroma_opt"
+ video_encoder_opts[3]="vhq=4"
+ video_encoder_opts[4]="bvhq=1"
+ video_encoder_opts[5]="quant_type=mpeg"
+ video_encoder_opts[6]="autoaspect"
+ fi
+ # High Quality (20fps)
+ if [ "$profile" == "xvidhq" ]; then
+ video_encoder_opts[0]="bitrate=$target_bitrate"
+ video_encoder_opts[1]="threads=$mencoder_threads"
+ video_encoder_opts[2]="chroma_opt"
+ video_encoder_opts[3]="vhq=2"
+ video_encoder_opts[4]="bvhq=1"
+ video_encoder_opts[5]="quant_type=mpeg"
+ video_encoder_opts[6]="autoaspect"
+ fi
+ # Fast (28fps)
+ if [ "$profile" == "xvid" ]; then
+ video_encoder_opts[0]="bitrate=$target_bitrate"
+ video_encoder_opts[1]="threads=$mencoder_threads"
+ video_encoder_opts[2]="vhq=0"
+ video_encoder_opts[3]="turbo"
+ video_encoder_opts[4]="autoaspect"
+ fi
+