From: Alan J. Pippin Date: Thu, 21 May 2009 16:58:27 +0000 (-0600) Subject: Added new iphone profile. Fixed scaling for iphone and ipod scaling factors. X-Git-Tag: 1_0~20 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%7Bview%7D?a=commitdiff_plain;h=1085ecfe2aa8890d78108a9de420d4d424daef9a;p=rip_dvd%2F.git Added new iphone profile. Fixed scaling for iphone and ipod scaling factors. --- diff --git a/rip_dvd b/rip_dvd index 44d7000..905afdc 100755 --- a/rip_dvd +++ b/rip_dvd @@ -109,7 +109,8 @@ function usage() { echo >&2 " 5) If dvdname is a full path to an ISO file, it will be ripped as a DVD instead of $dev" echo >&2 " -p Specify which encoding profile to use in -x mode as shown below:" echo >&2 " - hdtv = AVI, Xvid codec, 2 pass encoding (default)" - echo >&2 " - ipod = MP4, x264 codec, 2 pass encoding, 576:320 scaling" + echo >&2 " - iphone = MP4, x264 codec, 2 pass encoding, 480:320 scaling" + echo >&2 " - ipod = MP4, x264 codec, 2 pass encoding, 320:240 scaling" echo >&2 " -e Specify a suffix extension to apply to the end of the final image filename (like .hdtv, .ipod, etc)" echo >&2 " If you run multiple instances of this script ripping the same DVD, you need to specify this option." echo >&2 " -m Make a mirror image of the DVD and save it as a DVD ISO file" @@ -843,10 +844,14 @@ function compress_vob_file { fi - if [ "$profile" == "ipod" ]; then + if [ "$profile" == "iphone" ] || [ "$profile" == "ipod" ]; then # MP4 encoding found_profile=1 - SCALE=",scale=576:320" + if [ "$profile" == "iphone" ]; then + SCALE=",scale=480:320" + else + SCALE=",scale=320:240" + fi 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"