4 echo "Usage: $0 title aid1 bitrate1 scale1 aid2 bitrate2 scale2 [menoder options]" >&2
17 echo "INAM $title" | iconv -f koi8-r -t utf-8 >avi_comments.txt
18 echo "ICMT Codec: FFmpeg (DivX5)" >>avi_comments.txt
20 aid="$aid1" abitrate="$bitrate1" ascale="$scale1" m_encode "$@" &&
21 m_extract_a1_comments "$aid2" -lameopts cbr:br=$bitrate2:q=0 -af volume="$scale2" "$@" &&
22 mv output2.avi "$title".avi &&
23 exec rm avi_comments.txt divx2pass.log a"$aid2".mp3 output.avi