Skip to content

Instantly share code, notes, and snippets.

@klaxa
Last active January 8, 2022 16:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaxa/c6bd1a72ca9198c21104 to your computer and use it in GitHub Desktop.
Save klaxa/c6bd1a72ca9198c21104 to your computer and use it in GitHub Desktop.
Pitches a video's audio down with ffmpeg and sox
#!/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