Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save georgemandis/4fd62bf5027b7a058f913d5dc32c2040 to your computer and use it in GitHub Desktop.

Select an option

Save georgemandis/4fd62bf5027b7a058f913d5dc32c2040 to your computer and use it in GitHub Desktop.
Speed -up audio with ffmpeg
#!/bin/bash
# Default to 2x speed
speed=${2:-2.0}
# Write to a different output with the speed in the filename
ffmpeg -i "$1" -filter:a "atempo=$speed" -ac 1 -b:a 64k "$1-$speed"x.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment