Work / UGC shorts pipeline
UGC shorts pipeline
Talking-head takes in, finished videos out. I am paid to make short videos promoting a social media scheduler, and editing each one by hand did not scale. You write a small storyboard per video, "when I say this phrase, show this number, play this sound", and the rest is automatic: silence trimmed, colour corrected, captioned from Whisper word timings, titles and graphics placed around the face.
The first version was Python and ffmpeg in September. The October rebuild on Remotion added a storyboard language, a validator that fails the build naming the missing phrase, and a retake detector.
The agent cut from the script, not from what I said. On the first batch it cut the videos from my written script rather than the transcript, and merged "barber shops" into one word, so a cue never fired and the graphic never appeared. Cuts now come from the transcript, never the script. The validator fails the build and names the missing phrase instead of shipping a silent gap, and it rejects any "Postiz" inside a moment, so the brand cannot be amplified in graphics by accident. Cue words were changed to ones Whisper does not merge, and a caption-fixes table handles the brand names it mangles.
Whisper is confidently wrong about time. It stretches a word across silence, so on joined audio a take's first word started inside the previous take. It hallucinates words in trailing silence, and it mis-times words that sit tight against a cut. Each take is now transcribed separately and offset onto the joined timeline. Words placed after the measured end of speech, trailing silence below -35 dB, are dropped as hallucinations. Word times are mapped through the cuts after transcription, not before.
Retakes had to be found before they could be cut. A retake is a 3-word phrase repeated within 4 seconds. The detector reads the takes and the word timings, proposes cutting the first attempt, and prints a ready-to-paste cuts block in take-local seconds. They are proposals: each is checked against the transcript before it goes into the storyboard, and restarts that straddle a take boundary are skipped with a warning rather than guessed.