X-Git-Url: http://git.pippins.net/embedvideo/.git/.%24link.?a=blobdiff_plain;f=rip_dvd;h=ed395b2e409c17d44393bbdd0e25d479519fc4a1;hb=716bd9c4457107464e59d8340289c9e31fdc62ed;hp=0295e62d98071517f7557a2f57f9c301bff121d8;hpb=0dd2093c203da3a877be5ef0238062a7869dd47a;p=rip_dvd%2F.git diff --git a/rip_dvd b/rip_dvd index 0295e62..ed395b2 100755 --- a/rip_dvd +++ b/rip_dvd @@ -116,9 +116,9 @@ function usage() { echo >&2 " - xvidvhq = AVI, very high quality encoding, Xvid codec, 2 pass encoding (default)" echo >&2 " - xvidhq = AVI, high quality encoding, Xvid codec, 2 pass encoding" echo >&2 " - xvid = AVI, fast encoding, Xvid codec, 2 pass encoding" - echo >&2 " - mp4vhq = MP4, very high quality encoding, x264 codec, 2 pass encoding" - echo >&2 " - mp4hq = MP4, high quality encoding, x264 codec, 2 pass encoding" - echo >&2 " - mp4 = MP4, fast encoding, x264 codec, 2 pass encoding" + #echo >&2 " - mp4vhq = MP4, very high quality encoding, x264 codec, 2 pass encoding" + #echo >&2 " - mp4hq = MP4, high quality encoding, x264 codec, 2 pass encoding" + #echo >&2 " - mp4 = MP4, fast encoding, x264 codec, 2 pass encoding" echo >&2 " - iphone = MP4, x264 codec, 2 pass encoding, forced 480:320 scaling" echo >&2 " - ipod = MP4, x264 codec, 2 pass encoding, forced 320:240 scaling" echo >&2 " -e Specify a suffix extension to apply to the end of the final image filename (like .xvid, .ipod, etc)" @@ -395,7 +395,7 @@ function encode_vob_file { if [ "$profile" == "xvid" ] || [ "$profile" == "xvidhq" ] || [ "$profile" == "xvidvhq" ]; then found_profile=1 final_output_file="$dest/$dvdname.avi" - mencoder_general_opts="-quiet $lang_opts $passlogfile_opt" + mencoder_general_opts="$lang_opts $passlogfile_opt" mencoder_output_opts="-ofps 30000/1001 -ffourcc DIVX" mencoder_video_filter_opts="-vf pullup,softskip,hqdn3d=2:1:2$CROP$SCALE" mencoder_video_encoder_opts="-ovc xvid -xvidencopts $pass_opt" @@ -449,10 +449,11 @@ function encode_vob_file { fi # MP4 encoding profiles + # These are currently in BETA. They don't work that great. A new recipe is needed, for the audio. if [ "$profile" == "mp4" ] || [ "$profile" == "mp4hq" ] || [ "$profile" == "mp4vhq" ]; then found_profile=1 final_output_file="$dest/$dvdname.mp4" - mencoder_general_opts="-quiet $lang_opts $passlogfile_opt" + mencoder_general_opts="$lang_opts $passlogfile_opt" mencoder_output_opts="-ofps 30000/1001 -sws 9 -of lavf -lavfopts format=mp4" mencoder_video_filter_opts="-vf harddup$CROP$SCALE"; mencoder_video_encoder_opts="-ovc x264 -x264encopts $pass_opt" @@ -531,7 +532,7 @@ function encode_vob_file { SCALE=",dsize=320:240:0,scale=-8:-8" fi final_output_file="$dest/$dvdname.mp4" - mencoder_general_opts="-quiet $lang_opts $passlogfile_opt" + mencoder_general_opts="$lang_opts $passlogfile_opt" mencoder_output_opts="-ofps 30000/1001 -sws 9 -of lavf -lavfopts format=mp4" mencoder_video_filter_opts="-vf harddup$CROP$SCALE"; mencoder_video_encoder_opts="-ovc x264 -x264encopts $pass_opt" @@ -592,7 +593,7 @@ function encode_vob_file { fi # Concatenate the encode log to our main log file, greping out unwanted lines - cat $encodelog | grep -v "Pos:" >> "$logfile" + cat $encodelog | grep -v "^Pos:" | grep -v "duplicate" >> "$logfile" done } @@ -1115,9 +1116,7 @@ function remove_intermediate_dvdbackup_folder { # Make a note of when this DVD rip started date=`date` echo -e "\n$date DVD rip started" >> "$logfile" -echo "cmd: $cmd" >> "$logfile" - -exit +echo "$cmd" >> "$logfile" # Rip the DVD - Mirror Mode if [ $mirror_mode -eq 1 ]; then