/media-os:media-interpolate [model] [input] [output] [fps|factor]from media-os
Interpolates video frames using AI models (RIFE, FILM, PractCL) to boost framerate, create slow-motion, or smooth low-fps footage.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
rife-ncnn-vulkan → Step 2 recipe A.-m rife-v4.6 → Step 2 recipe A.minterpolate=fps=60:mi_mode=mci looks wobbly, jelly, or artifact-heavy.ffmpeg-speed-time (setpts + atempo).media-upscale.| Model | License | Best for | Form |
|---|---|---|---|
| RIFE | MIT | General video, anime, real-time, default | rife-ncnn-vulkan prebuilt CLI + PyTorch repo |
| FILM | Apache-2.0 | Large motion (sports, fast pans), stills | Python/TensorFlow inference |
| PractCL | MIT | Research, cascaded refinement experiments | Python/PyTorch |
Decision rules:
rife-ncnn-vulkan — Vulkan cross-platform (NVIDIA, AMD, Intel, Apple Silicon via MoltenVK), no Python, fastest install.rife-anime-v4.x are tuned for it.Do NOT use: DAIN (research-only license). It pre-dates RIFE and is slower; RIFE supersedes it at every benchmark this skill cares about.
scripts/interp.py install <model> prints the exact platform-specific command. It does not auto-install.
# RIFE (ncnn-vulkan prebuilt — recommended)
# Download release zip from: https://github.com/nihui/rife-ncnn-vulkan/releases
# Unzip; add the folder to PATH. Includes models: rife-v2.3 / v2.4 / v3.0 / v3.1 / v4 / v4.6 / anime
# FILM (Python + TensorFlow)
uv pip install tensorflow mediapy
git clone https://github.com/google-research/frame-interpolation
# PractCL
git clone https://github.com/fatheral/PractCL
uv pip install torch opencv-python numpy
# Frame pipeline: extract frames -> RIFE 2x on folder -> remux.
# The script does this end-to-end:
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py video \
--model rife --in clip_24fps.mp4 --out clip_60fps.mp4 \
--fps 60 --rife-model rife-v4.6
What happens under the hood:
# (1) extract PNGs at source fps
ffmpeg -i clip_24fps.mp4 -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 in/%08d.png
# (2) RIFE fills the gaps (pick 2x, or directly target -f output-frames)
rife-ncnn-vulkan -i in -o out -m rife-v4.6 -n 0
# -n 0 = auto (2x). For arbitrary target fps, use the script, which computes N.
# (3) remux at target fps + original audio
ffmpeg -framerate 60 -i out/%08d.png -i clip_24fps.mp4 \
-map 0:v -map 1:a? -c:v libx264 -preset slow -crf 17 -pix_fmt yuv420p \
-c:a copy -movflags +faststart clip_60fps.mp4
python frame-interpolation/eval/interpolator_cli.py \
--pattern "frames_in/*.png" \
--model_path /path/to/film_net/Style/saved_model \
--times_to_interpolate 1 \
--output_video
--times_to_interpolate is log2 of the multiplier: 1 doubles (2x), 2 quadruples (4x), 3 eight-times.
python PractCL/test.py --input in/ --output out/ --factor 2
interp.py slow-mo doubles / quadruples / 8x's the number of frames while keeping the output framerate unchanged (so content plays back slower):
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py slow-mo \
--model rife --in action.mp4 --out action_slow2x.mp4 --factor 2
Implementation: extract frames at src_fps, RIFE by factor, remux at src_fps. Audio is dropped (slowing the video without slowing the audio produces a pitch mismatch). Restore audio afterwards with ffmpeg-audio-filter atempo=1/factor if desired.
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py images \
--model rife before.png after.png --out middle.png
# Generate N intermediate frames
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py images \
--model rife before.png after.png --out-dir sequence/ --count 8
Under the hood, RIFE ncnn accepts two-image mode with -0 first.png -1 second.png -o middle.png. For N>1 the script repeatedly subdivides (midpoint of midpoint).
ffmpeg minterpolate. minterpolate=fps=60:mi_mode=mci is a 2015 block-matching motion estimator. It warps pixels into the gap frame and produces "jelly" on fast motion, edge halos on occlusions. RIFE is a learned flow estimator (a neural network) — strictly better on anime and modern content. Use ffmpeg minterpolate only when there's no GPU and no Python.-i <dir> -o <dir> or -0/-1 two-image mode. Use the driver script to run the full video pipeline.-n. For arbitrary target fps (e.g. 23.976 → 60), you must pre-compute how many tween frames per source pair. interp.py video --fps 60 does this (uses RIFE's -f frame output count and a small planner).--model_path at a repo root instead of a saved_model/ directory.rife-v4.6 (latest stable as of this writing), rife-v4 (older), rife-v3.1 (legacy), rife-anime-v4.6 (anime-tuned). The ncnn zip bundles several — check the models/ directory inside the unzipped folder.slow-mo subcommand drops audio by default; add atempo=0.5 on the original audio track afterwards to keep it synced.ffmpeg -i in.mp4 -vsync cfr -r <src_fps> cfr.mp4.ffmpeg-ivtc or yadif=1 first.fps=60:round=near to reduce to the exact target.uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py video \
--model rife --in film_24.mp4 --out film_60.mp4 --fps 60
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py slow-mo \
--model rife --in action.mp4 --out action_4x_slow.mp4 --factor 4
# Audio was dropped. To keep it in sync at 1/4 speed:
ffmpeg -i action.mp4 -vn -af "atempo=0.5,atempo=0.5" -c:a aac audio_slow.m4a
ffmpeg -i action_4x_slow.mp4 -i audio_slow.m4a -c copy -shortest action_4x_final.mp4
atempo is capped at 0.5–2.0 per instance; chain atempo=0.5,atempo=0.5 for 0.25x.
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py images \
--model film before.png after.png --out-dir tween/ --count 60
ffmpeg -framerate 30 -i tween/%04d.png -c:v libx264 -crf 18 -pix_fmt yuv420p tween.mp4
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py video \
--model rife --in ep01_24p.mkv --out ep01_60p.mp4 \
--fps 60 --rife-model rife-anime-v4.6
uv run ${CLAUDE_SKILL_DIR}/scripts/interp.py check
rife-ncnn-vulkan: command not foundCause: binary not installed.
Solution: Grab a release from https://github.com/nihui/rife-ncnn-vulkan/releases, unzip, add the folder to PATH. Or uv run .../interp.py install rife.
failed to load model: rife-v4.6Cause: -m model name expects a directory named rife-v4.6 under the binary's models/ path.
Solution: The ncnn release zip includes several models pre-staged. If you moved the binary without its models/ folder, re-unzip and keep them together. Or pass -m /abs/path/to/rife-v4.6.
Cause: remuxed the 2x frames at the source fps instead of the target fps. ffmpeg -framerate 24 -i out/... plays 2x frames at 24 fps → 2x duration.
Solution: use -framerate 60 (or the target you asked for) on the reassembly step. The driver handles this — don't roll your own.
Cause: the slow-mo path kept the original audio at native rate while the video timeline stretched.
Solution: either drop audio (script default) or run atempo=1/factor on audio and remux.
Cause: the two input frames span a scene change. The model tries to interpolate between unrelated content.
Solution: run media-scenedetect to find cuts, then process each scene independently (or skip interpolation across cuts).
Unable to load modelCause: --model_path not pointing at a saved_model directory (must contain saved_model.pb + variables/).
Solution: download from the FILM releases and point at the right style subfolder (e.g. .../Style/saved_model).
references/models.md.references/LICENSES.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
frame-interpolation, video-smoothing, slow-motion, rife, film, ai-video
npx claudepluginhub damionrashford/media-os --plugin media-os110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
Other plugins' skills for the same job