Skip to content

How-ToGPU

How to Interpolate Video Frames on Any GPU with rife-ncnn-vulkan and FFmpeg

rife-ncnn-vulkan is a portable command-line version of RIFE frame interpolation that runs on Intel, AMD and NVIDIA graphics without CUDA or PyTorch. Here's how to split a video with FFmpeg, double its frame count and rebuild it with the original audio.

By , Systems & Technical Editor

2 min read

How to Interpolate Video Frames on Any GPU with rife-ncnn-vulkan and FFmpeg

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:

  1. ffprobe input.mp4 to find the source frame rate and audio format, for example 24fps with AAC audio.

  2. ffmpeg -i input.mp4 -vn -acodec copy audio.m4a to copy out the audio.

  3. 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.

The bottom line

rife-ncnn-vulkan is a lightweight way to run RIFE frame interpolation on almost any modern PC: download the portable package, split your video into frames with FFmpeg, run one command to double the frame count, then re-encode at the new frame rate with the original audio. It needs no CUDA or Python setup and works on Intel, AMD and NVIDIA graphics, which makes it ideal for scripted batch jobs, but you will need plenty of free disk space for the extracted frames.

Sources

  1. 01rife-ncnn-vulkan README (nihui, GitHub)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Use BGInfo to Show Your PC's Name, IP Address and Specs on the Desktop

How-To

How to Use BGInfo to Show Your PC's Name, IP Address and Specs on the Desktop

Want your PC's name, IP address and key details on screen without digging through Settings? Following Microsoft's official documentation, we show how to set up the free Sysinternals tool BGInfo, choose its fields, save a configuration and refresh it at every sign-in, plus its most useful command-line options.

Marcus Thorne3 min

Best Free Ebook Readers for Windows 11 in 2026

Best Picks

Best Free Ebook Readers for Windows 11 in 2026

Reading ebooks on a PC doesn't need a subscription. Using the developers' official pages, we pick three free, open-source ebook readers for Windows 11: Calibre for managing and converting a big library, SumatraPDF for a tiny portable viewer, and Thorium Reader for annotations and accessibility.

Hannah Vance3 min

How to Set a Shutdown Timer in Windows 11 (and Cancel It)

How-To

How to Set a Shutdown Timer in Windows 11 (and Cancel It)

Want your PC to switch itself off after an overnight download or render? Windows 11's built-in shutdown command can do it on a timer. Following Microsoft's documentation, we show how to set and cancel a shutdown timer, restart or boot to the BIOS instead, and schedule a nightly shutdown with schtasks.

Marcus Thorne3 min

How to Lock and Reset NVIDIA GPU Clocks with nvidia-smi

How-To

How to Lock and Reset NVIDIA GPU Clocks with nvidia-smi

NVIDIA's nvidia-smi can lock your graphics card's core and memory clocks to a fixed speed or range with -lgc and -lmc, and reset them with -rgc and -rmc. Here's how to check supported clocks, apply a lock and undo it, based on NVIDIA's documentation.

Marcus Thorne3 min