Communitygithub.com

video-to-prompt

Deconstruct reference videos into the open 8-dimension ShotRig Cinema IR v1.0 JSON schema and compile syntax-native prompts across 12 AI video models (Veo 3.1, Sora 2, Kling 4.0/3.0, Seedance 2.0/2.5, Wan 3.0, MiniMax H3, MAGI 2, Vidu Q3/Q4, Grok Imagine 1.5, Runway Gen-4.5) plus I2V Start-Frame + Motion pairs. Use when turning a reference video, storyboard, or shot brief into production-ready AI video prompts without camera drift or prop resets.

video-to-prompt란 무엇인가요?

video-to-prompt is a Claude Code agent skill that deconstruct reference videos into the open 8-dimension ShotRig Cinema IR v1.0 JSON schema and compile syntax-native prompts across 12 AI video models (Veo 3.1, Sora 2, Kling 4.0/3.0, Seedance 2.0/2.5, Wan 3.0, MiniMax H3, MAGI 2, Vidu Q3/Q4, Grok Imagine 1.5, Runway Gen-4.5) plus I2V Start-Frame + Motion pairs. Use when turning a reference video, storyboard, or shot brief into production-ready AI video prompts without camera drift or prop resets.

지원 대상✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/geegl/shotrig-cinema-ir/tree/HEAD/skills/video-to-prompt

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

ShotRig Video-to-Prompt & Cinema IR Compiler

Turn any reference video or director's shot brief into a structured 8-dimension Cinema IR v1.0 JSON and compile model-native prompts for 12 AI video generators — eliminating vague "cinematic, 4k" fluff, camera axis flips, prop hand-swaps, and audio/lip-sync drift.

Need automated synchronized audio + frame extraction from a raw MP4, MOV, WebM, or public YouTube URL?
Run the free zero-login extractor at shotrig.com/video-to-prompt (zero video retention, browser keyframe strip, JSON/CSV shot sheet, and I2V pair).


Workflow

Step 1 — Build or Import an 8-Dimension Cinema IR v1.0 JSON

Ensure the shot specification locks all 8 dimensions (see schema/cinema-ir.v1.schema.json or references/models-12.md):

  1. Shot Sequence (shot_sequence): Timestamped beats (time_range, duration_sec, shot_size, camera_motion, primary_action, transition_out). Max 1 primary camera move per beat.
  2. Camera & Optical Psychology (camera_optical): Dominant shot size, angle, POV mode, true dolly parallax vs optical focal length, motion rule.
  3. Spatial Topology (spatial_topology): Screen direction, 180-degree axis side, fixed spatial landmarks.
  4. Subject & Prop State (subject_prop_state): Exact character count lock (character_count_lock), hand-to-prop ownership bindings, persistent state variants (dirt, wetness, wear), and multimodal reference slots (asset_slot_map).
  5. Lighting & Surface (lighting_surface): Physical key-light motivation, color palette anchor, exposure contrast, optical-distance surface texture budget.
  6. 6-Layer Soundscape (soundscape_6_layer): dialogue_policy (none | single_mouth_lock | off_screen_vo | multi_speaker_warning), up to 2 foreground SFX, room tone ambience, music cue, audio transition.
  7. Negative & Anti-Drift Locks (negative_anti_drift): Character restraints (does not speak), anti-cloning/reset rules, clean-frame deliverable (no captions, subtitles, or watermarks), style exclusions.
  8. Production Feasibility (production_feasibility): Complexity tier (lean | mid | high_craft), primary failure risks, recommended models, boundary warnings.

Step 2 — Validate & Compile Locally (Zero Dependencies)

Run the included zero-dependency Node.js CLI against any .cinema-ir.json file:

# Compile for all 12 AI video models
node scripts/validate-and-compile.mjs examples/briefcase-handoff.cinema-ir.json all

# Or target one specific generator
node scripts/validate-and-compile.mjs shot.cinema-ir.json kling
node scripts/validate-and-compile.mjs shot.cinema-ir.json veo
node scripts/validate-and-compile.mjs shot.cinema-ir.json sora2
node scripts/validate-and-compile.mjs shot.cinema-ir.json seedance

Or connect the bundled local stdio MCP server (node scripts/mcp-server.mjs) to expose validate_cinema_ir, compile_video_prompt, compile_i2v_pair, and estimate_shot_complexity directly inside Claude Code, Codex, Cursor, or Gemini CLI.

Step 3 — Match Model Duration & Reference-Slot Guardrails

Before rendering, verify the clip duration against target-model single-pass caps (full table in references/models-12.md):

  • <=8s: Google Veo 3.1 (native audio, max 2 foreground SFX)
  • <=10s: Runway Gen-4.5 / Gen-4 (separate static Keyframe brief + motion-only directive)
  • <=15s: Seedance 2.0 Std/Fast (up to 12 @Image_N refs), MiniMax H3 (12 Omni-Refs), Grok Imagine 1.5 (14 refs + extend 2–10s), Kling 3.0
  • <=16s: Vidu Q3 / Q4 Preview (positive-only prompt, @1/@2 refs up to 15 images + 3 audio)
  • <=20s: OpenAI Sora 2 (physics-cause cinematographer shot brief + native audio)
  • <=30s: Kling 4.0 (separate Positive + Negative blocks), Seedance 2.5 ([0s] timestamped + up to 50 refs), Wan 3.0 (20 refs), MAGI 2 (chunked 1080p/25fps, 20 refs)

Step 4 — Budget Retry Spend Before Rendering

Model realistic retry multipliers (615-project empirical baseline: median 267 renders per short) at shotrig.com/calculator and verify vendor commercial rights & training opt-out policies at shotrig.com/matrix.

관련 스킬