Skip to content

Instantly share code, notes, and snippets.

@playniuniu
Created March 10, 2020 09:01
Show Gist options
  • Select an option

  • Save playniuniu/ae5274fe0efdd4b2a30b0f08a84de8a4 to your computer and use it in GitHub Desktop.

Select an option

Save playniuniu/ae5274fe0efdd4b2a30b0f08a84de8a4 to your computer and use it in GitHub Desktop.
change video speed with ffmpeg
#!/bin/sh
# Refer: https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video
ffmpeg -y -i origi.mp4 -filter_complex "[0:v]setpts=2*PTS[v];[0:a]atempo=0.5[a]" -map "[v]" -map "[a]" 0.5.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment