Ithiel
Paid social creative (internal tooling) · Built at Graphed

30 second AI UGC video ads at $2.77 each, with caption drift cut from 0.17 to 0.30 s down to 4 to 10 ms

I built an internal pipeline that turns an approved script and a brand into a 30 second talking-head video ad for $2.77 in render cost, and fixed a caption bug that took mean drift from 0.17 to 0.30 seconds down to 4 to 10 milliseconds.

Render cost per 30 second ad at 480p
$2.77
As documented in the repository, September 2026
Mean caption drift after the fix, down from 0.17 to 0.30 s
4 to 10 ms
Three re-captioned runs, August 28, 2026
Speech accuracy on one ad cloned from an existing ad (29.1 s)
99%
One render, August 24, 2026

The problem

Client ad accounts need new video creative every week. Generated talking-head video fails in ways a viewer notices at once: the speaker says a word that is not in the script, or the caption highlight lights up before the word is spoken. On August 28, 2026 I was told that captions on three finished ads did not match the speech. I measured it. The highlighted word drifted from the audio by a mean of 0.17 to 0.30 seconds, with a worst case of 1.46 seconds, and some words lit up during pauses.

Discovery

The speech timings going into the caption step were fine. The alignment layer added the error. It placed script words it could not match into made-up 0.18 second slots, and each late word pushed the next one later. Silence handling only covered the pause at the start. The fix was a rule about ownership: forced alignment owns the timing, and the script owns the text. Unmatched words are interpolated between matched neighbors. When two words overlap, the earlier one is trimmed, so a delay cannot spread forward. A second lesson cost money. One render was aborted after it had spent credits on clips from a bad script, so the pipeline now refuses to render without an approved script.

What it does

  1. 01

    Read the brand

    A site crawl produces a brand profile. Each brand claim must be backed by a quote from the site.

  2. 02

    Pick the person and setting

    The pipeline generates a persona matched to the buyer and a scene, or takes ones supplied by the operator.

  3. 03

    Lock the script

    An operator approves the script. The render step refuses to run without it.

  4. 04

    Render under a spend guard

    A live render needs an explicit spend confirmation, and a cost cap stops it before anything is billed.

  5. 05

    Caption from the script

    Caption text comes from the script. Timing comes from forced alignment of the audio.

  6. 06

    Gate the output

    A speech gate compares what was said with the script. A caption gate fails the ad if mean drift is 50 ms or more, any word is off by 150 ms or more, or any highlight lands in silence.

Timeline

  1. August 20, 2026

    Repository started. 135 commits follow through September 10.

  2. August 24, 2026

    First cloned ad rendered end to end: 29.1 seconds, speech gate at 99%.

  3. August 28, 2026

    Caption drift reported, measured, traced and fixed the same day. Three ads re-captioned and passed.

  4. September 11, 2026

    A later render passes both gates: caption sync mean 4 ms, max 45 ms over 160 of 176 words, speech 100% aligned.

Before and after

Mean caption drift0.17 to 0.30 s (three runs, August 28, 2026)4 to 10 ms (same three runs, re-captioned)
Worst single word1.46 s24 to 25 ms
Render on an unapproved scriptPossibleRefused
Ad performance of the generated videosnot measurednot measured

The arithmetic

Drift improvement, worst pairing: 0.17 s / 10 ms = 17x. Best pairing: 0.30 s / 4 ms = 75x. Worst word: 1.46 s / 0.025 s = 58x. The repository states the cost as about $2.63 to $2.77 per ad at 480p. I quote the top of that range. It is provider render cost only and leaves out operator time and failed attempts.

What stays with people

A person writes or approves every script. A person confirms spend before a paid render. The gates can fail an ad, and a person still watches the final cut before it goes near an ad account.

Limits

The cloning result is one ad. The drift numbers come from three runs on the day of the fix plus one later render. The repository is local, and I have no evidence that other team members adopted the tool. I have no performance data showing that these videos beat other creative in a live account. In one generated frame the image model printed a brand name on a shirt despite an instruction not to, so visual review is still needed.

What is next

Package the pipeline as a hosted job, so a render does not depend on one laptop. Then tie each video to its ad results.

  • AI video
  • UGC ads
  • ffmpeg
  • forced alignment
  • QA gates
  • spend guards

Book a call

Tell us where your leads stall.

Book a call with Gerrit. If an agent fits, the next step is a paid Scope that ends with a fixed build price.