---
name: subhaminion-launch-video-2
title: launch video
kind: skill
description: >
  Make a polished, music-synced product launch film (kinetic type + animated UI
  mockups) as MP4, optionally modeled on a reference video the user uploads.
updated: 2026-12-05
authored_by: subhaminion
author_url: https://github.com/subhaminion
source_url: https://github.com/subhaminion/launch-video-skill/tree/HEAD/skill-launch-video
brought_by: kt
---

# Launch Video

This skill makes an Apple/Linear-style product launch film:
- bold kinetic typography
- recreated product UI that animates in
- scene cuts that land on the music's beats
- an end card

Every frame is drawn as HTML at a timestamp `t`, screenshotted with headless Chrome, and encoded with ffmpeg. Renders are deterministic, and one scene can be re-rendered on its own in seconds. A typical film is 1920×1080 at 30 fps, 45–75 s long, and takes about 4 minutes to render on 2 cores.

Bundled files (paths are relative to this skill's folder):

| File | Purpose |
|---|---|
| `scripts/analyze_reference.sh` | Reference video → format, contact sheet, hard-cut times, extracted soundtrack |
| `scripts/beats.py` | Music → tempo, beat times, per-second energy, strongest hits |
| `scripts/render.py` | `film.html` → checking stills, or per-scene MP4s |
| `scripts/assemble.sh` | Joins scenes and adds music → silent and scored MP4s, plus a QA sheet |
| `templates/film.html` | Starter page: animation helpers + Tease, Promise and Close scenes |
| `examples/loominote-film.html` | A complete 70 s film with all 13 storyboard patterns. Read it before writing scenes and copy patterns from it. |

## Requirements
- `ffmpeg`
- Python 3 with `playwright` (and `librosa` if there is music)
- Chrome or Chromium. `render.py` finds a system Chrome, or uses `python3 -m playwright install chromium`.
- Node/npm, for fonts. Install them with `npm i @fontsource/plus-jakarta-sans @fontsource/jetbrains-mono` in the working folder. Google Fonts is often unreachable from sandboxes.

## 0. Gather (ask at most once, in one question round)
- **Product**: name, tagline, 4–8 key features, and 1–3 hero claims. If it has a website, fetch it and use its exact headlines and feature names.
- **Reference video** (optional): the style to match.
- **UI**: real screenshots, or recreated mockups (the default).
- **Brand**: logo, accent colors, font. If none are given, use a wordmark and a two-color gradient, and call them placeholders.
- **Audio**: a track they supply, the reference's track, or silent. A reference's soundtrack belongs to someone else. It is fine as a temp track, but always also ship a silent version, and warn that posting with it risks mutes or takedowns.

## 1. Analyze the reference (if given)
Run `bash scripts/analyze_reference.sh ref.mp4 ref`, then read `ref/contact.jpg`. Note:
- how backgrounds alternate (black, white, brand gradient)
- the type scale
- whether it uses single giant words or full sentences
- card styles
- how UI is revealed (scale-in, slide, blur-in, typing)
- what the end card looks like
- the hard-cut times, which you can reuse

## 2. Beat grid (if there is music)
Run `python3 scripts/beats.py music.m4a`. Then:
- Put scene boundaries on beats, ideally on the strongest hits or on the reference's own cut times.
- Use quiet sections for the tease.
- Land the biggest reveal on the first drop, and the statement scene plus feature montage on the second.
- End the film when the track ends.

## 3. Storyboard
Write a table with these columns: scene · start · end · background · on-screen copy · UI · motion. This default 13-beat arc fits most launches. Every pattern is implemented in `examples/loominote-film.html` (scene functions `s1`–`s13`).

| # | Role | Pattern |
|---|------|---------|
| 1 | Tease | Black + drifting blurred brand orbs; "Introducing" letter-spacing tightens in |
| 2 | Promise | White; hero headline word by word; key phrase in gradient text |
| 3 | Core loop | Three cards (input · live process · output) scale/slide in; slow camera push |
| 4 | Hero word | Black; giant word blurs in + swoosh arc drawn via stroke-dashoffset → "with <AI feature>" + glowing icon ring → prompt bar typing a real user question |
| 5 | Proof | Lines fan from the prompt to 3 source nodes → answer streams in with citation chips |
| 6 | Outcome | The "job done" UI: checklist ticking + generated artifact; cursor presses the CTA → success state |
| 7 | Pivot | Full brand-gradient statement ("Great at X. Good at everything else.") |
| 8 | Breadth | Dark dotted grid: secondary features (flip card, quiz, mind map drawing out) |
| 9 | Reach | White; center phrase with lines/dots to integration name pills (text, not third-party logos) |
| 10 | Action | One huge pill CTA; cursor glides in, press, ripple rings, button turns live |
| 11 | Platform | Phone rises, counters count up, rows stagger in; zoom out to the other devices + caption |
| 12 | Tagline | Animated vertical-stripe gradient; tagline on two lines |
| 13 | Close | Black; wordmark/logo blurs in, subline, store CTA chip, fade to black |

Trim or merge scenes to fit the track. Copy and content rules:
- Keep each line to 3–6 words.
- Use concrete sample data in the UI (names, times, real-sounding tasks), and tell the user it is illustrative.
- Never use third-party logos or characters; name integrations in text.
- Match the reference's rhythm and craft, never its brand, colors or wording.

## 4. Build
1. Copy `templates/film.html` and `scripts/render.py` into a working folder, and install the fonts there.
2. Set the brand constants at the top of the script and the `.gt` gradient in the CSS.
3. Write one scene function per storyboard row and list them in `SCENES` as `[start, end, fn]`.

Craft rules:
- **Scenes are pure functions** of `t`. No CSS animations; rebuild the scene's HTML every frame.
- **Every element gets an entrance**: `rv`, an `eob` scale-in, or a slide plus fade, staggered 0.1–0.2 s apart.
- **Every scene has slow camera motion**: `cam` from 1→1.04, or 1.06→1.
- **Cut hard and on the beat.** Phases inside a scene also change on beats (`if (t < 2.69) …`).
- **Hold each line** for at least 1.2 s after it has fully appeared.
- **Alternate light and dark scenes.** Use the brand gradient only for emphasis: key words, CTAs, statement scenes.
- **Keep the UI alive with `t`**: timers, waveforms, pulsing record dots, count-ups, typing at 24–60 chars/s.
- **No `backdrop-filter`**: it is slow. Use gradients and shadows instead.
- **Icons** are small inline SVGs; there is a set in the example.

## 5. Check, then render
1. Render stills at each scene's busiest moment: `python3 render.py stills 0:2.5 1:4 2:3.5 …`
2. Tile them: `ffmpeg -pattern_type glob -i 'stills/*.jpg' -vf scale=640:-1,tile=3x6 -frames:v 1 sheet.jpg`
3. Look at the sheet, and open two or three stills at full size.
4. Fix wrapped headlines (`white-space:nowrap`), overlaps, clipped text and empty layouts.

Then do the full render, split across two background workers:
```bash
python3 render.py scenes 0 1 2 3 4 5 &
python3 render.py scenes 6 7 8 9 10 11 12 &
wait
```
Frame boundaries use `round(t*30)`, so the frame counts sum exactly to the track length.

## 6. Assemble
`bash scripts/assemble.sh <Name> music.m4a` writes `out/<Name>_launch.mp4` and `out/<Name>_launch_silent.mp4`, plus `final_sheet.jpg`. Read the sheet to QA the result.

## 7. Revise cheaply
- **One scene's copy, layout or brand**: edit that function, re-render that scene, then re-run `assemble.sh`.
- **New music**: re-run `assemble.sh` with the new track. If the tempo differs, move the `SCENES` boundaries to the new beats and re-render.
- **Vertical 9:16 cut**: set the viewport and body to 1080×1920 and reflow the scenes into one column. Never crop the 16:9 render.
- **Logo arrives later**: add an `<img>` to the Close scene, and to the Tease if you like.

## 8. Deliver
Send both MP4s with a short note covering:
- the film's arc
- what is a placeholder (logo, colors, sample data)
- the music caveat, if a borrowed track was used
- one next step

Keep `film.html` so later edits are fast.
