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 <profile> 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 <ext> 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"
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"