SkillVideo

Funnel videos

28 min readvideo.md

How to make the videos a funnel page plays: a 45–90 s sales video, VSL, product demo or webinar trailer with a voiceover, burned-in captions and the brand on screen, short video ads, and the silent loops that sit behind a hero. A video is made from the page it plays on (its offer facts, theme, images and button) and from the FunnelDNA video library: finished, themable scenes (kind frame) and short sequences of them (kind clip). Start from the library; build a scene by hand only when no frame covers it.

The method is code-first: the picture is a Remotion project (React components rendered frame by frame), the voice comes from a text-to-speech API with word timestamps, and one timing file drives the scenes, the on-screen words, the captions and the .vtt track. Any TTS provider and any image or video model works. Remotion is free for individuals and small companies; check its licence terms for your company size.

What each video is for#

Kind Plays on Job Length
Sales video Sales page, free-plus-shipping page Sell the page's one offer, end on its button. 60–90 s
VSL The first page of a funnel that leads with video (application, consult, local estimate) The founder makes the case in their own voice, then asks for the one action. 45–90 s here; long-form VSLs are a different job
Product demo Demo or trial page Show the real product doing the job, screen by screen, then the trial or price. 60–90 s
Webinar trailer Registration page Sell the seat, not the product: the problem, the promise of the training, when and how long, the button. 45–70 s
Welcome video Thank-you or confirmation page Confirm, set the first step, point to the next event. 20–40 s
Video ad The feed, sending traffic to the funnel's first page (see ads.md for angles) Hook, problem, offer, button; reads with the sound off. 6–15 s; trailers 30–45 s
Background loop Hero, mechanism or closing band Atmosphere. No words, no sound, no content. 4–8 s, seamless

One video sells one offer. A page has at most one video with sound. Background loops are separate, see Background loops.

The script#

A funnel video is direct-response copy read aloud. Use the page's own argument in the page's own words (direct-response.md), in this order:

Beat What it does Time (of 75 s)
Hook One line that names the reader's moment or the big promise. The first three seconds decide whether they keep watching. 3–5 s
Problem The situation, felt: two or three concrete images, in the reader's words. 8–12 s
Turn Who is talking and why they know: the founder's one credential and the moment they found the other way. 6–10 s
Mechanism The way it works, named, in three or four steps or features the viewer can see. 15–25 s
Offer What they get, the price (or free), shipping, delivery, dates. Exactly the page's facts. 6–10 s
Proof Only real, supplied proof: a number with its source, a short quote. Leave the beat out when there is none. 0–8 s
Risk reversal The guarantee in one plain sentence, in the page's terms. 5–8 s
CTA The button's exact label, said aloud and shown as the button, plus the reason to act now. 4–6 s

Real examples of the arc, one line each:

  • Free book: wide awake at 10 a.m. after a night shift → the drive home, the loud street → twenty-two years of night shifts became this book → four first-night fixes → free hardcover, $7.95 shipping → read it 30 days or your shipping back → "Tap Send Me My Free Copy."
  • Local service VSL: most remodel bids change once the walls come down → the founder's fifteen years on site → the low-bid story → walk the room, a written plan in a week → the fixed-price promise → who it's for → "Get My Free Estimate."
  • Product demo: still texting eight cleaners at 10 p.m. → the weekly board → the route rebuilds after a cancellation → the booking page → the invoice sends itself → we import your clients → "Start My Free Trial."
  • Webinar trailer: your site has pages Google will never rank → more posts, more keywords, no change → what two in-house jobs taught her → the three pages the training reveals → about fifty minutes, free, pick a session → "Save My Seat."

Length. Speech runs about 150–165 words a minute. A 75 s video is about 160–180 spoken words plus pauses. Write the script, read it aloud with a timer, cut until it fits. Cut adjectives first, never the offer facts.

The CTA matches the page. The video says and shows the page's button label word for word ("Send Me My Free Copy", not "grab your copy"). If the page changes its button, re-voice the CTA line.

Writing for voice#

  • Short sentences. One idea per sentence, most under 15 words. Fragments are fine: "Paraffin wax. Metal-core wicks."
  • Spoken numbers. Write numbers the way they should be said when the voice might stumble: "fifteen years", "two to three business days", "ten p.m.". Prices and short figures ("$7.95", "22 years") usually read correctly; check the take. The captions can still show digits.
  • Contractions and "you". "You'll", "it's", "I'll". Talk to one person.
  • No stage directions or symbols in the text sent to TTS: no brackets, arrows, emoji or headings.
  • Ellipses for a beat. "Tap Save My Seat… and find the three pages your site is missing." A comma is a short pause, a full stop a longer one.
  • First person when the founder speaks. "I worked twenty-two years as an ER nurse, most of them on nights." A generated voice is a narrator standing in for the founder, never a fake testimonial.
  • One script file. Keep every line in one JSON file, one entry per scene, so a changed line re-voices only that scene:
{
  "voice_id": "<provider voice id>",
  "model_id": "<tts model>",
  "settings": { "stability": 0.5, "similarity_boost": 0.8, "style": 0.2, "speed": 1.0 },
  "scenes": [
    { "id": "hook", "text": "Still wide awake at 10 a.m. after a night shift?" },
    { "id": "problem", "text": "You drive home with the sun in your eyes. The street gets loud." },
    { "id": "cta", "text": "Tap Send Me My Free Copy, and start reading before your next shift." }
  ]
}

Scene planning and pacing#

One voice line is one scene. Plan each scene as a row before writing code:

Scene Voice On screen Visual change
hook "Still wide awake at 10 a.m.…" A huge clock rolls 09:57 → 10:00; the question lands word by word Night palette
problem "You drive home…" Photo of the drive home, slow push-in; key words highlighted Photo with a side scrim
mechanism "Light. The 3 a.m. meal…" Four checklist rows tick on as each is named Colour starts to warm
offer "The hardcover is free…" Book cover large, "FREE + $7.95 shipping" Dawn palette
cta "Tap Send Me My Free Copy…" The page's real button, guarantee line, logo Full daylight, hold 3 s
  • Picture leads voice. Start each scene about 0.15 s before its voice line; give the first scene 0.5–0.6 s of picture before anyone speaks.
  • Breathe after lines. Hold 0.45–0.75 s after each line so the visual lands. Hold the last scene 3 s after the CTA so the button can be read and the video does not end mid-word.
  • Crossfade scenes over about 10 frames (a third of a second). No wipes, spins or star transitions.
  • Words land as they are spoken. Kinetic type appears word by word on the frame each word starts, from the timing file. Highlight two or three words per scene (the number, the pain, the offer) in the accent colour.
  • Something moves every second. A slow push-in on a still (scale 1.02 → 1.10 over the scene), a counter, a checklist ticking, a UI screen updating. Never a static slide with a voice over it.
  • Big type. Headlines on a 1920×1080 frame sit at 90–130px, supporting lines at 50–60px, small labels no smaller than 28px. The video will be watched on a phone in a page column.
  • Keep text out of the caption band: the bottom 180px in 16:9; the top 250px and bottom 640px in 9:16, where the platform's name, buttons and the captions sit.

Start from the library#

Each library frame is one animated scene with one beat's job: a kinetic hook question, a clock rolling to the stuck moment, the offer stack ticking in and totalling, a guarantee seal, the end card with the page's real button, burned captions, a lower third. Each clip is a short video on one storyboard that sequences Live frames (a 15-second ad, a VSL opener, a webinar trailer, a full sales video, a background loop, a 6-second bumper).

  • Every frame ships in 16:9 (1920×1080) and 9:16 (1080×1920); ad clips add 1:1. It re-composes per format.
  • A frame is a pure function of the frame number, at 30 fps. It holds still for its last 12 frames, so scenes crossfade cleanly, and something moves every second before that.
  • Its video export gives fps, the default durationInFrames, its formats and a poster frame. The specimen lists keyframes (first readable frame, middle, final hold).
  • It takes its copy and images as props and its look from the brand theme, like a page piece. A frame with words (the voice timings for its scene) lands its words as they are spoken; without them it times them evenly.
  • Proof props (quotes, names, numbers) default to empty and draw nothing when empty.
Tag Values
beat hook, problem, turn, mechanism, offer, proof, risk, cta, utility
archetype The scene type, such as kinetic-type, counter, ledger-stack, end-card, captions
plays_on The page type the video plays on, or the page a video ad drives to

The path.

  1. Write the script and the scene plan (above), from the page's facts and button.
  2. Pick one frame per scene by beat. A clip is a ready storyboard for a common length; start from it and swap its frames or props to fit the script.
  3. Write storyboard.json: one entry per scene, in order.
[
  { "frame": "video/hook-kinetic-question", "seconds": 3.5,
    "props": { "line": "Still wide awake at 10 a.m. after a night shift?", "highlight": "10 a.m." } },
  { "frame": "video/offer-stack-reveal", "seconds": 6,
    "props": { "name": "The Night Shift Reset", "items": [{ "name": "The hardcover book" }],
               "price": "Free + $7.95 shipping", "terms": "Read it 30 days or your shipping back" } },
  { "frame": "video/cta-end-card", "seconds": 5,
    "props": { "line": "Start reading before your next shift.", "button": "Send Me My Free Copy" } }
]

Each scene has frame (a frame slug), props (that frame's own copy and images; the clip sets format, durationInFrames and words), seconds (0.5–60, used until the scene is voiced), optional voice (the text of the line spoken over the scene; empty means silent) and optional captions. Up to 12 scenes. Read each frame's props with get_piece; only pass a value or total the page states.

Captions need a clip. With clip set, the clip plays the storyboard, burns captions from the timeline (captions turns them off or on per scene; off by default for frames whose type already says the line), and every scene's frame must be one the clip plays (its frames). Without a clip the kit sequences the frames with crossfades and voice but no captions: add the video/captions-burned frame, or use a clip. 4. Voice it (below): one take per scene and a timeline.json. With a timeline, each scene's length comes from its speech plus holds, and each frame gets its words. 5. Preview, then render: keyframe stills first, then the MP4, the poster and the .vtt. Watch it end to end with sound.

With the FunnelDNA tools:

Step Call
Find frames and clips search_library with library: "video", kind: "frame" or "clip", and beat (such as "hook" or "cta") or a query. Results list formats, tags and a poster image.
Read one get_piece with the slug, such as video/offer-stack-reveal: props, source, specimen, video meta (fps, durationInFrames, poster frame), keyframes, posters and previews (a poster image and a muted MP4 per format). A clip adds frames (the frames it plays) and its storyboard shape.
Its helpers get_dependencies with the slug: the video kit (VideoStage, VIDEO_FORMATS, useWords, Rise, Pop, CountUp, KenBurns, Crossfade, MarkerSwipe, StageButton), the fx helpers and image slots.
The brand brand_theme with brand_id, brand_name or raw colours and fonts; save_brand to keep it. Use the page's theme.
Show the user preview_url with frame or clip slugs and the brand: the live player in the brand's colours, no shell needed.
Render get_starter_kit with video: { formats, storyboard, clip } and the brand (below).

The build-video prompt runs the path from a funnel brief: script, scene plan, frames per beat, storyboard.

The video kit. get_starter_kit with video returns a Remotion project: the chosen frames and clip, the video kit, storyboard.json, theme.json from the brand, and src/Root.tsx generated from the storyboard (one composition per format, fonts loaded before frame 1).

curl -L "$KIT_URL" -o kit.zip && unzip kit.zip -d video-kit && cd video-kit
npm install
npm run preview          # Remotion's live preview: scrub every scene in every format while you work
TTS_API_KEY=… TTS_VOICE_ID=… node tts.mjs   # voices each scene's `voice` line: public/scene-<n>-<hash>.mp3 + timeline.json
node render.mjs          # stills, then out/<format>.mp4, out/<format>-poster.webp and out/<format>.vtt
  • Voice. tts.mjs reads TTS_API_KEY and TTS_VOICE_ID from the environment, plus optional TTS_URL, TTS_KEY_HEADER and TTS_MODEL for any provider whose endpoint returns timestamps. Takes are cached by text, voice and settings, so a changed line re-voices only its scene. The key is never written to the project. Skip this step for a silent video ad: the storyboard's seconds set the timing.
  • Render. render.mjs writes stills first (out/stills/<format>-<frame>.jpg, early and late in each scene and the final hold): look at them before watching the MP4. The .vtt is written only for a voiced video, and loudness is normalised to −16 LUFS. node render.mjs vertical renders one format; CONCURRENCY sets parallel frames (default 2). The first render downloads Remotion's own headless browser once.
  • Formats. The project has one composition per format that every scene (and the clip) supports, named video-<format>; asking for another format is an error that names the shared ones. theme.json is always present: the brand's tokens over the default theme. Edit storyboard.json and the props, not the frames: the frames already passed contrast, safe-zone and timing checks under five themes.

The brand in motion#

The video belongs to the page's look, like an ad does (ads.md). Library frames read the theme tokens and fonts directly; these rules matter when choosing images and when building a scene by hand.

  • Tokens. Use only the page theme's colours (--band, --ink, --accent, the button roles…). In a hand-built scene, copy them into one constant. See theme.md.
  • Fonts. Load the page's two font roles before the first frame renders (the kit's Root.tsx does). Display face for headlines and numbers, body face for captions and labels.
  • Logo. Small in the poster and the final scene. Not on every frame.
  • Colour arc. Let colour carry the story: night to dawn, cold to warm, cluttered to clean. The problem scenes use the dark end of the palette, the offer and CTA the bright end.
  • Motif. Reuse the page's art direction: the same motif (a rising sun, a route line, a blueprint grid) appears in the hook, the mechanism and the end card.
  • The real button. The last scene shows the page's primary button, drawn with the same colours, radius, depth and label as on the page.
  • Text on photos. Use a gradient scrim on the text side (rgba(bg, .88) → transparent). Every text pair passes 4.5:1, captions included.

Imagery#

Use what the page already has first, then generate what is missing.

Need Source
Founder The page's portrait or cut-out (transparent PNG/WebP). Set it large beside the text, eyes toward it.
Product The real product shot or cover, with a soft drop-shadow, never in a box.
Software The product's UI rebuilt as HTML components inside the video, the same screens the page shows. Animate them: a card drags, a route redraws, an invoice marks itself paid. Never a fake screenshot of results.
Situations (the problem, the place) Generated stills, 16:9, prompted from the art direction: materials, light, palette hex values, camera, mood. No text or logos in the prompt. Two or three per video.
Motion B-roll A 5 s image-to-video clip from one of those stills, or a slow push-in on the still (Ken Burns).

Ken Burns on a still: scale 1.02 → 1.10 (or 1.06 → 1.00 for a pull-out) across the scene, object-fit: cover, easing on. Move the object-position toward the subject, never past it.

Voiceover#

  • Choose the voice for the speaker. Match the founder's age, region and manner: a warm Southern alto for a nurse-turned-author, a steady male voice for a builder, a relaxed young voice for a software founder. Test two or three voices on the hook line before voicing the script.
  • Use an endpoint with timestamps. Most TTS APIs return character or word timings alongside the audio. Those timings are the whole timing system, so use that endpoint.
  • Settings. Moderate stability (about 0.5), high similarity, a little style, speed 1.0–1.08. Keep the same voice and settings for every scene so the takes match.
  • One take per scene, cached. Key each cached take by its text plus settings. Re-voice only what changed.
  • Listen to every take. Re-roll a take that mispronounces a name or number, or rewrite the word ("twenty-two" instead of "22").
  • Loudness. Mix to −16 LUFS integrated, −1.5 dBTP true peak: the web standard, loud enough on a phone without clipping.

The timing pass: voice each scene, then write one timeline.json with each scene's duration and word timings.

// tts.mjs (sketch): voice each scene and keep its word timings
for (const sc of script.scenes) {
  const r = await fetch(`${TTS_URL}/${script.voice_id}/with-timestamps`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json', [KEY_HEADER]: process.env.TTS_API_KEY },
    body: JSON.stringify({ text: sc.text, model_id: script.model_id, voice_settings: script.settings }),
  })
  const j = await r.json()
  fs.writeFileSync(`public/${sc.id}.mp3`, Buffer.from(j.audio_base64, 'base64'))
  // fold character timings into words: [{ w, s, e }]
  const a = j.alignment, words = []
  let w = '', s = null, e = 0
  a.characters.forEach((c, i) => {
    if (/\s/.test(c)) { if (w) words.push({ w, s, e }); w = ''; s = null }
    else { if (s === null) s = a.character_start_times_seconds[i]; w += c; e = a.character_end_times_seconds[i] }
  })
  if (w) words.push({ w, s, e })
  out.push({ id: sc.id, text: sc.text, speech: words.at(-1).e, words })
}
fs.writeFileSync('timeline.json', JSON.stringify(out, null, 1))

Keep the API key in an environment variable. Never write it into the project, a log or the page.

One timing file drives everything#

timeline.json is the single source of truth:

[
  { "id": "hook", "text": "Still wide awake at 10 a.m. after a night shift?", "speech": 2.50,
    "words": [ { "w": "Still", "s": 0, "e": 0.337 }, { "w": "wide", "s": 0.395, "e": 0.569 } ] }
]

From it, one layout.ts computes:

  1. Scene frames: each scene's start and length = lead + speech + hold.
  2. Word frames: at(scene, 'awake') returns the frame a word is spoken, so visuals cue on words, not guesses.
  3. Caption cards: the words split into short lines.
  4. The .vtt file: written from the same caption cards, so the burned-in captions and the track never disagree.
// layout.ts
import TL from '../timeline.json' with { type: 'json' }
export const FPS = 30
const LEAD = 0.15, INTRO = 0.6
const HOLD: Record<string, number> = { hook: 0.75, offer: 0.45, cta: 3.2 }
let t = 0
export const SCENES = TL.map((s, i) => {
  const lead = i === 0 ? INTRO : LEAD
  const len = Math.round((lead + s.speech + (HOLD[s.id] ?? 0.6)) * FPS)
  const r = { ...s, from: t, len, vo: t + Math.round(lead * FPS) } // vo = frame the voice starts
  t += len
  return r
})
export const TOTAL = t
export const SC = Object.fromEntries(SCENES.map((s) => [s.id, s]))
/** frame, relative to its scene, at which the n-th match of word `w` is spoken */
export const at = (s, w: string, n = 0) => {
  const hit = s.words.filter((x) => x.w.toLowerCase().replace(/[^a-z0-9$.']/g, '').replace(/\.$/, '') === w)[n]
  if (!hit) throw new Error(`no "${w}" in ${s.id}`)
  return Math.round((s.vo - s.from) + hit.s * FPS)
}

Captions#

Every video has captions burned in: most people watch on mute until they decide to listen. The library's video/captions-burned frame does this from timeline.json in three styles (box, karaoke, big-word), and its captionCards() and toVtt() helpers write the .vtt from the same cards; clips use it already. The rules it follows, for any caption you set yourself:

  • Short cards. Split each scene at punctuation, then balance long phrases into lines of at most about 34 characters. Never end a line on "a", "the", "to", "and", "of", "your" and the like, and never split "10 a.m.".
  • On the voice. A card shows from its first word's start to the next card's start (the last card of a scene ends 0.4 s after its last word). Cards never overlap; check that in code.
  • Readable. Body face, bold, 44px on 1080p, white on a dark rounded box at about 86% opacity, centred 46px from the bottom, clear of the button in the end card. Colour the key numbers and the button words in the accent.
  • A track as well. Ship the same cards as WebVTT for screen readers and for viewers who turn burned captions off in their head and on in the player:
WEBVTT

1
00:00:00.600 --> 00:00:02.033
Still wide awake at 10 a.m.

2
00:00:02.033 --> 00:00:03.250
after a night shift?
// vtt.ts: the track from the same cards the video burns in
const ts = (f: number) => new Date(Math.round((f / FPS) * 1000)).toISOString().slice(11, 23)
fs.writeFileSync('out/sales-video.vtt',
  'WEBVTT\n\n' + chunks().map((c, i) => `${i + 1}\n${ts(c.from)} --> ${ts(c.to)}\n${c.text}\n`).join('\n'))

Music bed#

  • Instrumental only, matched to the brand's mood, as long as the video. Generate it (any music model) or use a licensed track you have rights to.
  • Sit it well under the voice: a volume of about 0.11–0.13 (roughly −18 to −19 dB). Fade in over the first 20 frames and out over the last 50.
  • No music is fine for a plain founder VSL. A bed that fights the voice is worse than none.
  • Optional sound design (a click as a checkbox ticks, a soft whoosh on the offer) stays below the music.

Building scenes by hand#

The video kit's project already has this shape. Use this section for a scene no frame covers (write it as one more component in src/, on the video kit's VideoStage so it takes the theme and the caption band), or for a project without the kit.

video/
  script.json        lines + voice settings
  storyboard.json    one entry per scene: frame, props, seconds
  tts.mjs            voices changed lines, writes public/<id>.mp3 + timeline.json
  timeline.json      scene durations + word timings
  public/            voice takes, music.mp3, logo, cut-outs, product shots, B-roll stills
  src/index.ts       registerRoot(Root)
  src/Root.tsx       the compositions + font loading
  src/layout.ts      frames from timeline.json, at(), caption cards
  src/Video.tsx      one component per scene, captions, audio, the poster

Install remotion, @remotion/cli, react and react-dom at matching versions. Use Remotion's live preview to scrub every scene before rendering.

// Root.tsx: two compositions, the video and its poster
import { Composition, continueRender, delayRender } from 'remotion'
import { Sales, Poster } from './Video'
import { TOTAL } from './layout'

// load the page's fonts before frame 1
if (typeof document !== 'undefined' && !document.getElementById('fonts')) {
  const h = delayRender('fonts')
  const l = Object.assign(document.createElement('link'), { id: 'fonts', rel: 'stylesheet',
    href: 'https://fonts.googleapis.com/css2?family=Literata:wght@700;800&family=Atkinson+Hyperlegible:wght@400;700&display=block' })
  document.head.appendChild(l)
  l.onload = () => Promise.all(['800 60px Literata', '700 40px "Atkinson Hyperlegible"'].map((f) => document.fonts.load(f)))
    .then(() => continueRender(h))
}

export const Root = () => (
  <>
    <Composition id="Sales" component={Sales} width={1920} height={1080} fps={30} durationInFrames={TOTAL} />
    <Composition id="Poster" component={Poster} width={1920} height={1080} fps={30} durationInFrames={1} />
  </>
)
// Video.tsx: assembly (scenes, captions, voice, music)
import { AbsoluteFill, Audio, Sequence, interpolate, staticFile, useCurrentFrame } from 'remotion'
import { FPS, SCENES, TOTAL, chunks } from './layout'

const C = { bg: '#140f20', accent: '#e9a21c', ink: '#1d1a24' }   // from the page theme
const X = 10                                                     // crossfade frames
const cl = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const
const SCENE = { hook: Hook, problem: Problem, mechanism: Mechanism, offer: Offer, cta: Cta }

const FadeIn = ({ children }) => {
  const f = useCurrentFrame()
  return <AbsoluteFill style={{ opacity: interpolate(f, [0, X], [0, 1], cl) }}>{children}</AbsoluteFill>
}

const CARDS = chunks()
const Captions = () => {
  const f = useCurrentFrame()
  const c = CARDS.find((x) => f >= x.from && f < x.to)
  return c ? (
    <AbsoluteFill style={{ justifyContent: 'flex-end', alignItems: 'center', paddingBottom: 46 }}>
      <div style={{ background: 'rgba(29,26,36,.86)', borderRadius: 12, padding: '10px 26px',
        font: '700 44px "Atkinson Hyperlegible", sans-serif', color: '#fff' }}>{c.text}</div>
    </AbsoluteFill>
  ) : null
}

export const Sales = () => (
  <AbsoluteFill style={{ background: C.bg }}>
    {SCENES.map((s, i) => {
      const Scene = SCENE[s.id]
      return (
        <Sequence key={s.id} from={s.from} durationInFrames={s.len + (i < SCENES.length - 1 ? X : 0)}>
          {i === 0 ? <Scene /> : <FadeIn><Scene /></FadeIn>}
        </Sequence>
      )
    })}
    <Captions />
    {SCENES.map((s) => (
      <Sequence key={'vo-' + s.id} from={s.vo}><Audio src={staticFile(`${s.id}.mp3`)} /></Sequence>
    ))}
    <Audio src={staticFile('music.mp3')}
      volume={(f) => interpolate(f, [0, 20, TOTAL - 50, TOTAL], [0, 0.12, 0.12, 0], cl)} />
  </AbsoluteFill>
)

Inside a scene, use useCurrentFrame() (frames from the scene's start), at(SC.offer, 'free') to cue on a word, and interpolate(…, { easing: Easing.bezier(0.2, 0.8, 0.2, 1) }) for every move. Use Remotion's <Img> for images so frames wait for them to load. Never use CSS animations or setTimeout: they don't render frame by frame.

Render and encode#

The kit's render.mjs runs these steps for each format. By hand:

# picture + sound straight from Remotion (simplest)
npx remotion render Sales out/raw.mp4 --crf=18 --concurrency=4
npx remotion still Poster out/poster.png

# or render the picture muted and mix the voice with ffmpeg: place each take at its start
# time (adelay in ms), mix, pad to the video length, normalise
ffmpeg -i hook.mp3 -i problem.mp3 -i cta.mp3 -filter_complex \
 "[0]adelay=600:all=1[a0];[1]adelay=4869:all=1[a1];[2]adelay=61200:all=1[a2];\
  [a0][a1][a2]amix=inputs=3:normalize=0,apad=whole_dur=75,loudnorm=I=-16:TP=-1.5:LRA=11[a]" \
 -map "[a]" -ar 48000 -c:a aac -b:a 160k out/vo.m4a

# final file: 1080p H.264 + AAC, web-ready, at most 15 MB (raise -crf to shrink it)
ffmpeg -i out/raw.mp4 -i out/vo.m4a -map 0:v -map 1:a -c:v libx264 -preset slow -crf 23 \
 -pix_fmt yuv420p -profile:v high -movflags +faststart -c:a aac -b:a 160k -shortest out/sales-video.mp4

# when the audio is already in raw.mp4, normalise it in the same pass
ffmpeg -i out/raw.mp4 -c:v libx264 -preset slow -crf 23 -pix_fmt yuv420p -movflags +faststart \
 -af loudnorm=I=-16:TP=-1.5:LRA=11 -c:a aac -b:a 160k out/sales-video.mp4

# optional smaller WebM for browsers that take it (list it first in <source>)
ffmpeg -i out/sales-video.mp4 -c:v libvpx-vp9 -b:v 0 -crf 36 -row-mt 1 -c:a libopus -b:a 96k out/sales-video.webm

# poster and frame checks
cwebp -q 80 out/poster.png -o out/sales-video-poster.webp
ffmpeg -ss 30 -i out/sales-video.mp4 -frames:v 1 out/check-30s.png
ffmpeg -i out/sales-video.mp4 -af ebur128 -f null - 2>&1 | grep -A2 Summary   # confirm about -16 LUFS
  • Formats. 16:9 for the page, 9:16 for stories and reels, 1:1 for feed video ads. Render each from its own composition (library frames re-compose per format), never by cropping one file.
  • Settings. 1920×1080 (or 1080×1920, 1080×1080), 30 fps, H.264 High, yuv420p, AAC 48 kHz, +faststart so it starts before it has fully downloaded. A 60–75 s video lands at 6–14 MB at CRF 20–23. Keep it at 15 MB or less.
  • Concurrency. Remotion renders frames in parallel. 4–6 is a good default; drop to 2 if the machine runs out of memory with heavy scenes. A 75 s video renders in about 5–10 minutes.
  • Check frames before the full render. Render stills at a few frames per scene (npx remotion still Sales out/f600.png --frame=600) and look at them: type sizes, overlaps, captions clear of the button.
  • Watch it end to end with sound before shipping: every word, every number, the CTA.

The poster#

The poster is the video's ad on the page. It is designed, not a random frame.

  • Render it as its own composition: the hook line in the display face, the founder or the product large, the logo small, the brand colours. A visitor should want to press play without the voice.
  • No play button in the poster image. The page draws the play button, so it can have a label and a focus state.
  • No captions in it. WebP, 1920×1080 source, about 60–80 KB; add a smaller version (about 960 wide) for phones if the player is narrow.

Embedding on the page#

A video with sound never autoplays. Show the poster with a real play button. Load the video only when it is pressed.

<div class="vsl" style="aspect-ratio:16/9">
  <button class="vsl__play" type="button" aria-label="Play the video: The Night Shift Reset (1:14, captions)">
    <img src="assets/media/sales-video-poster.webp" alt="" width="1920" height="1080" fetchpriority="high">
    <span class="vsl__icon" aria-hidden="true"><!-- lucide Play icon --></span>
    <span class="vsl__len">1:14</span>
  </button>
</div>
<script>
  document.querySelector('.vsl__play').addEventListener('click', (e) => {
    const box = e.currentTarget.parentElement
    box.innerHTML = `<video controls autoplay playsinline preload="auto" poster="assets/media/sales-video-poster.webp"
        title="The Night Shift Reset sales video" style="width:100%;height:100%">
      <source src="assets/media/sales-video.webm" type="video/webm">
      <source src="assets/media/sales-video.mp4" type="video/mp4">
      <track kind="captions" src="assets/media/sales-video.vtt" srclang="en" label="English">
    </video>`
    box.querySelector('video').focus()
  })
</script>
  • Click to play. The click is the permission to play with sound. Leave the track off by default when the captions are burned in; turn it on (default) when they are not.
  • Placement. In the hero's media column or directly under the headline on a VSL page, with the page's button right under it. The button on the page works whether or not they watch.
  • In a dialog. A poster may open the player in a dialog instead: label the trigger and the close button, close on Escape, return focus to the trigger and pause playback on close. See imagery.md.
  • Weight. Only the poster loads with the page. Preload it if the video is in the first screen.
  • Reduced motion. The sales video only plays when asked, so it is fine. Under prefers-reduced-motion: reduce, nothing on the page moves by itself.
  • Never fake a player. No drawn progress bars, timestamps or "watched by" counts. The duration label is the real length.

Background loops#

A loop is a short, silent clip of the brand's world that plays behind a hero or a band: steam over coffee, light drifting across a job site, clouds moving over a skyline. It sets mood. It never carries content.

Make the clip. Generate a still of the scene first (the same art direction as the page's images), then turn it into a 5 s clip with an image-to-video model, using the same still as the start frame and the end frame, so the clip returns to where it began. Kling 2.5 Turbo Pro, Veo, Runway or any model that accepts a start and an end image works.

Prompt the motion only, and keep it small:

Locked-off static camera. High clouds drift slowly across a pre-dawn violet and vermilion sky over a city skyline;
the glow on the horizon breathes gently brighter; distant street lights flicker softly. No camera movement, no text.
negative: camera movement, zoom, pan, text, people, logos
  • Locked-off camera, slow natural motion (light, steam, water, fabric, foliage, clouds). No people walking through, no camera moves: they never loop cleanly.
  • No text, logos or faces presented as customers.

Make it seamless. Crossfade the tail into the head, so even a clip that drifts a little closes the loop:

# loop.sh <name> [crossfade seconds]: media/<name>-raw.mp4 -> <name>.mp4, .webm and -poster.webp
n=$1; X=${2:-0.6}
D=$(ffprobe -v error -show_entries format=duration -of csv=p=0 media/$n-raw.mp4)
OFF=$(python3 -c "print(round($D-2*$X,3))")
F="[0:v]split[a][b];[a]trim=start=$X,setpts=PTS-STARTPTS[main];[b]trim=0:$X,setpts=PTS-STARTPTS[head];\
[main][head]xfade=transition=fade:duration=$X:offset=$OFF,scale=-2:720,fps=24,format=yuv420p"
ffmpeg -y -i media/$n-raw.mp4 -filter_complex "$F" -an -c:v libx264 -preset slow -crf 27 -profile:v high \
 -movflags +faststart $n.mp4
ffmpeg -y -i $n.mp4 -an -c:v libvpx-vp9 -b:v 0 -crf 38 -row-mt 1 $n.webm
ffmpeg -y -i $n.mp4 -frames:v 1 -q:v 80 $n-poster.webp

The result is 720p, 24 fps, about 4–5 s, with no audio track. Typical sizes are 70–260 KB for the MP4 and 25–130 KB for the WebM. The cap is 2 MB. Add a 540p version for phones only if the loop is large.

Embed it.

<div class="hero__bg" aria-hidden="true">
  <video class="loop" muted loop playsinline preload="none" poster="assets/media/dawn-loop-poster.webp">
    <source src="assets/media/dawn-loop.webm" type="video/webm">
    <source src="assets/media/dawn-loop.mp4" type="video/mp4">
  </video>
  <div class="hero__scrim"></div>
</div>
<script>
  const still = matchMedia('(prefers-reduced-motion: reduce)').matches
  const io = new IntersectionObserver((es) => es.forEach(({ target: v, isIntersecting }) =>
    isIntersecting ? v.play().catch(() => {}) : v.pause()))
  if (!still) document.querySelectorAll('video.loop').forEach((v) => io.observe(v))
</script>
  • muted loop playsinline, a poster, and a scrim so text over it keeps 4.5:1.
  • It plays only while on screen, and under reduced motion it shows the poster only.
  • Two or three loops per page at most: the hero or the offer moment, and maybe one band. The rest of the page stays still so the motion means something.

The truth in video#

The truth boundary in SKILL.md applies to every frame, every word of voiceover and every caption.

  • The script uses only supplied facts: the page's offer, price, shipping, dates, guarantee terms and real proof. The video never says more than the page does.
  • A generated voice speaking for the founder says only what the founder would put their name to. It never plays a customer.
  • Generated people are illustrations of a situation, never customers, reviewers or results.
  • No invented numbers, counters, "spots left", deadlines, ratings, press logos or customer counts on screen.
  • Product screens built for the video show how the product works with sample data. They never pose as a customer's real results.
  • Sample brands shown as examples carry a small "Sample brand · fictional content" line in the end card.

Cost and time#

Say what it will cost before you start and report what you spent at the end.

Item Typical use Cost
TTS voiceover 850–1,050 characters for a 60–75 s script, plus a short voice test Usually inside a TTS plan's character quota
Music bed One 60–90 s instrumental Music model quota, or a licensed track
Stills 2–4 generated images per video About $0.04 each
Image-to-video clip One 5 s clip per loop or B-roll shot About $0.35 each (priced per second)
Render 5–10 minutes for 75 s at 1080p Local machine time

Generation APIs rate-limit low-credit accounts. Retry with backoff and keep a media log of each call: provider, model, what it made, units and cost.

Checklist#

  • The script follows hook → problem → turn → mechanism → offer → (proof) → risk reversal → CTA, and runs 45–90 s (a video ad: hook, problem, offer, button in 6–15 s).
  • Each scene is a library frame where one fits; every sample word in its props is replaced and proof props are empty unless supplied.
  • Every fact (price, shipping, dates, guarantee, numbers) matches the page exactly.
  • The CTA says and shows the page's button label word for word, and the end card holds for about 3 s.
  • Every take was listened to: names and numbers are said correctly, and the voice is the same throughout.
  • One timing file drives scenes, on-screen words, burned captions and the .vtt, and no caption cards overlap.
  • The theme's colours and fonts are used, text passes 4.5:1 and nothing is smaller than 28px at 1080p.
  • Text stays out of the caption band in every format rendered, and the hook is readable within the first 20 frames.
  • Something moves in every scene, and scenes crossfade cleanly.
  • The audio measures about −16 LUFS with peaks at or below −1.5 dBTP, and the music sits under the voice.
  • The file is 1080p H.264 + AAC with faststart, 15 MB or less, and was watched end to end with sound.
  • The designed WebP poster has no play button baked in.
  • On the page: click to play, never autoplay with sound, only the poster loads first, and there is a captions track and a labelled play button.
  • Each loop is silent and seamless, 720p, 2 MB or less, has a poster, plays only in view and stops under reduced motion.
  • No invented proof, people, deadlines or counters anywhere in the video.
  • Spend is reported: characters, images, clips, music.

Are you sure?