From: Sergey Matveev Date: Mon, 30 Mar 2020 08:48:40 +0000 (+0300) Subject: mencoder by default produces AVI X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=db020f48db267217cee638dcdf6ec98ebd69eb81 mencoder by default produces AVI --- diff --git a/bin/bin/mencoder.sh b/bin/bin/mencoder.sh index 7768a95..758b4f7 100755 --- a/bin/bin/mencoder.sh +++ b/bin/bin/mencoder.sh @@ -1,8 +1,8 @@ #!/bin/sh -ex -mencoder -mc 0 -noskip -oac pcm -ovc copy -o "$1".mkv "$1" -mplayer -noframedrop -ao pcm:fast:file="$1".wav -novideo "$1".mkv -sox "$1".wav -c 1 -r 44100 -e signed-integer -b 16 "$1".wav.wav +mencoder -mc 0 -noskip -oac pcm -ovc copy -o "$1".avi "$1" +mplayer -noframedrop -ao pcm:fast:file="$1".wav -novideo "$1".avi +sox "$1".wav -c 2 -r 48000 -e signed-integer -b 16 "$1".wav.wav mv "$1".wav.wav "$1".wav normalize --peak "$1".wav opusenc "$1".wav "$1".opus @@ -17,7 +17,7 @@ for vpass in 1 2; do -ovc lavc \ -lavcopts vcodec=libvpx:$opts:autoaspect:vpass=$vpass \ -vf scale=960:540 \ - -o "$1".vp8 "$1".mkv + -o "$1".vp8 "$1".avi done mkvmerge --webm -o "$1".webm "$1".opus "$1".vp8 -rm "$1".opus "$1".vp8 "$1".log "$1".mkv +rm "$1".opus "$1".vp8 "$1".log "$1".avi