3 mencoder -mc 0 -noskip -oac pcm -ovc copy -o "$1".avi "$1"
4 mplayer -noframedrop -ao pcm:fast:file="$1".wav -novideo "$1".avi
5 sox "$1".wav -c 2 -r 48000 -e signed-integer -b 16 "$1".wav.wav
6 mv "$1".wav.wav "$1".wav
7 normalize --peak "$1".wav
8 opusenc "$1".wav "$1".opus
10 opts="mbd=2:trell:dia=6:predia=6:cmp=6:subcmp=6:preme=2:vb_strategy=2:v4mv:cbp:mv0:qns=2"
11 opts="mbd=2:trell:dia=6:predia=6:cmp=6:subcmp=6:preme=2:vb_strategy=2:v4mv"
16 -passlogfile "$1".log \
18 -lavcopts vcodec=libvpx:$opts:autoaspect:vpass=$vpass \
22 mkvmerge --webm -o "$1".webm "$1".opus "$1".vp8
23 rm "$1".opus "$1".vp8 "$1".log "$1".avi