> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How the Demo Studio pipeline builds a video

> The seven Demo Studio steps from question card to delivery: brief, inputs, script, analysis, scenes, render with acceptance gate, and delivery.

Demo Studio runs the same seven steps for every video. Each step is one engine command, so a later session can pick up where an earlier one stopped.

**1. Brief**

After the question card, Claude writes `brief.yaml` (project name, audience, key message, style preset, autopilot, video use, UI source and licences) and a readable `brief.md` with the same facts plus a decision log.

**2. Inputs**

Claude gathers the UI, brand, voice and music. If there's no UI, it builds a concept prototype; if there's no logo, a placeholder wordmark; if the music library has nothing that fits, it generates a track. See [Inputs and brand](https://docs.khanhng.com/demo-studio/inputs-and-brand.md).

**3. Moment inventory and script**

Claude lists every number, score, badge and action on the key screens and marks each one **spoken**, **shown** or **skip**. A key metric that's only shown and never spoken is the most common reason for an extra round, so the important ones are spoken.

The story follows a fixed arc: hook question, brand line (the name lands on a music hit), one sentence per key moment (submit, processing, result and its quality signals, evidence, human decision, what happens next), closing value line, end card. The budget is about 2.7 words per second.

**4. Analyse and plan**

The engine analyses the voice and music, captures the UI states, and plans a timeline that places each sentence and cuts the music on bar lines.

**5. Scenes and the fast loop**

Claude writes `scenes.yaml` and runs `compile`, which checks layout and coverage in about 3 seconds and renders a preview sheet. Claude fixes every layout or coverage failure before rendering. In **Review storyboard first** mode, this is where it stops for your approval.

**6. Render, export and acceptance**

`render` mixes the audio and renders the captioned and clean videos. `export` packages the deliverables and runs the [acceptance gate](https://docs.khanhng.com/demo-studio/acceptance.md). If the verdict is NOT ACCEPTED, Claude fixes the failing items and repeats, at most twice on its own.

**7. Deliver**

Claude copies the version and inputs to `~/Documents/Video/<Project>/`, updates the brief, sends the captioned video and the acceptance report, and tells you what to check by ear and the licence status.

## Style presets

| Preset | Length | What it is |
| - | - | - |
| Narrated 3D cut | about 55 s (45 to 60 s) | Narration over the real UI with 3D camera moves synced to the music |
| Walkthrough | 60 to 90 s | A slower narrated tour of the product |
| Launch cut | about 30 s (25 to 35 s) | Music only, with headlines on screen |

## What's on screen

The compositor draws three things over a soft brand background:

1. **Motion graphics:** evidence cards on a thread for the hook, a 3 to 6 step "lane" with the logo for the brand line and the close, and chips.
2. **3D UI planes:** each plane is a crop of a real UI capture. Highlighted parts lift toward the camera.
3. **Kinetic headlines and captions.**

Scene times are written against the narration and the music (for example "the word *evidence* in sentence 4" or "bar 9"), so scenes follow the voice and the beat automatically. See the [scene spec](https://docs.khanhng.com/demo-studio/scene-spec.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.