UGC editor
The ugc-edit engine does every deterministic step. Your job is the creative layer: read the transcript, decide what to cut, what the hook says, where the zooms, overlays and emoji go, then check the result.
Workflow
- Prepare.
This createsugc-edit prepare <raw.mp4> [--brand <name>]<raw>.ugc/next to the footage: a conformed copy,words.json, a numberedtranscript.md, and a draftplan.json. The draft already drops retakes, so a run with no edits is a usable cut.- If
ugc-editis not on PATH, run it from the repo venv:<repo>/.venv/Scripts/ugc-editon Windows,<repo>/.venv/bin/ugc-editelsewhere.
- If
- Read
transcript.md, and look at 3–4 frames of the footage to see the framing and what the speaker is wearing. - Write
plan.jsonfollowing references/plan-guide.md. Apply references/retention.md:- Hook text: 3–8 words, at most two lines.
- Drop false starts, retakes, flubs and "um" words with
drop_words. - Punch in on payoff words or numbers.
- Use overlays only for assets the user supplied.
- Use emoji sparingly.
- End on a CTA.
- Check and render.
ugc-edit validate <raw>.ugc ugc-edit render <raw>.ugc [--brand <name>]<raw>-final.mp4is written next to the source. - Review.
- Read
<raw>.ugc/qa/report.mdand viewqa/contact-sheet.jpg. Every check must pass. - The word check re-transcribes the export to catch clipped or doubled words.
- If a check fails or a frame looks wrong, fix
plan.json(or the brand profile) and render again. - Tell the user the QA result. Say plainly that you could not watch the video in real time.
- Read
One-shot with no agent decisions: ugc-edit run <raw.mp4> --brand <name>.
Non-negotiables
- Captions are TikTok-native only. Default:
classic(TikTok Sans, white text, thin black outline, no box), at most 3 words per caption, one line.- Auto-contrast switches a caption to TikTok's own
box_blackorbox_whitestyle when its letters would sit on a bright area, such as a white shirt. - Never invent non-TikTok caption styles: no karaoke highlight, no other fonts.
classicis TikTok's Basic #1 recipe (stroke plus soft shadow), measured from TikTok's own renderer.- Use
captions.mode = "tiktok_auto"(TikTok's generated-caption look: bold, two-line phrases, low in the frame) only when the user asks for it. The default is 1–3 word classic captions.
- Auto-contrast switches a caption to TikTok's own
- Never crop the footage itself. Footage is fitted and padded, never cropped. Zooms are temporary camera moves that return to 1.0×. B-roll is fitted over a blurred fill.
- Zooms come only from the engine: sub-pixel warps with eased curves. Never use ffmpeg
zoompan; it jitters. - Keep every intended spoken word at normal speed. Remove only dead air, retakes and filler.
- Titles and CTAs stay below the top quarter of the frame. Hooks stay within two lines.
- Emoji are Apple artwork from the user cache (
ugc-edit setup). Never draw emoji with a font. - Do not publish or upload anywhere unless the user asks.
Brand profiles
brands/default.toml holds the defaults. A private brands/<name>.local.toml (gitignored) overrides the CTA, caption position, glossary (brand words whisper mishears) and audio levels. Pass it with --brand <name>.
Troubleshooting
- A word is cut off: lower
cuts.min_gapor raisepre_pad/post_padin the brand profile, then render again. - The pacing feels rushed: raise
cuts.min_gapto 0.2. - A caption covers a face or a demo: add
captions.overrideswith ayfor that word. - Whisper misheard a brand name: add it to
audio.glossaryand deletewords.jsonbefore runningprepareagain. plan.jsonerrors: runugc-edit validateand fix the indices it names.