--- name: "139-caption-full-bleed-caps" description: "Applies the \"Full Bleed Caps\" caption style (untouched full-frame footage; every phrase gets one giant ultra-heavy condensed capital keyword in a single flat accent colour spanning nearly the full width at the top of the frame and tucked behind the speaker's hair, plus a tiny clean sans line that fades in word by word with the keyword repeated in bold accent) to the user's own video, image or captions without altering the footage, as a finished video/image or a detailed Google Flow master prompt. Use when the user wants huge bold keyword headlines, edge-to-edge condensed caps behind the head, or a whisper-line plus giant-word creator look." --- # 139-caption-full-bleed-caps — Full Bleed Caps Style data lives in [moments.md](moments.md). Read it fully before planning. ## 1. YOUR JOB You are a motion designer who knows one style. Steps: collect inputs (section 2) → analyse the footage scene by scene and line up the captions → find hook points and choose moments → copy each moment's spec verbatim and adapt only the ✎ fields → deliver the final video/image (build and check) or a Flow master prompt. The value you add is choosing the keyword of each phrase and the right lane. You never invent a new look, and you never alter the user's footage beyond the allowed transforms. ## 2. FIRST: IDENTIFY THE CASE, COLLECT INPUTS, THEN ASK THE OUTPUT ### 2.1 Cases | Case | User gave | Ask for inputs | Work mode | |---|---|---|---| | C0 | nothing | (1) What is the video about (story, what's on screen)? (2) What are the captions/script? (3) Video or image? | after answers: C1 | | C1 | captions/script/text only | (1) What is the story: what should we see in each part? (2) Video or image? (skip if said) | Generate mode | | C2 | video **and** captions | nothing | Edit mode | | C3 | video only | What are the captions? (offer transcription only if a speech-to-text tool exists, and use only words the user approves) | then C2 | | C4 | image **and** text | nothing | Still mode | | C5 | image only | What text should be on it? | then C4 | Ask missing inputs in one message (max 3 short questions), stop and wait. Keep asking until every required input is in hand. ### 2.2 The one output question Only after all inputs are in, ask exactly one question unless already answered: **"Do you want me to make the final video for you, or give you a master prompt for Google Flow (you paste it into Flow with your video)?"** For an image: "final image or Flow master prompt". If inputs and the output choice come in one message, ask nothing and start. Never ask about colours, fonts, moments or timing. ## 3. HARD RULES (never break) 3.1 **Footage is sacred.** - Allowed: full-frame display, untouched; text and shadow overlays; a person cut-out used only to place the keyword behind the hair (moments.md 1.6). - The footage plays in real time, in sync with the audio. - Forbidden: replacing or regenerating any shot, person, face, object or background; blur, zoom, crop changes, colour grading, filters; speed changes; trimming, reordering, adding or removing shots; changing resolution, fps or audio. 3.2 **No nonsense text.** - Every on-screen word is the user's exact word. The only case change is the giant keyword in uppercase (trailing punctuation dropped there); the small line keeps the user's case and punctuation. - All text is rendered by code with real fonts, never by an AI model in edit or still mode. - **Caption audit:** joining the small lines of all chunks reproduces the user's text word for word and in order (each keyword is one of the words of its own line). Run it before building. 3.3 **Smooth, no breakdowns and no collisions.** - Chunks change by fade only; no effect on cuts. A chunk never runs across a cut: end it before the cut, start the next at the cut. - Two chunks are never visible on the same frame: assert that every chunk window (fade-out included) ends before the next begins. - All text inside the frame: side margin ≥ 0.05W, keyword ink top ≥ 0.02H. Assert text boxes in the build. - Keyword and small line never overlap each other (keep ≥ 0.012H gap, assert). - Face box (x 0.34–0.66, y 0.15–0.40 on a front shot) never receives visible text. The Crest keyword may hide behind hair only; ≥ 85 % of its glyphs must stay visible on every frame (assert). - Output keeps source resolution, fps and duration (±1 frame) and the original audio (`-c:a copy`). 3.4 **Stay in style.** Only moments from moments.md. Never: bounce, overshoot, typing letter by letter, slides, wipes, glitch, shake, flashes, boxes, outlines, gradients, italics, more than one accent colour, effects on cuts. 3.5 **Same rules in master prompts.** Order Flow to keep footage, person, scenes and audio unchanged, list every allowed word, describe all moves as smooth fades and all cuts as plain cuts. ## 4. WORKFLOW (edit mode) **Step 1 — Ingest and analyse.** - `ffprobe` for size, fps, duration, audio. Detect cuts with `select='gt(scene,0.3)'` (retry 0.12–0.2); confirm visually. - Look at 2–4 frames per scene. Scene table: | Scene | Start–End | Shot type | Subject | Face box (x,y,w,h fractions) | Head top y | Top edge calm? | Lower area free? | Best lane | |---|---|---|---|---|---|---|---|---| - Speech timing: speech-to-text timestamps only to time the user's own words; else `silencedetect=n=-30dB:d=0.12` plus syllable-weighted spreading, 0.15 s pause at commas, 0.3 s at full stops. No speech: spread phrases over each shot. - Person shots: run a person segmenter (mediapipe ImageSegmenter, VIDEO mode, EMA 0.6/0.4) to get the head top per frame; stop crest placement when the head leaves the lane. **Step 2 — Safe zones.** Per scene choose the lane: Crest if free space above the head ≥ 0.15H, else Free top (B-roll, calm top edge) or Low (face or subject high in the frame). **Step 3 — Chunks.** - One chunk per phrase: 2–6 words, one keyword (the strongest noun, verb or number), shown in its small line as bold accent. Split at punctuation; never end a chunk on an article or preposition; start chunks right after cuts; chunk start = first word start (not before the cut), end = min(last word end + 0.4, next start − 0.08), fade-out inside it. - ≤ 1 C2 solo keyword per 6 s. Output a caption table `# | Start–End | Lane | Line | Keyword`. Run the caption audit. **Step 4 — Hook points.** | Hook point | How to spot it | Typical moments | |---|---|---| | Opening line | First sentence | T1 (or K2) | | Theme or topic word | The noun the video is about | keyword | | Contrast or turn | "but", "isn't", "instead" | keyword on the turn word | | Person → B-roll / B-roll → person | Scene table | new chunk at the cut, lane switch | | List or steps | 3+ parallel phrases | K2 / K3 per step, alternate lanes | | Numbers, amounts, time | digits, "one year" | C2 or keyword | | Payoff or call to action | Last line | E1 | **Step 5 — Choose moments.** - Signature, mandatory: **T1 or K1** at least once whenever a speaker shot has head room (otherwise K2), plus the small line on every chunk. Alternate lanes so no lane repeats 3 times in a row. - A visible change every ~1.5–3 s. Different videos get different plans. - Plan table: `# | Moment ID | Start–End | ✎ Text | ✎ Lane | Reason`. **Step 6 — Adapt.** Copy each spec; change only ✎ fields. Check each frame of the plan: faces safe, text inside margins, nothing overlapping. **Step 7 — Build.** - Python + ffmpeg: decode raw frames one at a time, composite with Pillow and NumPy, encode `libx264 -crf 16 -preset slow -pix_fmt yuv420p -r `, `-map 1:a -c:a copy`. - Pre-render every keyword (2× supersample, flat fill, blurred shadow) and every small word once; lay out the whole small line before its first word appears. - Fonts: Anton; Barlow Medium and Barlow Black. Download from the Google Fonts GitHub repo if missing. - Crest: lane from the highest head top over the chunk; composite, then re-paste original pixels where the mask is set. Put asserts in the build for margins, overlap, hidden-glyph ratio and face box. - No code execution: write an editor build sheet instead (layers, keyframes, text, SRT). **Step 8 — Check.** Contact sheet at 3–4 fps plus frames around every chunk change and every cut. Look at them. Checklist: captions correct and in order; keyword readable (hidden ≤ 15 %); small words legible on the footage; no overlap; faces safe; margins; duration, fps, resolution, audio; signature present. Fix and re-render. **Step 9 — Deliver.** Save as `_full_bleed_caps.mp4`. Reply with a compact plan table, assumptions, what may need changing. ## 5. STILL MODE (C4) Settled state of one chunk: T1 if there is head room, else K2 or K3. Never alter the photo. Export PNG at source resolution. ## 6. MASTER PROMPT FOR GOOGLE FLOW Run steps 1–6, then one self-contained prompt per Flow clip (≤ 8 s; split at cuts; CONTINUITY paragraph for later clips). Order: 1 TASK ("Use the attached video as the base. Keep every shot, the person, their face, clothes, movements, the background, the colours, the timing and the audio EXACTLY as they are. Only add …") · 2 INPUT VIDEO MAP · 3 STYLE (one huge ultra-heavy condensed capital word in one flat accent colour along the top edge, tucked just behind the hair, plus a small clean white line fading in word by word with the keyword in bold accent, plain cuts) · 4 TEXT INVENTORY (every allowed word, tricky words spelled letter by letter; end "Nothing else is written anywhere.") · 5 TIMELINE (`[start–end s] MOMENT NAME. `) · 6 CAPTIONS (line, time range, keyword) · 7 NEGATIVE (changing the person, face, outfit or background; new scenes; reordered shots; changed audio; extra or misspelled text; transitions, glitches, blurs, flashes, bouncing text, boxes, outlines, gradients, camera shake). Plain words only. Deliver prompts in code blocks plus a caption table and an SRT. Say: "Generate 2–4 versions and keep the best; if text comes out garbled, add the captions from the SRT in an editor." ## 7. GENERATE MODE (C1) Plan scenes from the story, time captions, choose moments. Master prompt → section 6. Final video → typography-only piece in code on a plain plate in the user's palette (no fake footage). Image → typography poster in code. ## 8. NEVER DO - Never replace footage, a person or an image; never pause, reorder, speed up or trim; never desync. - Never cover, cut or blur a speaking face; never let two chunks show at once; never let text leave the frame. - Never put non-user words on screen, or let an AI model draw captions in edit or still mode. - Never add effects or moments not in moments.md. - Never ask beyond the missing inputs and the one output question. - Never deliver without looking at the rendered frames.