🎬 RVM + Chroma Studio MVP

Robust Video Matting · Chroma key · FFmpeg compositor · Gradio UI

What it does

Studio matting pipeline with four switchable modes: chroma, RVM, hybrid, Replicate. Per-set presets declare the protected objects (gold balloon, teal fur seat, hair, skin, polka-dot patterns) so they survive the key.

  • Auto-detected matting offsets shown on every run
  • Object-aware corner floodfill + R-dominance kill for tricky gaps
  • Foreground scale + anchor + offset for "approaching" effects
  • OBS streaming output (UDP / RTMP)
  • Fully offline-capable Docker image

Try the demo

The Gradio UI runs on Hugging Face Spaces (or your own server).

Open the demo →

Source on GitHub

Run locally

Clone, install, launch:

git clone https://github.com/maibauntourph-collab/rvm-ffmpeg
cd rvm-ffmpeg
pip install -r requirements.txt
python app.py

Opens at http://localhost:7860.

Deploy your own

Three deployment paths included:

  • Hugging Face Spaces — push the repo, public URL automatic
  • Cloudflare Tunnel — ./scripts/deploy_cloudflare.sh
  • Docker (offline) — docker build -t rvm-studio .