Last active
January 8, 2022 16:34
-
-
Save klaxa/c6bd1a72ca9198c21104 to your computer and use it in GitHub Desktop.
Pitches a video's audio down with ffmpeg and sox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FFMPEG="/usr/bin/ffmpeg" | |
SOX="/usr/bin/sox" | |
$FFMPEG -i "$1" -map 0:a -c flac -y temp.flac | |
$SOX temp.flac pitched.flac pitch -500 | |
$FFMPEG -i "$1" -i pitched.flac -map 0:v -map 1:a "${1}"_pitched.mkv | |
rm temp.flac pitched.flac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment