This is a hack :)
mpv outputs multi-channel audio tracks, mplayer downmixes to 2-channel for me.
I was too lazy to figure out why 'sox ... channels 2' doesn't seem to work.
local infile="$1"
local outfile="$2"
- mpv \
- --no-terminal \
- --no-video \
- --ao "pcm:waveheader:file=${outfile}" \
+ mplayer \
+ -noconfig all \
+ -novideo \
+ -ao "pcm:waveheader:file=${outfile}" \
"$infile"
}
-t wav \
"$outfile" \
speed "${SLOWDOWN}" \
- gain -n \
- channels 2
+ gain -n
}
function encode_audio {