]> code.delx.au - transcoding/commitdiff
fix-pal-speedup switch back to mplayer
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 22 Jul 2015 09:00:39 +0000 (19:00 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Wed, 22 Jul 2015 09:00:39 +0000 (19:00 +1000)
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

index 67397c09a742f5d7c32d282a4ebc99ffd746bafa..27ddd482aa187526dbd47a21b6873462a1532357 100755 (executable)
@@ -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 {