2 ms·
ffmpeg can do this and it has a few filters for doing so. The basic -r for setting doesn't create frames it just repeats them and often makes things worse. How
by PaulKeeble 4y ago
ffmpeg can do this and it has a few filters for doing so. The basic -r for setting doesn't create frames it just repeats them and often makes things worse. However the framerate filter does work and you can use it like this:
ffmpeg -i input.mp4 "framerate=fps=90" output.mp4
It will interpolate frames. There are a variety of other options you can use to tweak it, take a look at https://ffmpeg.org/ffmpeg-filters.html#toc-framerate https://ffmpeg.org/ffmpeg-filters.html#toc-framerate for some of the other options you can play with, you separate them with a , and they use the same Key=value format. There is also another filter https://ffmpeg.org/ffmpeg-filters.html#toc-minterpolate https://ffmpeg.org/ffmpeg-filters.html#toc-minterpolate which seems to do a similar thing but I have had issues getting it to work in the past and I am not sure how they differ.
If you have a Nvidia graphics card then you can use hardware encoding and maintain all the existing audio and the complete command would like this:
ffmpeg -i "in.mp4" -c:v hevc_nvenc -preset slow -crf 20 -c:a copy -filter:v "framerate=fps=90" "out.mp4"