X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=rip_dvd;h=754cda7c6d16746f3b8161ab17a32563d8bc9059;hb=e2d5d785cc746bb0b093cbcb91a7870265cba022;hp=c0de21f53d55e811377582495099e5a7e0466e77;hpb=c041ccc3808563b9a1d53fcf0edecb19b7dd1aae;p=rip_dvd%2F.git diff --git a/rip_dvd b/rip_dvd index c0de21f..754cda7 100755 --- a/rip_dvd +++ b/rip_dvd @@ -25,20 +25,8 @@ # lookup imdb info/posters for mythvideo: http://www.mythtv.org/wiki/Fill_mythvideo_metadata.pl # -############################################################################## -# Local Machine Settings: -# Sources both the "default" conf file tracked by GIT (rip_dvd.conf.dist) -# and the local conf file created by each local machine (rip_dvd.conf) -# Copy the rip_dvd.conf.dist file to rip_dvd.conf and edit the later. -# This will allow you to override all the default values to meet your needs -# in a way that won't get clobbered when you pull updates from my GIT repo. -############################################################################## -config="${0%/*}/rip_dvd.conf" -[ -e "${config}.dist" ] && . ${config}.dist -[ -e "${config}" ] && . ${config} - ############################################################################################## -# Command line processing +# Global Variables ############################################################################################## typeset cmd="$0 $*" typeset dvdname="" @@ -72,6 +60,21 @@ typeset -i invalid_feature_title=0 typeset -i feature_title_override=0 typeset -i mplayer_dumpstream_incompatibility=0 +############################################################################## +# Local Machine Settings: +# Sources both the "default" conf file tracked by GIT (rip_dvd.conf.dist) +# and the local conf file created by each local machine (rip_dvd.conf) +# Copy the rip_dvd.conf.dist file to rip_dvd.conf and edit the later. +# This will allow you to override all the default values to meet your needs +# in a way that won't get clobbered when you pull updates from my GIT repo. +############################################################################## +config="${0%/*}/rip_dvd.conf" +[ -e "${config}.dist" ] && . ${config}.dist +[ -e "${config}" ] && . ${config} + +############################################################################################## +# Command line processing +############################################################################################## while (($#)) && getopts 12mvifkxht:n:d:b:s:t:a:p:e:j: opt "$@" do case $opt in @@ -449,6 +452,7 @@ function encode_vob_file { fi # MP4 encoding profiles + # These are currently in BETA. They don't work that great. A new recipe is needed, for the audio. if [ "$profile" == "mp4" ] || [ "$profile" == "mp4hq" ] || [ "$profile" == "mp4vhq" ]; then found_profile=1 final_output_file="$dest/$dvdname.mp4"