ffmpeg motion interpolation for 2x and 4x slowmotion

8.8k views Asked by At

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,

1

There are 1 answers

1
Pete Allen On

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.