Konecz

How to make slow motion from a video shot at 24 frames per second

Article by

To make slow motion from a video shot at 24 frames per second, playing it slower is not enough: each frame would stay on screen longer and the picture would jump. The answer is to create the frames that are missing between the existing ones. Konecz does this with RIFE, a frame interpolation model that runs on the graphics card. In an engine test, a 48-frame clip at 24 per second became 144 frames at 72 per second, with the same length, in 1.4 seconds of GPU work.

Why does simply slowing down not work?

A video is a sequence of photos. At 24 frames per second, each photo stays on screen for 1/24 of a second. Play the video at a third of the speed and each photo now stays 1/8 of a second, and the eye notices the jumps between them. The motion looks choppy.

For slow motion to look smooth, the video needs more photos of the same moment. A clip at 72 frames per second, played at 24, is three times slower and still shows 24 different photos per second.

What is frame interpolation?

Working out the photo in between. Given frame 1 and frame 2, the model estimates what the scene looked like between them: where the arm went, where the light was. RIFE does this with a neural network that estimates the motion of each part of the image.

It does not invent new content; it only fills in the path between two real photos. That is why it works well on continuous motion (a glass being poured, a person turning their head) and worse on cuts and objects that appear out of nowhere.

How does Konecz do it in the engine?

With the kodecz prepare interpolate command, which takes a video and returns a sequence of images at the requested rate (72 by default), with the same length as the original:

  1. Decodes the frames on the card. The video is decoded by NVDEC, the NVIDIA card's decoder, and each frame becomes a high-quality JPEG. Formats the card cannot read fall back to the processor.
  2. Picks the right card. Only the NVIDIA card is made visible to RIFE, which runs through Vulkan. Without that, it may pick the computer's integrated graphics.
  3. Generates the new frames. RIFE creates exactly round(N × new rate ÷ original rate) frames. The command checks the count and reports which card it ran on.
  4. Writes the sequence. The files come out numbered (0001.jpg, 0002.jpg…). Frame i corresponds to the instant (i − 1) ÷ rate of the original video.

Why JPEG and not PNG?

Because with PNG, writing and reading the frames made the processor the bottleneck, in one test run on one clip. High-quality JPEG is lighter to write and open, and the difference does not show in the final video. It is an observation from a single run, not a published measurement.

How long does it take?

In the engine's example, running on an RTX 5090:

Step Value
Input 48 frames at 24 per second (2 seconds)
Output 144 frames at 72 per second (2 seconds)
RIFE's work on the card 1.4 s
Total command time 2.1 s

The model is RIFE v4.6, in the rife-ncnn-vulkan program, under the MIT license. It is kept in a single models folder on the Konecz server, next to Whisper and the cut-out models.

Where does slow motion fit in a video?

In the takes: filmed or generated stretches that call for emphasis. Two common uses:

On a profile like @ratomixologia, whose portfolio has realistic videos such as «Esse drink é da cor do céu» (This drink is the color of the sky), that is the kind of scene where a liquid in slow motion makes sense.

Frequently asked questions

Can you make slow motion without a graphics card? RIFE in the Konecz engine needs the card. Without it, the command does not run.

Does any output rate work? The v4 model accepts any number of in-between frames. 72 is the default because it is a multiple of 24.

Does the slow motion look artificial? On continuous motion, it is smooth. On cuts, very fast objects or thin edges, interpolation can smear. It is worth checking the frames before using them.

Does this replace shooting at high speed? No. A video shot at 120 frames has real photos; RIFE estimates the missing ones. For people who do not film, it is what solves the problem.

Konecz makes the whole video, slow motion included, without the client filming anything. See examples in the portfolio and more about the engine on the Kodecz page.

Markdown version