track=`expr match "$stream" '^\([0-9]*\):'`
if [ -n "$track" ]; then
- echo "-> Setting the audio ID to $aid. Setting the audio track to $track." | tee -a "$logfile"
+ echo " Setting the audio ID to $aid. Setting the audio track to $track." | tee -a "$logfile"
fi
}
if [ $target_size -ne 0 ]; then
vob_length=`mplayer -identify -v "$vobfile" -endpos 0 2>&1 | grep ID_LENGTH | awk -F '=' '{ print $2 }' | awk -F '.' '{ print $1 }'`
((target_bitrate = (target_size * 1024 * 8) / vob_length ))
+ custom_bitrate=1
echo " With a given target size of $target_size MB, the estimated bit rate will need to be $target_bitrate kbits/sec"
fi
}