FILM

FILM

Makes slow motion and higher frame rates by painting the frames between two frames, even when things move far between them (FILM, frame interpolation for large motion).

Video Editingframe-interpolationslow-motionframe-ratevideo-editingapache-2.0Fine-tunable
FILM: Video Editing model on Kainguru

About FILM

Capabilities

  • 2x, 3x or 4x frame rate — one, two or three new frames between every two
  • Large motion — built for scenes where objects move far between frames
  • Cuts stay cuts — no frames are invented across a change of shot
  • Fine-tunable — train it on clips of your own footage

Good to know

  • Videos are MP4, MOV, WebM or MKV, at most 256 MB, 150 frames and 921,600 pixels a frame (1280 x 720); the result has no sound and (frames - 1) x factor + 1 frames, at most 240 per second.
  • The result is an SDR video at a constant frame rate: a variable-frame-rate video is re-timed evenly at its average rate, and HDR (HLG or PQ) colours are not tone-mapped, so they look flatter than in an HDR player.
  • Slower than a real-time interpolator; pick it for large motion.
  • Fine-tuning takes one ZIP (at most 4 GB, 128 MB a clip, no password) with 2 to 100 clips and a manifest.jsonl holding one {"video": "clips/a.mp4"} line per clip, paths relative to the manifest. Clips have at least 7 frames and 256 pixels a side (at most 1920 x 1080).
  • Training shows the model frames i and i + 2g of a clip (g from 1 to 3) and asks for frame i + g, on random 256 x 256 crops of the first 48 frames; it stops after the steps you ask for or after 9 hours, keeping what it has learned.

Attribution

FILM: Frame Interpolation for Large Motion by Fitsum Reda, Janne Kontkanen, Eric Tabellion, Deqing Sun, Caroline Pantofaru and Brian Curless (Google Research), released under the Apache License 2.0; the PyTorch port is by dajes, also under the Apache License 2.0.

FILM inputs and output

NameTypeRequiredDefaultDetails
videofileYes—The video to smooth: MP4, MOV, WebM or MKV, at most 256 MB, 150 frames and 921,600 pixels a frame. The result has no sound.
1–2048 characters · video/mp4, quicktime, webm, x-matroska
factorintegerNo2How many times the frame rate: 2 adds one frame between every two, 4 adds three.
Allowed: 2, 3, 4 · 2–4

Output. Returns MP4 video: The smoothed video as an H.264 MP4 without sound, at the input's frame rate times factor.

Run FILM with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=FILM" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "video": "https://example.com/input.png",
    "factor": 2
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "FILM",
        {
          "video": "https://example.com/input.png",
          "factor": 2
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune FILM

You can fine-tune FILM on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, 128 MB a clip, no password) with 2 to 100 clips and manifest.jsonl with one {"video": ...} line per clip. More: Good to know, in the README.

The steps are in the docs.

FILM pricing

Price per frame: 0.005095 credits ($0.00005095). The price is shown again before every run; all prices are on the pricing page.

Licence and source

RIFE 4.26: Video Editing model on Kainguru
Video Editing

RIFE 4.26

Raises a video's frame rate 2, 3, 4 or 8 times by predicting the frames in between, fast enough for long clips (RIFE…

Fine-tunable
Wan 2.1 VACE 1.3B: Video Editing model on Kainguru
Video Editing

Wan 2.1 VACE 1.3B

Video-editing model (Wan 2.1 VACE, 1.3B): follows a control clip, redoes a masked area or the end of a clip, or puts…

Fine-tunable
ReCamMaster: Video Editing model on Kainguru
Video Editing

ReCamMaster

Video-editing model (ReCamMaster on Wan 2.1, 1.3B) that re-renders a clip along a new camera path: pan, tilt, zoom…

Fine-tunable
SVOR: Video Editing model on Kainguru
Video Editing

SVOR

Removes objects from a video. Send a clip and a mask video of what to remove, and it fills the area in, shadows and…

Fine-tunable
Wan 2.2 Fun 5B Control: Video Editing model on Kainguru
Video Editing

Wan 2.2 Fun 5B Control

Video-editing model (Wan 2.2 Fun Control, 5B): re-renders a control video of edge, depth or pose maps, or a rough…

Fine-tunable
DeOldify Video: Video Editing model on Kainguru
Video Editing

DeOldify Video

Colourises black-and-white video with DeOldify's video model: plausible colour for every frame, laid over the original…

Fine-tunable