Skip to content
FramesField
WORKFLOW 04 Intermediate Light CLI / Copy-Paste Script
VERIFIED 2026-11-26
Raw .md

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

What You’ll Make & How It Works

A finished 30-second commercial combining spoken AI dialogue, animated product B-roll, a razor-sharp logo end-card, and balanced -14 LUFS sound.

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.

Before You Start Glossary
  • A short 4-beat script (about 30–40 words of dialogue total) and your product/logo PNG.
  • Access to Veo 3.1 Fast (dialogue), Kling 2.6 Pro (product shot), and GPT Image 1 (end-card).
  • FFmpeg (or CapCut/Resolve) to stitch clips and balance volume cleanly.
Estimated Cost
$3.90 – $7.50 / 30s spot
Time Needed
35 min
Setup Level
Light CLI / Copy-Paste Script
Big-Picture Flow (Step-by-Step Overview) 4 STEPS
  1. 01 · INPUT ↓ NEXT
    Timecoded Beat Sheet
    JSON Shot Script

    Split 30s copy into 4–6s spoken beats

  2. 02 · MODEL ↓ NEXT
    Product & End-Card
    GPT Image 1

    Render lossless product keyframe & RGBA logo

  3. 03 · MODEL ↓ NEXT
    Dialogue & B-Roll
    Veo 3.1 + Kling 2.6

    Veo handles speech; Kling handles 10s motion

  4. 04 · OUTPUT
    R128 Audio & Concat
    FFmpeg loudnorm

    Concatenate beats, normalize to -14 LUFS

30s Dialogue Commercial Timeline Breakdown (5 Cuts · -14 LUFS Master) CONTACT SHEET · DOCS
FRAME 01 00:00.00 – 00:06.00
REC ● Veo 3.1 Fast · $0.90
Beat 01 · Hook Dialogue

Spoken hook line with synchronized room tone and tight 50mm lens framing.

FRAME 02 00:06.00 – 00:16.00
REC ● Kling 2.6 Pro · $0.70
Beat 02 · Product Motion

10s silent macro orbit anchored to transparent-composited product hero frame.

FRAME 03 00:24.00 – 00:30.00
REC ● GPT Image 1 + FFmpeg
Beat 04 · End-Card Packshot

Crisp typographic end-card composited cleanly via FFmpeg—zero AI video text wobble.

Modular beat-sheet and audio loudness architecture combining Gemini API Veo 3.1 dialogue generations with FFmpeg two-pass EBU R128 mastering.

[SOURCE: FramesField Studio Architecture] [MODEL: VEO 3.1 + KLING 2.6 PRO] [VERIFIED: 2026-11-26]
Original Source ↗

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:

BeatTimecodeDurationEngineAudio SourceEst. Unit Cost
01 · Spoken Hook00:00–00:088sVeo 3.1 FastNative speech + room tone$1.20
02 · Product Hero Orbit00:08–00:1810sKling 2.6 Pro (Silent)External SFX / score bed$0.70
03 · Proof / Reaction00:18–00:268sVeo 3.1 FastNative speech + foley$1.20
04 · Typographic End-Card00:26–00:304sGPT Image 1 + FFmpegScore 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 for spoken lines, specify both the exact quoted transcript and the acoustic space so two separate dialogue clips sound recorded in the same room:

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 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 (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.

Copy-Paste Template / Asset

ONE-CLICK COPY OR DOWNLOAD
FFmpeg Broadcast Concat + EBU R128 (-14 LUFS) Mastering Script conform-commercial.sh
Normalizes mixed Veo 3.1 and Kling 2.6 clips to 1080p 24fps, crossfades audio stems, overlays a crisp static end-card PNG, and delivers a -14 LUFS web/social master.
#!/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

Helpful Prompts & Skills for This Workflow

Frequently Asked Questions

03 Q&A
Q01 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.
Q02 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.
Q03 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.