SHA256
1.4 KiB
1.4 KiB
Getting Started
Prerequisites
-
A Rust toolchain (
cargo,rustc). -
ffmpeg/ffprobeonPATH— video decode shells out to the CLI and pipes raw frames; no native FFmpeg bindings or dev headers are needed. -
A GPU with a WebGPU backend — Vulkan (Linux/Windows), Metal (macOS), DX12 (Windows), or WebGPU/wasm. On Linux, RADV (Mesa) or AMDVLK works.
-
For the masks stage: an ONNX export of a YOLO segmentation model (e.g.
yolo11x-seg.onnx). The.ptis not loadable in Rust:yolo export model=yolo11x-seg.pt format=onnx imgsz=1280 dynamic=True
Build
Masks are enabled by default, so a plain build is the full pipeline:
cargo build
Lighter build without ONNX Runtime (no masks stage):
cargo build --no-default-features
Build with the native GUI:
cargo build --features gui
First run (sanity check)
cargo run -- rig --self-test # 6 check groups; should pass
First real run
cargo run -- all --project-dir out --video day1.mp4 \
--mask-model yolo11x-seg.onnx --mask-device rocm --mask-imgsz 1280