Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nicnocquee/b7f6e2b1ef34b5328684 to your computer and use it in GitHub Desktop.

Select an option

Save nicnocquee/b7f6e2b1ef34b5328684 to your computer and use it in GitHub Desktop.
Script to speed up (1.3x) all movies in directory using ffmpeg. To speed up 2x, change 10/13 to 0.5 and 1.3 to 2.
find . -name '*.mov' -exec ffmpeg -i {} -filter_complex "[0:v]setpts=10/13*PTS[v];[0:a]atempo=1.3[a]" -map "[v]" -map "[a]" {}@2x.mov \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment