# Script-to-30s Dialogue Commercial Pipeline (Veo 3.1 + FFmpeg Conform)

> Turn a 4-beat commercial script into a broadcast-ready 30-second dialogue spot using Veo 3.1 Fast for locked audio-visual blocking, Kling 2.6 Pro for kinetic product inserts, and an automated FFmpeg EBU R128 loudness conform script. Typical production spend runs $3.90–$7.50 per finished 30s master.

- **Canonical URL:** https://framesfield.com/workflows/script-to-dialogue-spot
- **Difficulty:** Intermediate
- **Estimated Time:** 35 min
- **Estimated Cost:** $3.90 – $7.50 / 30s spot
- **Last Verified:** 2026-11-26
- **Tools Used:** Google Veo 3.1 (https://framesfield.com/specs/veo-3-1), Kling 2.6 Pro (https://framesfield.com/specs/kling-2-6), OpenAI GPT Image 1 (https://framesfield.com/specs/gpt-image-1)

## Pipeline Architecture

01. **Timecoded Beat Sheet** (JSON Shot Script): Split 30s copy into 4–6s spoken beats
02. **Product & End-Card** (GPT Image 1): Render lossless product keyframe & RGBA logo
03. **Dialogue & B-Roll** (Veo 3.1 + Kling 2.6): Veo handles speech; Kling handles 10s motion
04. **R128 Audio & Concat** (FFmpeg loudnorm): Concatenate beats, normalize to -14 LUFS

## Playbook

## How do you keep a 30-second AI commercial from feeling stitched together?

Raw video-model clips fail as commercial spots for three predictable reasons: inconsistent audio loudness between shots, warped typography on logos/end-cards, and mismatched pacing. Treat video models like a **camera department**, not an NLE—generate discrete 6–10 second beats, lock all typography to deterministic PNG stills, and assemble the final timeline programmatically in FFmpeg.

## Step 1: Lock the beat budget before generating frames

A 30-second spot breaks cleanly into four beats with predictable API cost:

| Beat | Timecode | Duration | Engine | Audio Source | Est. Unit Cost |
| --- | --- | --- | --- | --- | --- |
| 01 · Spoken Hook | `00:00–00:08` | 8s | [Veo 3.1 Fast](/specs/veo-3-1) | Native speech + room tone | `$1.20` |
| 02 · Product Hero Orbit | `00:08–00:18` | 10s | [Kling 2.6 Pro](/specs/kling-2-6) (Silent) | External SFX / score bed | `$0.70` |
| 03 · Proof / Reaction | `00:18–00:26` | 8s | [Veo 3.1 Fast](/specs/veo-3-1) | Native speech + foley | `$1.20` |
| 04 · Typographic End-Card | `00:26–00:30` | 4s | [GPT Image 1](/specs/gpt-image-1) + FFmpeg | Score resolve | `$0.17` |

**Total single-pass cost:** `~$3.27` (allow 2× take ratio = `~$6.50` realistic spend).

## Step 2: Write dialogue prompts with explicit vocal and acoustic cues

When prompting [Google Veo 3.1](/specs/veo-3-1) for spoken lines, specify both the **exact quoted transcript** and the **acoustic space** so two separate dialogue clips sound recorded in the same room:

```text
Medium 50mm shot inside a sunlit concrete workshop. Acoustic profile: dry close-mic lavalier, subtle room tone, zero background music.
Subject speaks calmly while setting an anodized aluminum camera cage onto the workbench:
"Every frame starts with repeatable specs—not guesswork."
Natural pause of 0.5 seconds after the final word.
```

Explicitly requesting `zero background music` prevents Veo from inventing conflicting musical keys across separate beats; lay your single unified music track over the final edit instead.

## Step 3: Animate product motion without warping brand marks

1. Render the hero product still in [OpenAI GPT Image 1](/specs/gpt-image-1) using `quality: "high"` and pass your official product photo into `/v1/images/edits` so logotypes stay faithful.
2. Animate that PNG in [Kling 2.6 Pro](/specs/kling-2-6) (`cfg_scale: 0.6`, 10s silent mode) with restrained motion: `Slow 15-degree turntable arc around product, soft studio key light sweep, preserve exact label text.`

## Step 4: Automate loudness normalization and end-card compositing

Mixed clips from Veo (24 fps, native audio) and Kling (30 fps, silent) cannot be stream-copied directly (`-c copy` will break A/V sync). Use the Bash conform script below to standardize frame rate, audio sample rate (`48 kHz`), and EBU R128 loudness (`-14 LUFS`) in one deterministic pass.

## Copyable Asset: FFmpeg Broadcast Concat + EBU R128 (-14 LUFS) Mastering Script (conform-commercial.sh)

```bash
#!/usr/bin/env bash
set -euo pipefail

# 1. Normalize each beat to 1920x1080, 24fps, 48kHz stereo PCM intermediate
for clip in beat01_veo.mp4 beat02_kling.mp4 beat03_veo.mp4; do
  base="${clip%.mp4}"
  ffmpeg -y -i "$clip" \
    -vf "fps=24,scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080,setsar=1" \
    -c:v libx264 -crf 15 -preset fast -pix_fmt yuv420p \
    -c:a pcm_s16le -ar 48000 -ac 2 \
    "${base}_norm.mov"
done

# 2. Render 4-second sharp static end-card from GPT Image 1 PNG (no video-model text jitter)
ffmpeg -y -loop 1 -t 4 -i endcard_1080p.png -f lavfi -t 4 -i anullsrc=r=48000:cl=stereo \
  -vf "fps=24,fade=t=in:st=0:d=0.35" \
  -c:v libx264 -crf 15 -pix_fmt yuv420p -c:a pcm_s16le -shortest \
  beat04_endcard_norm.mov

# 3. Concatenate and apply EBU R128 loudness normalization (-14 LUFS / -1.0 dBTP)
printf "file '%s'\n" beat01_veo_norm.mov beat02_kling_norm.mov beat03_veo_norm.mov beat04_endcard_norm.mov > concat_list.txt
ffmpeg -y -f concat -safe 0 -i concat_list.txt \
  -af "loudnorm=I=-14:TP=-1.0:LRA=11" \
  -c:v libx264 -crf 18 -movflags +faststart -pix_fmt yuv420p \
  -c:a aac -b:a 192k \
  commercial_30s_master.mp4
```

## FAQ

### How many words fit cleanly inside an 8-second Veo 3.1 dialogue clip?

Target 14 to 17 words maximum (roughly 2.0–2.2 words per second). Leaving 0.5 seconds of head and tail room prevents clipped consonants when cutting between shots in FFmpeg or DaVinci Resolve.

### Why shouldn't the end-card logo be generated directly inside the video model?

Video diffusion models introduce subtle temporal shimmer on small sans-serif copy and legal disclaimers. Compositing a deterministic PNG end-card generated via GPT Image 1 or Figma via FFmpeg guarantees pixel-sharp typography.

### Why normalize final commercial masters to -14 LUFS?

YouTube, Spotify Video, and most social platforms normalize playback around -14 LUFS integrated loudness with a -1.0 dBTP true-peak ceiling. Mastering directly to -14 LUFS prevents sudden level jumps between generated dialogue clips and external music beds.
