Fixed errors in mp4 profiles
authorAlan J. Pippin <ajp@pippins.net>
Thu, 21 May 2009 19:51:35 +0000 (13:51 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Thu, 21 May 2009 19:51:35 +0000 (13:51 -0600)
rip_dvd

diff --git a/rip_dvd b/rip_dvd
index 39d35b52a032b8f32e78eea043253be3e0f6f180..b83e060122f2fdc50bf7e6a187a1c4eadc3a1e47 100755 (executable)
--- a/rip_dvd
+++ b/rip_dvd
@@ -813,8 +813,8 @@ function check_for_mplayer_dumpstream_incompatibility {
 function compress_vob_file {
   typeset -i found_profile=0
    
+  # XVID profile
   if [ "$profile" == "xvid" ]; then
-    # DIVX 2 pass encoding
     found_profile=1
     final_output_file="$dest/$dvdname.avi"
     mencoder_general_opts="-quiet $lang_opts -passlogfile $passlogfile"
@@ -847,8 +847,9 @@ function compress_vob_file {
  
   fi
 
+  # MP4 encoding profiles
   if [ "$profile" == "mp4" ] || [ "$profile" == "mp4hq" ] || [ "$profile" == "mp4vhq" ]; then
-
+    found_profile=1
     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"
@@ -912,8 +913,8 @@ function compress_vob_file {
 
   fi
 
+  # iphone and ipod MP4 profiles
   if [ "$profile" == "iphone" ] || [ "$profile" == "ipod" ]; then
-    # MP4 encoding 
     found_profile=1
     if [ "$profile" == "iphone" ]; then
       # SCALE: 480x320