Penguin
Diff: PerfectDVDRips
EditPageHistoryDiffInfoLikePages

Differences between version 27 and previous revision of PerfectDVDRips.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 27 Last edited on Thursday, December 28, 2006 11:29:16 am by BenStaz Revert
Older page: version 26 Last edited on Thursday, December 28, 2006 12:28:19 am by BenStaz Revert
@@ -153,9 +153,9 @@
  
 #First argument supplied is the directory containing the vobs. 
 if [ -d $1 ]; then 
  vob_dir=$1; 
- #S  
+  
  if [ "${vob_dir:0:1}" != "/" ]; then 
  echo "This vob dir is relevant to the PWD" 
  if [ "$vob_dir" == "." ]; then 
  vob_dir=${PWD}/ 
@@ -189,9 +189,8 @@
  echo "Error : You did not supply a valid directory!" 
 fi; 
  
 shift; 
-exit  
 #Set the default arguments (If user does not specify otherwise) 
 max_ar_error=3 
  
  
@@ -426,18 +425,13 @@
  
 pass1_filesize=$(echo "$(cat ${working_dir}${output_name}_2pass.log | awk '$6 ~ "^[0-9]" { total += $6; print $total} END { print total } ') / 1024" | bc) 
 echo "At a constant quantizer value of 2, the output filesize is $pass1_filesize Kb's in size" 
  
-#Is the pass1 filesize smaller than what we desire?  
-  
-if [ $pass1 _filesize -lt $video_size ]; then  
- echo "Oh my God It is Smaller!!!"  
-fi  
-  
-#min_pquant/iquant/bquant (add this later)  
+#Here we can easily change the XviD encoding options.  
+xvidencopts=pass=2:quant _type=h263:min_pquant=1:min_iquant=1:min_bquant=1:nogmc:noqpel:bitrate= -${ video_size}  
  
 #Second Pass: 
-mencoder -dvd-device $vob_dir dvd://${title} -nosound -vf crop=${crop_values},scale=${final_width}:${final_height} -sws 9 -ovc xvid -passlogfile ${working_dir}${output_name}_2pass.log -xvidencopts pass=2:quant_type=h263:nogmc:noqpel:bitrate=- ${video_size} -mc 0 -noskip -o ${working_dir}${output_name}_nosound.avi 
+mencoder -dvd-device $vob_dir dvd://${title} -nosound -vf crop=${crop_values},scale=${final_width}:${final_height} -sws 9 -ovc xvid -passlogfile ${working_dir}${output_name}_2pass.log -xvidencopts $xvidencopts -mc 0 -noskip -o ${working_dir}${output_name}_nosound.avi 
  
 #ITS MUXING TIME!!! 
  
 if [ "$audio_format" == "mp3" ]; then