I found this example

 ffmpeg -i input.mkv -filter:v "setpts=0.5*PTS" output.mkv 

but I have a video I want to speed up by 60 times, not just 2X.

  • have you tried Google? Just look at this command and find out what each parameter does. Once you know which one causes the 2x speed it is quite simple to obtain 60x speed. – masgo Oct 23 '17 at 18:42
  • 1
    @masgo Just FYI, this is now the second highest google search result... – jrh Nov 20 '18 at 18:04

Simply multiply by the reciprocal of the speed factor.

ffmpeg -i input.mkv -filter:v "setpts=PTS/60" output.mkv 
  • While the playback speed seems to be changed for this, the video duration seems to be represented incorrectly; e.g., a 3 minute video sped up 3x will still show as being 3 minutes long. If you play it in a video player (e.g., VLC) the video will only take up the first minute and then freeze on a frame for the remaining 2 minutes. – jrh Nov 19 '18 at 21:55
  • 1
    Does it have audio? – Gyan Nov 20 '18 at 5:45
  • 2
    It does make sense that ffmpeg would leave the full length of the video because there was still audio data. Good catch, it turns out, it did have audio (my speakers were muted). With the -an parameter, the length of the video is set properly. – jrh Nov 20 '18 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.