4 echo "Usage: $0 input title aid1 bitrate1 scale1 aid2 bitrate2 scale2 [transcode options]" >&2
18 echo "INAM $title" | iconv -f koi8-r -t utf-8 >avi_comments.txt
19 echo "ICMT Codec: FFmpeg (DivX5)" >>avi_comments.txt
21 abitrate="$bitrate1" ascale="$scale1" tc_encode "$input" -a "$aid1" "$@" &&
22 tc_extract_a1_comments "$input" "$aid2" -b "$bitrate2" -s "$scale2" &&
23 mv output2.avi "$title".avi &&
24 exec rm avi_comments.txt divx4.log a"$aid2".mp3 output.avi