claude-skills/video/README.md
Claude cf29fbcc5c
feat(video): video-studio plugin, previz-to-final release 1
New top-level video/ domain with one plugin, video-studio, that takes a
brief to a finished MP4 through a free code animatic:

- video-director: brief gate (aspect, VO budget, refusals), context: fork,
  upgrade protocol (quote per shot, explicit yes, no auto-retry)
- video-beat-board: times beats against the brief at 150 wpm VO and
  180 wpm reading, refuses scripts that do not fit, emits scene.v1
- video-animatic: scene.v1 JSON -> seekable HTML (window.__seek) ->
  frame-exact Playwright render; motion linter ML1-ML10 (readability,
  WCAG 2.3.1 flashes, 1.4.3 contrast, safe areas); keyframes and a
  provider-neutral shot manifest for optional AI shot upgrades
- video-conform: one ffmpeg pass (H.264/yuv420p/faststart, AAC 48 kHz,
  loudness to a named target), SRT captions, post-encode QC

7 stdlib scripts; no script calls a generation service. Registered in
marketplace, docs, harness mirrors, eval cases; counters updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFGMZHeNN9DbUnmsakZ
2026-11-17 08:10:29 +00:00

69 lines
3.4 KiB
Markdown

# video-studio
Make short films, explainers, teasers and animated charts the way previz
studios do: lock story, timing and framing in a free code animatic, then spend
on generated footage only for the shots you approved.
```
brief ──► beats ──► code animatic ──► review ──► (optional) AI shot upgrades ──► conform ──► MP4 + captions
gate timing seekable HTML, you quote per shot, generate loudness,
frame-exact render approve only after a yes QC, aspects
```
## What is in it
| Skill | Tools | Does |
|---|---|---|
| `video-director` | `brief_gate.py` | Orchestrates the pipeline; derives aspect and VO word budget; asks open questions; refuses out-of-scope briefs and AI likeness without consent |
| `video-beat-board` | `beat_board.py` | Times beats (150 wpm VO, 180 wpm reading) and refuses a script that does not fit, naming the words to cut; emits `scene.v1` |
| `video-animatic` | `timeline_compiler.py`, `frame_renderer.py`, `motion_linter.py`, `shot_manifest.py`, `scene_model.py` | Compiles `scene.v1` to a seekable HTML animatic, renders it frame-exact with Playwright, blocks unreadable or flashing cuts, builds the provider-neutral upgrade manifest |
| `video-conform` | `conform.py` | Mixes VO and music, normalizes loudness (AES TD1008 / EBU R 128), writes or burns captions, QC-checks the MP4 |
Agent: `cs-video-director`. Commands: `/cs-video`, `/cs-animatic`, `/cs-conform`.
## Quick start
```bash
pip install playwright && python -m playwright install chromium # or Node Playwright
S=video/skills
python3 $S/video-beat-board/scripts/beat_board.py --brief video/assets/example-brief.json \
--beats video/assets/example-beats.json --out film/scene.json
python3 $S/video-animatic/scripts/timeline_compiler.py --scene film/scene.json --out film/animatic.html
python3 $S/video-animatic/scripts/frame_renderer.py --html film/animatic.html --fps 12 --mp4 film/animatic.mp4
```
Open `film/animatic.html` in a browser to play and scrub it.
## Requirements
- Python 3.9+ (stdlib only in every script)
- Playwright (Python or Node) with Chromium, for rendering frames
- ffmpeg, for encoding and conform
## Generated footage, credits and data flow
Release 1 makes every film without any generation service. Shots marked
`upgrade: true` stay greybox placeholders until you choose to upgrade them.
When you do, the plugin uses a video-generation MCP **you** connected
(Higgsfield, ElevenLabs, Adobe, Canva or another) under **your** account and
credits. Before anything is generated it gets the provider's price for every
shot, shows the total against the brief's `budget_credits`, and waits for your
yes. It never retries a timed-out job on its own.
What leaves your machine, and only on an upgrade: the shot prompt, its
duration and aspect ratio, and any keyframe stills, sent to that provider.
Nothing is sent to this project or anyone else. Label generated footage as
AI-generated where you publish it.
## Roadmap
- **Release 2:** budget gate, drift check (does a generated plate keep the
animatic's framing?), first provider adapter, after a measured test on a
real 8-shot brief.
- **Release 3:** compositing presets for code layers over plates, more
adapters, a shot bible for multi-character continuity.
## License
MIT. Independent implementation; no code from Claude Motion, HyperFrames or Remotion.