See https://www.youtube.com/watch?v=PddIlnAdv68
ffmpeg -i video.mp4 -r 25 -qscale:v 2 -s 1920x1080 frames/frame-%05d.jpg
set the correct width & height, select a fixed seed, e.g. 234719090
ffmpeg -y -r 25 -i output/frame-%05d.jpg -s 1920x1080 -b:v 12M -vcodec h264_nvenc -pix_fmt yuv420p -strict -2 -filter:v minterpolate='mi_mode=mci:me_mode=bidir:mc_mode=aobmc:vsbmc=1:fps=30',deflicker output_video.mp4
ffmpeg -y -r 25 -start_number 00090 -i output/frame-%05d.jpg -s 1920x1080 -b:v 12M -vcodec h264_nvenc -pix_fmt yuv420p -strict -2 -filter:v minterpolate='mi_mode=mci:me_mode=bidir:mc_mode=aobmc:vsbmc=1:fps=30',deflicker output_video.mp4
ffmpeg -i IMG_4338.MOV -r 25 -qscale:v 2 -s 1920x1080 frames/frame-%05d.jpg
ffmpeg -i output_video.mov -q:v 0 output_video.mp4