rife-ncnn-vulkan is a free, portable command-line version of RIFE (Real-Time Intermediate Flow Estimation), an AI model that generates new frames between existing ones. Because it runs on Vulkan through Tencent's ncnn framework, it works on Intel, AMD and NVIDIA graphics cards without CUDA or PyTorch.
What you need
A graphics card with an up-to-date driver. The developer offers Windows, Linux and macOS executables for Intel, AMD and NVIDIA GPUs, and suggests upgrading your GPU driver if you hit a crash or error.
FFmpeg, to split your video into frames and join them back together. Our guide to installing FFmpeg on Windows covers this.
Plenty of free disk space, because every frame is saved as an image.
Step 1: Download rife-ncnn-vulkan
Download the release for your operating system from the project's GitHub releases page and extract it. The package includes all the binaries and models required and is portable, so there is nothing else to install.
Step 2: Extract the frames and audio
Open a terminal in a working folder, make two folders called input_frames and output_frames, then run:
ffprobe input.mp4 to find the source frame rate and audio format, for example 24fps with AAC audio.
ffmpeg -i input.mp4 -vn -acodec copy audio.m4a to copy out the audio.
ffmpeg -i input.mp4 input_frames/frame_%08d.png to decode every frame.
Step 3: Interpolate
Run rife-ncnn-vulkan -i input_frames -o output_frames. By default the tool doubles the frame count (the -n option sets a different target frame count). On Windows the program is rife-ncnn-vulkan.exe.
Useful options from the README:
-m: chooses the model folder. The default is rife-v2.3, and the README lists models up to rife-v4.6, plus a rife-anime model for animation.
-u: enables UHD mode for high-resolution video.
-x and -z: enable spatial and temporal TTA modes.
-g: picks the GPU (-1 is the CPU, the default is automatic) and accepts several IDs for multi-GPU work.
-j: sets threads for loading, processing and saving (default 1:2:2). Larger values may increase GPU use and consume more graphics memory; the developer suggests 4:4:4 for many small images and 2:2:2 for large ones.
-f: sets the output filename pattern and format. PNG is better supported, while WebP generally makes smaller files; both are lossless.
Step 4: Rebuild the video
If your source was 24fps, doubling the frames gives 48fps. Encode the new frames with the original audio:
ffmpeg -framerate 48 -i output_frames/%08d.png -i audio.m4a -c:a copy -crf 20 -c:v libx264 -pix_fmt yuv420p output.mp4
Change the -framerate value to match your source frame rate multiplied by your interpolation factor. If you would rather have a graphical app that handles these steps, see our guide to converting video to 60fps with Flowframes, which uses the same RIFE NCNN approach. Our best AI frame interpolation software guide covers more options, and our best GPU for AI frame interpolation guide covers hardware.