# Author: Alan J. Pippin (apippin@pippins.net)
# Date: 05/17/2009
#
- REV=2.0
+ REV=2.2
#
# Description: This script wraps a number of linux utilities to
# create a recipe for ripping protected DVDs, circumventing
typeset filetype=""
typeset handbrake_audio_opts=""
typeset hb_profile=""
+ typeset SIZE=""
# Set a variable that we will use later to determine if we found a handler for $profile or not
typeset -i found_profile=0
# Set our DRC option
DRC="-D $drc"
+ if [ $target_size -ne 0 ]; then
+ SIZE="-S $target_size"
+ fi
+
# Check the global force_onepass_mode. If it is set, change our variables appropriately
# to force 1-pass encoding across all profiles.
if [ $force_onepass_mode -eq 1 ]; then
handbrake_cmd_line_opts="$handbrake_cmd_line_opts $PASSES"
handbrake_cmd_line_opts="$handbrake_cmd_line_opts $DRC"
handbrake_cmd_line_opts="$handbrake_cmd_line_opts $SCALE"
+ handbrake_cmd_line_opts="$handbrake_cmd_line_opts $SIZE"
# Execute the handbrake command to encode the video
if [ -n "$hb_profile" ]; then