3

I recently learn that I can use minterpolate option of ffmpeg for frame interpolation in a video. One of the configuration of this option is fps(frame per second) and I am not sure how I should set it to generate 2x and 4x slow-motion videos. Here is how I use it right now: ffmpeg -i input.avi -filter "minterpolate='fps=120'" output.avi

seems like the generated output video doesn't have equal number of frames generated between every 2 consecutive frames. Can anyone help me here or point me to a helpful document?

Thank you,

Mary
  • 31
  • 1
  • 4

1 Answers1

7

You are currently generating a 120fps video at normal speed. To do a slow-mo you need to slow it down by 4x ffmpeg -i input.avi -filter "minterpolate='fps=120',setpts=4*PTS" output.avi

should do the trick.

Pete Allen
  • 71
  • 1
  • 1
    This command will fail if you have an audio track on your input file, you'd have to use `-filter:v` – Zimano Feb 03 '21 at 10:22