Skip to content

Instantly share code, notes, and snippets.

@kairusds
Last active February 12, 2021 23:42
Show Gist options
  • Save kairusds/5eb5cb50d01d94f93015a213764e8caf to your computer and use it in GitHub Desktop.
Save kairusds/5eb5cb50d01d94f93015a213764e8caf to your computer and use it in GitHub Desktop.
speed up a music file's audio by 1.5x
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: dt <path>"
exit 1
fi
out="${1%.*} 1.5x.mp3"
ffmpeg -i "$1" -ab 192k -af atempo=1.5 "$out"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment