]> Sergey Matveev's repositories - dotfiles.git/commitdiff
mencoder by default produces AVI
authorSergey Matveev <stargrave@stargrave.org>
Mon, 30 Mar 2020 08:48:40 +0000 (11:48 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 30 Mar 2020 08:48:40 +0000 (11:48 +0300)
bin/bin/mencoder.sh

index 7768a9575b59da36783ecab122c2d0029085b3ac..758b4f743527aa79070f540873ca255a933804d4 100755 (executable)
@@ -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