From b8429d3d994ba8241ee7fc2ed28456cebb876055 Mon Sep 17 00:00:00 2001 From: agibert Date: Tue, 20 Oct 2009 07:08:49 +0000 Subject: [PATCH] - Fix broken audio compress only mode (audio=ap & video=n). --- dvd2divx | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/dvd2divx b/dvd2divx index 9e4b4c5..e003af2 100755 --- a/dvd2divx +++ b/dvd2divx @@ -5,9 +5,9 @@ # (C) 2004-2009 Arnaud G. Gibert #----------------------------------------------------------------------------------------------------------------------------------- # $RCSfile: dvd2divx,v $ -# $Revision: 1.9 $ +# $Revision: 1.10 $ # $Name: $ -# $Date: 2009/05/23 00:09:55 $ +# $Date: 2009/10/20 07:08:49 $ # $Author: agibert $ #----------------------------------------------------------------------------------------------------------------------------------- @@ -193,16 +193,21 @@ then then audio_opt1="$audio_comp_opt" else - if [ "$audio" == "avp" ] + if [ "$video" == "2" ] then - audio_opt1="$audio_comp_opt" - audio_opt2="$audio_comp_opt" - else - if [ "$audio" == "fvp" ] + if [ "$audio" == "avp" ] then - audio_opt1="$audio_copy_opt" + audio_opt1="$audio_comp_opt" audio_opt2="$audio_comp_opt" + else + if [ "$audio" == "fvp" ] + then + audio_opt1="$audio_copy_opt" + audio_opt2="$audio_comp_opt" + fi fi + else + audio_opt1="$audio_comp_opt" fi fi else @@ -356,4 +361,10 @@ then echo "Compressing DivX pass 2..." mencoder $read_opt2 $audio_opt2 $video_opt2 $vf_opt -o $divx_name >$out_name.4.log 2>&1 fi +else + if [ "$audio" == "ap" ] + then + echo "Compressing DivX audio..." + mencoder $read_opt2 $audio_opt1 -ovc copy -o $divx_name >$out_name.3.log 2>&1 + fi fi