Skip to content

Instantly share code, notes, and snippets.

@trinker
Created May 1, 2018 15:01
Show Gist options
  • Select an option

  • Save trinker/34d2bfbd4c409600b0ebdc199e40856c to your computer and use it in GitHub Desktop.

Select an option

Save trinker/34d2bfbd4c409600b0ebdc199e40856c to your computer and use it in GitHub Desktop.
ffmpeg code to speed up a video
ffmpeg -i intro_to_r.mp4 -filter_complex "[0:v]setpts=0.6666667*PTS[v];[0:a]atempo=1.5[a]" -map "[v]" -map "[a]" intro_to_r2.mp4
## r code
## atempo=1.25
## setpts=1/atempo
ffmpeg -i 04_viz_grammar_and_theory.mp4 -filter_complex "[0:v]setpts=0.8*PTS[v];[0:a]atempo=1.25[a]" -map "[v]" -map "[a]" 04_viz_grammar_and_theory2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment