Fixed bug with new SCALE variable setting for mencoder
authorAlan J. Pippin <ajp@pippins.net>
Wed, 20 May 2009 21:34:47 +0000 (15:34 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Wed, 20 May 2009 21:34:47 +0000 (15:34 -0600)
rip_dvd

diff --git a/rip_dvd b/rip_dvd
index a63ca4d7b15a7477ddbacaf52a3b48641eea4a0f..9a6d47110ddd90d66c24633d998114f3f3f8d6bc 100755 (executable)
--- a/rip_dvd
+++ b/rip_dvd
@@ -165,9 +165,9 @@ if [ "$aspect" != "" ]; then
   fi
   echo "$aspect" | grep -q ":"
   if [ $? != 0 ]; then
-    SCALE="scale -zoom -xy $aspect"
+    SCALE=",scale -zoom -xy $aspect"
   else
-    SCALE="scale=$aspect"
+    SCALE=",scale=$aspect"
   fi
 fi
 
@@ -920,7 +920,7 @@ if [ $mirror_mode -eq 0 ]; then
       # Edit these as needed to suite your needs
       mencoder_general_opts="-quiet $lang_opts -passlogfile $passlogfile"
       mencoder_output_opts="-ofps 30000/1001 -ffourcc DIVX"
-      mencoder_video_filter_opts="-vf pullup,softskip,hqdn3d=2:1:2$CROP,$SCALE"
+      mencoder_video_filter_opts="-vf pullup,softskip,hqdn3d=2:1:2$CROP$SCALE"
       mencoder_video_encoder_opts="-ovc xvid -xvidencopts pass=%PASS:chroma_opt:vhq=4:bvhq=1:quant_type=mpeg:bitrate=$target_bitrate:autoaspect:threads=$mencoder_threads"
 
       # There are a number of different ways to encode 6 channel audio.