Repository avatar
AI Tools
v1.1.0
active

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)

License: MIT skills.sh

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, or all).
  • 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 — classify lean | mid | high_craft tier 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:

  1. shot_sequence — timestamped beats with max 1 primary camera move per beat
  2. camera_optical — dominant shot size, angle, POV, dolly parallax vs optical focal behavior
  3. spatial_topology — screen direction, 180-degree axis side, anchored spatial landmarks
  4. subject_prop_state — exact character count lock, hand-to-prop ownership bindings, state persistence, multimodal reference slots
  5. lighting_surface — motivated key light, color palette anchor, exposure contrast, surface texture budget
  6. soundscape_6_layer — dialogue policy (none | single_mouth_lock | off_screen_vo | multi_speaker_warning), foreground SFX, room tone, music cue, audio transition
  7. negative_anti_drift — negative performance locks, anti-cloning/reset rules, clean-frame deliverable
  8. production_feasibility — lean | mid | high_craft complexity 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_N refs)
  • Seedance 2.5 (seedance, <=30s, [0s] timestamped + up to 50 @Image_N refs)
  • 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/@2 refs)
  • 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

License

MIT — see LICENSE.

No installation packages available.

Remote