
cinema-ir
com.shotrig/cinema-ir
Compile 8D Cinema IR prompts across 12 AI video models, audit rights, and estimate usable-min cost.
Documentation
ShotRig Cinema IR v1.0 (video-to-prompt Skill · Open Schema · Local MCP)
Open 8-Dimension Video-to-Prompt JSON Schema, Agent Skill (SKILL.md), zero-dependency 12-model compiler CLI, and offline stdio MCP Server maintained by ShotRig — the AI cinema benchmark studio and Video to Prompt Generator.
Need automated synchronized audio + visual extraction from a raw MP4, MOV, WebM, or public YouTube URL into Cinema IR JSON?
Try the live zero-login extractor at shotrig.com/video-to-prompt (zero video retention, browser keyframe strip, JSON/CSV shot sheet, and I2V Start-Frame + Motion pair).
Install in 5 Seconds
1. As an AI Agent Skill (Claude Code, Codex CLI, Cursor, Gemini CLI, OpenClaw, Windsurf, Copilot)
npx skills add geegl/shotrig-cinema-ir
Or via Claude Code self-hosted marketplace:
/plugin marketplace add geegl/shotrig-cinema-ir
2. As a Local Zero-Dependency MCP Server (stdio, Zero API Keys, Zero Network)
{
"mcpServers": {
"shotrig-cinema-ir": {
"command": "node",
"args": ["/path/to/shotrig-cinema-ir/scripts/mcp-server.mjs"]
}
}
}
Or run via Docker (non-root node:22-alpine, zero secrets):
docker build -t shotrig-cinema-ir . && docker run -i --rm shotrig-cinema-ir
Exposed MCP Tools (4):
validate_cinema_ir— validate an 8-dimension Cinema IR v1.0 JSON object.compile_video_prompt— compile syntax-native prompts across 12 AI video models (universal,veo,sora2,kling,seedance2,seedance,wan3,minimax_h3,magi2,vidu,grok,runway, orall).compile_i2v_pair— split Cinema IR into a zero-motion static Frame-1 prompt + camera/subject motion prompt + 6-layer audio cue summary.estimate_shot_complexity— classifylean | mid | high_crafttier and check single-pass duration caps across all 12 generators.
3. As a Zero-Dependency CLI
npm run demo
npm test
node scripts/validate-and-compile.mjs examples/briefcase-handoff.cinema-ir.json kling
Why Cinema IR v1.0 Exists
Most video-to-prompt tools only sample 5–6 static frames and emit vague prose ("cinematic, 4k, moody lighting"), causing camera axis flips, prop hand-swaps, character cloning, and broken audio sync across rerolls.
ShotRig separates what physically happens in the shot (an 8-dimension intermediate representation in schema/cinema-ir.v1.schema.json) from target model prompt dialect:
shot_sequence— timestamped beats with max 1 primary camera move per beatcamera_optical— dominant shot size, angle, POV, dolly parallax vs optical focal behaviorspatial_topology— screen direction, 180-degree axis side, anchored spatial landmarkssubject_prop_state— exact character count lock, hand-to-prop ownership bindings, state persistence, multimodal reference slotslighting_surface— motivated key light, color palette anchor, exposure contrast, surface texture budgetsoundscape_6_layer— dialogue policy (none | single_mouth_lock | off_screen_vo | multi_speaker_warning), foreground SFX, room tone, music cue, audio transitionnegative_anti_drift— negative performance locks, anti-cloning/reset rules, clean-frame deliverableproduction_feasibility—lean | mid | high_craftcomplexity tier, failure risks, model compatibility warnings
Supported 12 AI Video Model Compilers
- Universal (
universal) - Google Veo 3.1 (
veo, <=8s, native audio) - OpenAI Sora 2 (
sora2, <=20s, physics-cause brief + native audio) - Kling 4.0 / 3.0 (
kling, 30s / 15s, separate Positive + Negative blocks + Omni Refs) - Seedance 2.0 Standard / Fast (
seedance2, <=15s, up to 12@Image_Nrefs) - Seedance 2.5 (
seedance, <=30s,[0s]timestamped + up to 50@Image_Nrefs) - Wan 3.0 (Alibaba) (
wan3, <=30s, up to 20 refs) - MiniMax H3 (Hailuo) (
minimax_h3, 5–15s, 2K stereo, 12 Omni-Refs) - MAGI 2 (Sand.ai) (
magi2, <=30s, chunked 1080p/25fps, 20 refs) - Vidu Q3 / Q4 Preview (
vidu, 1–16s, positive-only,@1/@2refs) - Grok Imagine Video 1.5 (
grok, <=15s base + 2–10s extend, 14 refs) - Runway Gen-4.5 / Gen-4 (
runway, <=10s, Keyframe Reference + Motion split)
Ecosystem Links
- Live Video-to-Prompt Workbench (Zero Video Retention): https://shotrig.com/video-to-prompt
- ShotRig Cinema Benchmark Studio: https://shotrig.com
- Empirical Retry-Cost Calculator (615 open AI film projects): https://shotrig.com/calculator
- AI Video Commercial Rights & Privacy Matrix: https://shotrig.com/matrix
License
MIT — see LICENSE.
No installation packages available.