From 47ae9da213b0d1ac8c5a5da0ab327dadab761490 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Wed, 22 Jul 2015 19:00:39 +1000 Subject: [PATCH] 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. --- fix-pal-speedup | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 { -- 2.39.2