- # MKV profile
- if [[ "$profile" =~ "mkv" ]]; then
- found_profile=1
- handbrake_cli="$handbrake_mp4"
- final_output_file="$dest/$dvdname.mkv"
- PASSES=""
-
- # Handle custom parameter overrides
- if [ $custom_video_bitrate == 1 ]; then
- handbrake_opts[0]="-b $target_video_bitrate"
- fi
- if [ $custom_audio_2ch == 0 ]; then
- audio_2ch=0
- fi
- if [ $custom_audio_6ch == 0 ]; then
- audio_6ch=0
- fi
-
- # Very High Quality
- if [ "$profile" == "mkvvhq" ]; then
- handbrake_opts[0]="-q 0.95"
- fi
- # High Quality
- if [ "$profile" == "mkvhq" ]; then
- handbrake_opts[0]="-q 0.90"
- fi
- # Fast
- if [ "$profile" == "mkv" ]; then
- handbrake_opts[0]="-q 0.85"
- fi
-
- # Common options to all profiles above
- handbrake_opts[1]="--strict-anamorphic"
- handbrake_opts[2]="--crop 0:0:0:0"
-
- fi
-