From: James Bunton Date: Wed, 22 Jul 2015 09:00:39 +0000 (+1000) Subject: fix-pal-speedup switch back to mplayer X-Git-Url: https://code.delx.au/transcoding/commitdiff_plain/47ae9da213b0d1ac8c5a5da0ab327dadab761490 fix-pal-speedup switch back to mplayer 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. --- diff --git a/fix-pal-speedup b/fix-pal-speedup index 67397c0..27ddd48 100755 --- a/fix-pal-speedup +++ b/fix-pal-speedup @@ -27,10 +27,10 @@ function extract_audio { 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" } @@ -44,8 +44,7 @@ function slow_audio { -t wav \ "$outfile" \ speed "${SLOWDOWN}" \ - gain -n \ - channels 2 + gain -n } function encode_audio {