From cdba15d01c5c9cf934360e5e6e8aaa4432af40fa Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 12 Aug 2013 06:57:42 +1000 Subject: [PATCH] Use mplayer to extract audio instead of mkvextract --- fix-pal-speedup | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fix-pal-speedup b/fix-pal-speedup index af1d30d..c951ed2 100755 --- a/fix-pal-speedup +++ b/fix-pal-speedup @@ -1,8 +1,7 @@ #!/bin/bash -e -# Many DVDs released in Australia are sped up from 23.976fps to 25fps. +# Many DVDs released in Australia are sped up from 24fps to 25fps. # This script reverses the procedure, correcting the audio pitch. -# Input files are assumed to be mkv files with track 2 audio. # The video framerate is adjusted without re-encoding. The audio is slowed and # normalised then re-encoded as mp3. @@ -27,8 +26,7 @@ fi set -x mkdir "$tmpdir" -mkvextract tracks "$infile" 2:"${tmpdir}/audio" -mplayer -ao pcm:file="${tmpdir}/audio.wav" -vo null "${tmpdir}/audio" +mplayer -novideo -ao pcm:file="${tmpdir}/audio.wav" -vo null "$infile" sox "${tmpdir}/audio.wav" "${tmpdir}/audio-fixed.wav" speed "${SLOWDOWN}" gain -n lame --preset standard "${tmpdir}/audio-fixed.wav" "${tmpdir}/audio.mp3" mkvmerge -o "${outfile}" --default-duration "1:${FORCEFPS}fps" --no-audio "$infile" "${tmpdir}/audio.mp3" -- 2.39.2