Speed Up Video with ffmpeg

Here's the command to use to speed up a video using ffmpeg.

  ffmpeg -i <input_file> -filter:v "setpts=(1/<speed>)*PTS" <output_file>

Speed can be any number. A 2 will speed up to 2X while an 8 will speed up to 8X.

If you leave the audio on the video alone it will still be as long as the original but the video part will be fast and the audio will be the original length. To remove the audio use the -an option.

  ffmpeg -i <input_file> -filter:v "setpts=(1/<speed>)*PTS" -an <output_file>
comments powered by Disqus
video/speed_up_video_with_ffmpeg.txt · Last modified: 2020/06/01 22:53 (external edit)