- Fix broken audio compress only mode (audio=ap & video=n).

This commit is contained in:
agibert 2009-10-20 07:08:49 +00:00
parent 9e72c0a187
commit b8429d3d99

View File

@ -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,6 +193,8 @@ then
then
audio_opt1="$audio_comp_opt"
else
if [ "$video" == "2" ]
then
if [ "$audio" == "avp" ]
then
audio_opt1="$audio_comp_opt"
@ -204,6 +206,9 @@ then
audio_opt2="$audio_comp_opt"
fi
fi
else
audio_opt1="$audio_comp_opt"
fi
fi
else
audio_opt1="$audio_copy_opt"
@ -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