Split Animated Short — user talking head (taller live band)
HARD RULE (Kevin 2026-09-03): Final video is 1080×1920. Never 720×1280.
Never scale the user's talking-head down to 704×640. Their clip is already
1080p. Instagram/TikTok/YouTube Shorts display at 1080×1920; a 720p master
gets upscaled and looks like mud. If ffprobe on renders/final.mp4 is not
1080x1920, delete it and start over. Do not publish 720p.
Same flagship format as split-animated-short, except the bottom band is the
clip the user hands you, not a HeyGen talking-photo. The clip's audio is
the master timeline. Animations are authored per script — zero pixels from any
reference reel except its words, if one is given.
Live talking-head footage needs more band height than the HeyGen 45% lock
so hats/hair aren't clipped (Kevin 2026-09-01). Default band is 1056×960 at
y=936 on the 1080×1920 canvas (caption baseline rests ON the accent line at
y=BAND_Y-5, letters fully above the head; Kevin 2026-09-18/19). Round all four
corners of the band mask — never BAND_H+60 (that square-cuts the bottom
flush to the canvas). ~24px of canvas stays under the card.
PACK LOCK (Kevin 2026-09-03, opensource-100 recut): animations sit
just above the captions, not up against the top of the frame. A top-hugging
pack leaves a vacant band in the middle of the screen. Locked numbers:
AH = 770 # animation layer height
LAYER_Y = 90 # composite at (0, 90) → layer covers canvas y=90..860
PACK_DY = 210 # add to every place()/conveyor/orbit/ticker/ghost cy
CAP_Y = 867 # top of the caption zone (pack reference); the word itself is
# baseline on the accent line at BAND_Y-5, anchor="ls" (Kevin 2026-09-19)
BAND_Y = 936 # talking-head band (Kevin 2026-09-15: 960 was too low / clipped the bottom)
Layer ends ~7px above the captions. Pack numbers from
clone-projects/opensource-100-animated/render.py (historical, not bundled). Never LAYER_Y=42 +
AH=840 with heroes at cy≈180–280 — that was the vacant-middle bug. Never
design at 853 and downscale, and never render the whole video at 720.
BEST EDIT YET (Kevin 2026-09-26): examples/social-agents/render.py
is now the top reference (it outranks gitnexus). What made it: the user's b-roll used three ways
(banner crop as the reveal on the product name; a live terminal card that starts zoomed on the
command, then pulls back and scrolls with the output; single-line "LIVE FROM THE REPO" crops,
left part of the line only so the text stays readable). Spoken feature lists become a ticking
checklist card with one bespoke visual per item (real reel covers/thumbnails from
brand-content + Downloads, mock inbox / caption / hashtag / SEO-climb cards). GIFs whose burned-in
text matches the spoken line word for word. Stamps only on each section's dramatic beat.
Reuse its Broll / crop_img / strip_card / broll_view(zoom=) helpers whenever b-roll is supplied.
STATUS QUO (Kevin 2026-09-19, "SOOOOO GOOOOD that should be the new status quo"):
examples/gitnexus/render.py is the current gold reference. Everything
below still applies; what made it land: Luckiest Guy captions resting on the accent
line with a tight glow, the user's own screen recording as the b-roll hook (mystery
"?" over it) and as per-word crop cuts later, a meme beat matched to the spoken line
(Hangover calculation meme on "understand any piece of code") followed by a custom
motion piece on the next word (spinning wireframe globe_card on "planet"), terminals
that type the spoken action, a legend card lighting up per component, stamps on the
punch words, a kinetic headline + lower third + counter. Match that energy on every cut.
LOOK LOCK (Kevin 2026-09-10, china-robots density + github-research-agent wash):
gold-standard density / titles / GIFs: china-robots (render.py no longer on disk; use social-agents / gitnexus as code refs).
Slot brightness lock: clone-projects/github-research-agent-animated/render.py (historical, not bundled)
(Kevin 2026-09-10: "background is too dark" on the near-black CHAR wash).
Copy china-robots energy, but use the lifted graphite textured_bg — lift
patches, stronger accent glow, slot_vignette(..., a=22). Do not ship
Megan paper/sage/coral, and do not use near-black CHAR=(14,15,18) as the
slot wash. Locked colors (override after exec of animation_assets_and_beats.py).
Type lock (Kevin 2026-09-15 + 2026-09-19): overlay / component text is Oswald Bold
(templates/fonts/Oswald-Bold.ttf, loaded via templates/fonts.py as AR).
Title cards, chips, huge_word, counters, name plates, ghosts. Kinetic captions
are Luckiest Guy (templates/fonts/LuckiestGuy-Regular.ttf, CAP in fonts.py):
CapCut-style chunky comic caps, white fill (KEY_COL fill on keywords), 7px black
stroke, no drop shadow (Kevin 2026-09-19 "DOG" screenshot). Copy both ttfs.
Never Arial in the slot. Terminals / code rain / tickers stay Menlo (ML)
— Menlo.ttc must be opened with index=0 or glyphs double-print. Oswald is
the condensed display face (the big AND over a UI). Copy fonts.py +
fonts/Oswald-Bold.ttf into every workdir.
INK=(10,11,14) SILVER=(198,204,214) STEEL=(92,98,108)
GRAPHITE=(36,38,46) CHAR=(48,50,58)
NEON=(57,255,132) ORANGE=(255,122,24) RED=(255,48,64)
CORAL=ORANGE PAPER=GRAPHITE
AR=Oswald Bold CAP=Luckiest Guy (captions only) ML=Menlo (terminals only)
Captions: silver body, KEY_COL neon/orange/red on keywords, black shadow,
Oswald Bold 66px (same face as the title cards). Chips: graphite + accent
bar, Oswald. Cards: graphite, Oswald. Slot accent bars like
china-robots (orange/neon/red per section). Hero titles are **960px wide**.
User B-roll in the slot should fill ~1000×500, not a small inset.
TOPIC LOGO CONVEYOR (Kevin 2026-09-10 — staple). The horizontal scroll
of brand icons tied to the video (voice-agents: OpenAI / Cursor / Docker /
Cloudflare / … under the faces) is required on every cut. Not optional
decoration. See 5d below.
INTRO BILLBOARD (Kevin 2026-09-14): the hook / cold-open must read from
across the room. Giant numbers, giant figure circles, giant logos — not a
contact sheet of 150–220px heads under a title. See 5b size lock. 150px
rounds are banned anywhere.
Do not call HeyGen. Do not use this skill when the user wants Megan,
Danny, or Kevin generated. That is split-animated-short.
Reference compositor + asset library: this skill's templates/. Per video,
create projects/<slug>-animated/ (slug from the clip filename or topic)
and adapt.
Env (only if publishing / staging a feed item): INSFORGE_* in
.env.local (repo or project root). Band prep is local: ffmpeg, OpenCV, Whisper.
Required input
The user must provide a talking-head clip. Accept:
- an absolute/relative file path (
~/Desktop/hook.mov, source/talking.mp4)
- a file they dropped into the chat / workspace
- a URL that is their talking-head (download with yt-dlp / curl immediately)
Refuse to start until the clip exists on disk. If they also drop a reference
reel URL (the thing to recreate visually), that is optional and only supplies
the script — never its pixels.
Vertical 9:16 is ideal. Horizontal/webcam is fine; prep will cover-crop.
Pipeline
Workdir. mkdir -p projects/<slug>-animated/{source,audio,renders,frames}
and cd there. Copy this skill's templates/ in (including apple_counter.py, light_fx.py,
fonts.py, and fonts/Oswald-Bold.ttf).
Prep the talking head (do this first — it is the timeline):
python3 "${CLAUDE_SKILL_DIR}/scripts/prep_talking_head.py" \
--clip "/ABS/PATH/TO/CLIP" \
--workdir . \
--whisper
Writes source/talking_head.mp4 (native resolution, never downscaled),
audio/narration.wav + .m4a, renders/talking_band45.mp4 (1056×960 @
30fps, rounded later in compose), source/meta.json (DUR, crop), and
audio/words.json.
Inspect band frames at 3 to 4 timestamps (the recorder re-frames the
head mid-clip). Crop rule for live heads: keep the full hat /
hairline in frame with a sliver of space above (backward caps sit higher
than Haar's face box). Default --head-pad is 0.35. If the crown is clipped,
lower --crop-top (and raise --crop-h to match the 1056:960 band aspect),
but never below the clip's own black region: prep scans the whole clip for
the first lit row and clamps the crop under it (content_top), and refuses
a band with black top rows (verify_band_top). A black strip above the
head is a failed prep, not a look. Do not letterbox the band. Do not scale
the band below 1056×960.
Get the script (words to animate).
- Default: the talking-head transcript (
audio/words.json) is the script.
- Extra script given → use it, but time beats to the clip's Whisper
stamps, not to the written script's imagined pacing.
- Extra URL given (IG/YT/TikTok to recreate) → scrape caption / Whisper
that source for copy only. IG: Apify
apify~instagram-scraper
(directUrls + resultsType: "details"), download videoUrl immediately.
YouTube/TikTok: yt-dlp. Then persona-swap / product-name-fix against the
caption. The talking-head clip still owns picture + audio.
Guard on-screen text. Em/en dashes are banned from UGC overlays (AI
tell). Censor spoken profanity on-screen Nick-thumbnail style (sh*t);
leave the clip's audio uncensored. If the talking head is not Kevin and
the optional source script names Kevin/Kev/Nick/Saraev, strip or swap
those names in overlay copy.
SOURCE REAL BRAND ART (do this before choreography). Walk the transcript
for every named product, tool, model, or company (Claude, Google, GitHub,
GitNexus, OmniRoute, GPT, Gemini, Llama, …). For each one, fetch a real
mark into assets/logos/<slug>.png and a social/product card into
assets/shots/<slug>.png when it exists:
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_brand_asset.py" \
--name claude
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_brand_asset.py" \
--name gitnexus --github abhigyanpatwari/GitNexus
Priority: Claude family is locked (Kevin 2026-09-03). Do not fetch a
favicon for Claude, Claude Code, Opus, Sonnet, Haiku, Fable, or Anthropic.
Copy the bundled marks and dance them:
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_brand_asset.py" --name claude
# writes assets/logos/claude.png (sphinx) plus claude-invader.png + claude-sphinx.png
- Invader (
templates/claude_marks.py → place_claude_invader): block
Space-Invader. Idle dance + walk cycle. Look: pass look_at=(x,y)
in layer pixels and the pupils slide toward that point (blinks on their
own). Grab: grab="right"|"left"|"both", grab_at=(x,y),
grab_t=0..1 (0 rest, ~0.55 reached, 1 holding/lifted). Pass hold=
an RGBA (use skill_chip("SKILL.md")) to stick a card to the hand
once grab_t > 0.55. Morph with morph=0..1 (starburst scatter).
- Sphinx (
place_claude_sphinx): official Anthropic starburst badge.
Use as the spinning mark for Opus / Sonnet / Haiku / Anthropic, and as
a secondary badge next to the invader.
Call place_claude(layer, cx, cy, lt, word="claude", look_at=..., grab="right", grab_at=..., grab_t=...).
Copy templates/claude_marks.py and assets/claude-*.png into the project.
For every other named product: official SVG/PNG (Wikimedia / simple-icons /
site favicon) → GitHub avatar + OpenGraph card → Google s2 favicon. Convert
SVG with qlmanage -t on macOS. A named product must appear as a logo,
icon, screenshot, or orbiting mark — never as a text-only pill if a mark
can be fetched. Punch near-white backgrounds to alpha; keep dark
full-bleed logos as round badges.
5b. SOURCE THE FACES (Kevin 2026-09-05). Whenever the transcript names a
company, model, or niche that has famous people behind it, put those people
on screen — viewers who recognize Dario, Sam, Elon, GaryVee, Hormozi lock in
harder than they do on a logo. Curated niche map lives in
scripts/fetch_figure.py (--list): claude/anthropic/opus/… →
Anthropic founders (Dario + Daniela Amodei, Jack Clark, Jared Kaplan, Chris
Olah, Tom Brown); spacex → Musk, Shotwell, Mueller; openai/chatgpt →
Altman, Brockman, Sutskever, Murati…; marketing → GaryVee, Hormozi, Godin,
Neil Patel, Brunson, Kotler, Ogilvy; business/founders/money → Buffett,
Bezos, Jobs, Musk, Cuban, Hormozi, Naval, Codie, Martell, Thiel; sales →
Cardone, Belfort, Hormozi, Ziglar, Tracy, Robbins; plus google, nvidia,
meta, microsoft, apple, tesla, amazon, xai.
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_figure.py" --niche claude --top 4
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_figure.py" --niche openai --niche marketing
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_figure.py" --name "Jensen Huang" --wiki Jensen_Huang --x nvidia --role "NVIDIA CEO"
# → assets/figures/<slug>.png (800x800 face-cropped) + <slug>.json {name, role, credit}
Sources: Wikipedia/Commons original → current X avatar (unavatar) →
Wikidata name-match last (it has returned the wrong "Tom Brown"; eyeball
any warn line). Always view the fetched portraits (contact sheet)
before choreographing; swap with --name/--x --force if a crop is a
stranger or a decade old. Choreography (templates/media_marks.py):
figure_row(layer, slugs, cx, cy, lt, t0, place, names=True) for a
founders lineup (2 faces on the intro, 2–3 later, staggered, alternating tilt),
figure_spotlight(layer, slug, cx, cy, lt, t0, place) when ONE person is
the beat (hero portrait + name plate + role), figure_card(slug, w=380) /
figure_round(slug, 360, ring=CORAL) as marks. Face lands on the spoken
word (word_onset(words, "anthropic")), never early. Pair the row with
the brand mark (Claude → invader + sphinx beside the Amodeis). Names in
plates are first names for rows, full name + role for spotlights.
Figure circle size lock (Kevin 2026-09-14: "make them much larger…
intro screens should be eye catching with big #s, figures, logos"):
the 150–220px rounds that kept shipping (phone-farm, anything-to-explain,
open-source-trap hook) read as thumbnails, not icons. Floor:
- Hook / intro / cold-open: these ARE the billboard. 1 face →
figure_spotlight(..., size=560) or figure_round(..., 520–620).
2 faces → figure_row(..., size=480, gap=12). Never 3+ tiny heads on
the first section — pick the two most iconic. Pair with a 960-wide
title or a odometer_card / counter_card(..., h=440) or a 400–520px logo
badge; the slot should feel huge, not busy. Conveyor marks stay 110–140
and sit under the giants, they do not replace them.
- Body sections: single circle ≥280; 2–3-up row ≥320. Spotlight ≥480.
- Banned:
figure_round(..., 150) / size=170 / size=190 anywhere.
If a 3-up row cannot fit at 320, drop to 2 faces and go bigger.
Max one lineup per section. Intro faces may be the hero for up to 2.5s;
later sections treat extra faces as supporting marks, still at the floor
above — never shrunk to make room for a fourth.
5c. PULL REACTION GIFs (Giphy API, Kevin 2026-09-05). Punchlines, flexes,
shocks and "I'm sorry CapCut" jokes get a real reaction GIF, not a text pill.
GIPHY_API_KEY is in .env.local (repo or project root); the dashboard's favorited
allow-list (gifs table) is available via --favorites.
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_giphy.py" --query "mind blown" --list # look first
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_giphy.py" --query "mind blown" --slug mind-blown --pick 1
python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_giphy.py" --favorites --query money --slug money-rain --mark-used
# → assets/gifs/<slug>/f0001.png … @30fps (≤4s, 720px wide) + meta.json
Pick by title from --list (Kramer / Jon Stewart "mind blown" over a
12-second anime loop). Eyeball frame 1 before using: drop GIFs with
slurs/subtitles, the wrong person, or a joke that misses the line.
Play with gif_card(..., w=400, frame="round") for pairs under a title.
Rules (china-robots lock): one GIF per beat, 5–8 per video, never the
hero for >2.5s, never covering a 960px title card. Later-section stack is
title at cy≈125, pair of ~400px GIFs at cy≈450 (left/right). Hook
frame 0 is the figure/number/logo billboard — do not cover it with a GIF
pair unless the hook is B-roll. GIF audio is never mixed in. Rating pg-13.
5d. TOPIC LOGO CONVEYOR — staple (Kevin 2026-09-10). Every video gets a
full-width horizontal scroll of the icons associated with this edit
(the stack, products, companies, tools in the story — not random logos).
Voice-agents showed OpenAI / Cursor / Docker / Cloudflare / … sliding
under the faces. China-robots used Unitree / Tesla / NVIDIA / Meta /
Boston Dynamics on "hardware + AI". That lane is the touch Kevin wants
every time. Conveyor marks stay 110–140px; they are the stream, not the
intro hero. On the hook, also place() 1–2 giant logos (360–520px)
as billboard pieces next to the big figures / number (Kevin 2026-09-14).
Fetch 5–8 real marks in step 5 (fetch_brand_asset.py). Punch white
pads. Then one lane, one y-band, via guarded_conveyor:
from media_marks import topic_marks
marks = topic_marks(["openai", "cursor", "docker", "cloudflare", "vapi"], size=120)
# y is authored cy; helper adds PACK_DY like china-robots
guarded_conveyor(layer, 400 + PACK_DY, max(0, lt - t0), marks,
conveyor_marks, name="topic-lane", speed=180, gap=22)
Rules:
- At least one topic lane per video. Cold-open it on the hook when
the stack is the point, or enter on the spoken product/category beat.
- 5–8 marks, ~110–130px, graphite badges (dark slot). Full slot width.
- One moving stream at a time (already locked). The lane owns its
y-band; no second conveyor / orbit on the same band;
lanes.reset()
every frame.
- Marks must match the video. Do not fill with leftover icons from
another project. Eyeball each PNG (wrong logo / broken SVG → drop).
- Do not sit the lane on the caption line. Center ≤
770 - size/2 - 10
after PACK_DY (half-sliced icons are a known fail).
AUTHOR THE ANIMATION (fresh per script): split narration into sections
at spoken anchors using audio/words.json + source/meta.json DUR.
Density + look are locked to the china-robots recut
(china-robots (render.py no longer on disk; use social-agents / gitnexus as code refs), Kevin 2026-09-10):
that is how animated every video in this format should feel. Target
6–10 elements on screen at once, not 2–3 lonely cards. Prefer
motion graphics over copy: spinning logos, GitHub/product chrome
(shot_card), terminals with ticking lines, skill-file grids, computer
mockups, scan HUDs, force-directed graphs, brand badges, code
rain, locks/skulls/bombs when the topic is hacks. Text cards caption a
graphic, they are not the graphic.
Do not default every beat to orbit_marks. The topic logo conveyor
is mandatory (see 5d). Rotate the other motion: zigzag, explode,
ticker, cascade, loop-arrows, Ken Burns. One orbit per video is plenty.
Scene content must MATCH what's being said. Set DUR from meta.json,
not the template's 62.9s.
Cold open (locked, Kevin 2026-09-02): frame 0 of the video must
already be packed. Scroll-stop on TikTok/Reels shows the first frame.
Atmosphere (terminal, skill tiles, ghost word, a logo that is legal to
show) uses place(..., t0=-0.4, dur=0.01) so the ease-in has already
finished. Never start the first beat at t0=0 with dur=0.3 — that
leaves frame 0 blank. Skip the white flash on the hook section for
the same reason.
Beat t0 is the spoken word, not the section start. For every punchline
(a product name, a number, a claim), look up that word's start in
audio/words.json and set t0 = word_start - section_start. Max lead is
0.1s. Never put "300" / "2B" / a named plugin on screen while he is
still winding up to say it — that spoils the line. Do not preview later
named products in an earlier section (e.g. don't flash OmniRoute during
"three core plugins"). Cold-open atmosphere is the exception: generic
(computer, skills, "installing") can be up before the first named product.
6b. EVERY SPOKEN NUMBER GETS A COUNTER (Kevin 2026-09-05). Money, GitHub
stars, downloads, views, followers, counts, years, percentages, "10 p.m.",
"3 times a day": if the transcript says a number, a count-up animation
lands on it. Run the detector while planning beats:
python3 "${CLAUDE_SKILL_DIR}/scripts/number_beats.py" # reads audio/words.json
# 26.40s 100 socials <- "100 socials"
# 48.46s $20/mo <- "20 bucks a month"
# 51.02s $2B <- "$2 billion"
number_beats(words) (in hyper_edits.py) understands digits, spelled
numbers ("twenty five", "a hundred"), scales ("2 billion", "9.3k"), money
("$20", "20 bucks"), "%", "3 times", "10 p.m.", "per month" and a trailing
label word (stars, downloads, views, socials, agents…). It skips bare
version digits ("Gemma 4", "LTX 2.5"). Fix Whisper mishears in words
first (see the nano-banana / "2 .5" fixes) so the detector sees the real
number.
Apple counter lock (Kevin 2026-09-29: "find and implement a modern apple
inspired odometer that'll replace the one we currently have, it's bad").
Every hero number, big or small, renders through templates/apple_counter.py
(counter_card and odometer_card in media_marks both delegate to it, so
old call sites just work). It is modeled on iOS contentTransition(.numericText())
and keynote stat slides:
- SF Pro Display Bold digits (macOS
/System/Library/Fonts/SFNS.ttf,
variable: weight 700, optical size 96) in tabular cells, on a frosted dark
glass card with a hairline top highlight and a faint accent glow. Label =
tracked caps in SF Pro Text with an accent dot. No boxes, wells, cages,
progress bars or orange strips (the old boxed-reel odometer is dead).
- Rolling digits: a place that changes slides up a short hop (0.34 of
the cell) while the old digit fades out and the new one fades in, both
edge-faded so nothing pokes above or below the line. A place spinning
faster than about one digit per frame renders as ONE speed-blurred digit
(true vertical box blur), never a half-and-half crossfade: that flickers
as doubled digits.
- Odometer carry: a place rolls only while every place below it is on 9
and rolling, so the count never shows the next digit early (no
"2,992,000,000" on the way to 2 billion).
- No leading zeros: a new leading digit and its comma slide + fade in as
the value reaches them, and the figure re-centers smoothly. Frame 0 of a
count shows a clean "0", not "0,000,000,000".
- Full figures with live commas.
2,000,000,000 not 2B. Compact
"2B" / "1.5M" is a chip or caption only, never the hero count.
- Easing: ≥10k eases in-out so thousands -> millions -> billions
visibly tick; smaller figures expo-out and settle. One tiny scale breath
as it lands, never a pulse.
- Counts vs years: a bare 1900-2099 with no label is treated as a year
(no comma, rolls from value-40). Any counted figure ("2000 person academy",
"1950 members") passes
"style": "count" or a label and counts from zero
with a comma (Kevin 2026-09-29: "2000" started at 1960).
- Timing. Park the card at 0 up to ~0.2s before the number word (or
from the section start as atmosphere). Count on the spoken number,
land on the unit / scale word ("stars", "billion"). Max lead 0.1s.
- The counter is the only big piece while it counts. Exit GIFs, the
invader, the conveyor and hyperframe punches off the card; a light_hit
ring on the landing word is fine.
- Sizes: hero ≥10k
w=1000, h=400; smaller heroes w=440-560, h=300-320.
Author the hero beat by hand:
NUM = {b["t"]: b for b in number_beats(words)}
bt = NUM[1.52] # "two billion"
t0 = trel("two", a) # spin starts on the number
t_land = trel("billion", a) + 0.15
p = 0.04 if lt < t0 else clamp01((lt - t0) / max(0.12, t_land - t0))
place(layer, odometer_card(bt, p, h=400, label="tokens / day"),
540, 200, lt, trel("spend", a), dur=0.22, exit_at=t0 + 2.2)
Smaller numbers (100, 646, 20%, $20) use counter_card (same Apple
counter, sized to the figure). Fallback:
auto_counters(layer, BEATS, t, a, place, handled=HANDLED) once per frame
after the section choreography (HANDLED = the t values you animated
yourself). Counter = a big piece (stacking rule applies): exit the
previous hero before it lands, never park it on a stream lane.
- Pacing (locked): nothing on screen >2.5s as the hero; supporting
orbiting marks / code rain / ghost words stay through the beat. 0.3s
directional entrances with ±8° tilt + overshoot pop; exits fly up before
the next beat; per-section Ken Burns zoom; white flash cut at section
starts except the first section; ghost words parallax-drift; something
always moving (spinning marks, orbiting logos, ticking checks, terminals,
a lane). Motion variety, not pulse (Kevin 2026-09-11): no element
scale-pulses or bobs in sync; big pieces are still after they land;
rotate entrances (slam, whip, drop-bounce, tilt-in, typewriter) so no
two consecutive beats use the same move. If a stretch of >0.4s would only show a ghost word, add
another graphic.
7b. HYPER-EDIT LAYER (locked, Kevin 2026-09-05) — templates/hyper_edits.py.
The motion graphics are the content; the hyper-edit is the cut. Every
video gets all of these, deterministic in t:
- Punch-ins and shake go on the ANIMATION SLOT, never the talking head
(Kevin 2026-09-05). Per frame:
layer = punch_zoom(layer, punch_scale(t, PUNCH_T, amt=0.045)) then sx, sy = shake_offset(t, HIT_T, amp=14) and frame.alpha_composite(layer, (sx, LAYER_Y + sy)).
Punches are RARE (Kevin 2026-09-12: "far too many zoom punch
effects, annoying to watch"). PUNCH_T = punch_beats(words, PUNCH_WORDS): hand-pick ONE hero word per section (the product name,
the number, the CTA word), >=8 s apart, max 6/min, amt 0.045. Never
keyword_onsets(words, KEYWORDS) for punches; KEYWORDS only colour
captions. speed_streaks rides the same short list. Shake = section
cuts + at most 3 claims. The band is composited at a fixed
(12, BAND_Y) with no zoom or offset, always.
- Hyperframes = 1–2 frame accent inserts on cuts.
hyperframe(frame, t, CUT_T, FPS, region=(0, LAYER_Y, W, AH)) cycles white → ink → invert →
RGB-split so no two cuts flash the same. Animation slot only; the band
never flashes. Never on the hook (frame 0 stays packed and clean).
Never on an odometer while it is counting (Kevin 2026-09-15: the
constellation overlay sat on top of the digits).
- Whip cuts between sections. Replace the flat white flash with
whip_wipe(prev_layer, layer, lt / 0.16, direction=whip_dir(name)) for
the first 0.16s of a section (outgoing scene pushes out motion-blurred,
incoming pushes in). Whip or hyperframe on a given cut, not both.
- Shake on impact.
HIT_T = section cuts plus the 3 to 5 biggest
claims; ≤0.26s, decays; applied to the slot offset (above).
- Spring / overshoot entrances.
spring_preset(t, "snappy"|"bouncy"| "heavy"), ease_back_out, slam_in(img, p) for hero numbers (1.6× →
1 with overshoot). Rotate: not every card gets the same pop. Use
entrance(k) for GIFs and cards so consecutive pieces differ, and keep
light_hit / shake / hyperframe for the single dramatic beat of a
section (Kevin 2026-09-12).
- Freeze hit (
freeze_hit(band, p)) for a record-scratch beat
("so I'm sorry CapCut"): band freezes, zooms 12%, paper tint + ink border
for ~0.5s, then resumes. Max one per video.
- Text fx:
count_up(300, p, suffix="%") on stats (expo.out),
typewriter(text, p) in terminals, highlight_sweep under the claim,
caption_impact(t, onset, key) scales the caption with a squash bounce.
Density check: the hyper-edit should make a 60s video feel like it has
~40 cuts even though the band is one continuous take.
7c. No HTML overlay layer (Kevin 2026-10-02: "its actually bad"). The HyperFrames
hf_layer overlay (render_hf_layer.sh, hf_layer_frame) is removed from the skill.
Everything in the slot is drawn in the PIL compositor: kinetic titles, lower thirds,
counters (apple_counter.py), terminals. Do not bring back an HTML/GSAP overlay.
7d. LIGHT FX LAYER (locked, Kevin 2026-09-10). templates/light_fx.py.
The slot should feel lit, not flat cards on a flat wash. Every video
gets a cheap light pass on the animation slot only (never the band):
```python
from light_fx import (
scanlines, hud_scan, neon_grid, slot_vignette,
bloom_orb, rim_pulse, light_hit, light_rays, speed_streaks,
caption_bloom,
)
# atmosphere — every frame, under or just over the graphics
scanlines(layer, t)
hud_scan(layer, t, accent)
neon_grid(layer, t, STEEL)
bloom_orb(layer, invader_x, invader_y, 200, accent, a=70)
# hits — same t0 as the spoken word / GIF land / title slam
light_hit(layer, 540, 300, t, t0, ORANGE) # ring + sparks + flare
speed_streaks(layer, t, PUNCH_T, NEON)
slot_vignette(layer)
# caption glow (draw on the canvas BEFORE the word)
caption_bloom(frame, x, y, tw, 66, KEY_COL[wd] if key else SILVER) # tight halo (word height), a<=40
```
Atmosphere (scanlines + HUD scan + floor grid + a bloom behind the
invader / hero) is on from frame 0. `light_hit` fires on every keyword
punch, section cut, GIF land, and title slam. `light_rays` is reserved
for the CTA / one hero flex — not every section. Copy `light_fx.py`
into the workdir with the other templates.
Compose (templates/split_55_45_compositor.py, adapted in the workdir):
- Canvas: 1080 × 1920. If an old project still has
W, H = 720, 1280,
change it before encoding. Coordinates are 1080-space (center x=540).
The template's Megan example still writes 720-era numbers and wraps them
with s() (×1.5). New choreography should use 1080 numbers directly and
must not double-wrap.
- Animation layer: 1080 × 770, composited 1:1 at
(0, LAYER_Y)
with LAYER_Y = 90 (canvas 90..860). Apply PACK_DY = 210 inside
place() (and conveyor / orbit / explode / zigzag / ticker / waveform /
ghost y) so the pack meets the caption line. Clamp y so assets stay
inside the 770 slot. After the offset, heroes land around canvas
y≈500–660; footer chips / receipts kiss y≈850. Cards ~960–990 wide,
hero numbers ~960×400–520 (odometer_card for ≥10k, else counter_card h=380–480, intro h≥440),
intro logos 360–520px, body logos 280–360px, conveyor marks 110–140.
Author place(..., cy) in the old 200–400 hero range and let
PACK_DY drop them — do not also author at cy≈500 or they will
clip the captions. Side inset:
keep every asset fully on-canvas. Left/right edges stay inside
x=36..1044 (SAFE_X). A ~450px file-tree / terminal parked at
cx=165 gets sliced off the left. Side-column pieces: cx ≥ 270
for ~450px cards, cx ≥ 180 for ~180px icons. Prefer frm="up" /
"down" for left-column assets. Do not R(..., 0.78) shrink, and
do not design at 853 then resize((540, 640)).
- Band: 1056×960 at y=936, rounded corners r=60 on all four sides
(never
BAND_H+60 — that square-cuts the bottom flush to y=1920).
~24px of canvas stays under the card (Kevin 2026-09-15: y=960 sat too
low and clipped the chin/body). 12px side margins.
Read renders/talking_band45.mp4 (already 30fps from prep). Hold the
last frame if the clip runs short of DUR.
- Kinetic captions sit on the accent line on top of the band (Kevin
2026-09-18: "the text should be sitting on that pink line"; 2026-09-19:
"the captions need to be above talking head" after a straddled word
overlapped the cap; then "has to sit on top of that line, it's on it a
bit"): Luckiest Guy,
anchor="ls", stroke_width=7, drawn at
y = BAND_Y - 8 - 7 - 3 so the STROKE's bottom edge touches the top of
the accent line (line top is BAND_Y-8). Never center the word on the
line, never let the stroke overlap it, never float it with a gap. One word, Oswald Bold ~66px, pop on word
onset; KEYWORDS use KEY_COL (neon / orange / red) and ~18% bigger;
body words are silver on the dark slot; black shadow. Caption windows
disjoint using Whisper word times. Same face as title cards / chips /
huge_word — never Arial.
- Band file is
renders/talking_band45.mp4 (prep output). Hard-fail if missing.
Encode + deliver: frames → ffmpeg + the clip's narration audio
(audio/narration.m4a), crf 16. Review a tiled overview + 2–3 full-res
frames for collisions / crop. Stage a feed item in
brand-content/<persona-or-brand>/carousels/ only if publishing. Publish
only on Kevin's go.
Encode
ffmpeg -y -framerate 30 -i frames/out5/f%05d.jpg -i audio/narration.m4a \
-c:v libx264 -pix_fmt yuv420p -preset medium -crf 16 -c:a aac -b:a 192k \
-movflags +faststart -shortest renders/final.mp4
ffprobe -v error -select_streams v:0 -show_entries stream=width,height \
-of csv=p=0:s=x renders/final.mp4
# must print 1080x1920 — anything else is a failed render
Use the clip audio, not a TTS stand-in. Do not mix in trending/copyrighted
sounds (YouTube Content ID).
Never mux audio/narration.wav (Kevin 2026-09-22, minecraft-astra-jev: "why is
the audio bad?"). That file is the 16 kHz mono downmix prep makes for Whisper. Mux
audio/narration.m4a (the untouched 44.1 kHz stereo track) or, better, map the audio
straight from the original clip with -c:a copy:
ffmpeg -y -framerate 30 -i frames/out5/f%05d.jpg -i "<original clip>" \
-map 0:v:0 -map 1:a:0 -c:v libx264 -pix_fmt yuv420p -crf 16 -c:a copy \
-movflags +faststart -shortest renders/final.mp4
ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate,channels -of csv=p=0 renders/final.mp4
# must print 44100,2 (or the source's rate) — 16000,1 means the Whisper scratch track got muxed
Learnings (carried over + talking-head specific)
Caption glow is a tight halo (Kevin 2026-09-19: "the glow the captions give off is
way too large"): caption_bloom radius comes from the word height (th*0.55+10),
alpha 40, never max(tw, th)/2+36. A wide word must not light up half the band edge.
Captions on the pink line (Kevin 2026-09-18, JEV video 3 screenshot): the
caption used to sit in the gap between the animation slot and the band
(CAP_BOTTOM - fs, descender padding left a visible gap). Kevin wants the
letters resting ON the line. First fix centered the word on the line and it
covered the top of the cap (2026-09-19: "the captions need to be above
talking head"). Locked: anchor="ls" at y = BAND_Y - 5 (baseline on the
line, glyphs above the head), drawn after the band. Then 2026-09-19 pm: "has
to sit on top of that line, it's on it a bit" + the DOG screenshot: caption
face is now Luckiest Guy with a 7px black stroke, baseline at BAND_Y-18 so the
stroke bottom rests on the line top; no separate shadow (the stroke is the
contrast). Title cards / chips stay Oswald. Template + both jev render.py updated; keep caption_bloom and the
black shadow so silver reads on the bright room behind the head.
Oswald Bold is the overlay face (Kevin 2026-09-15, screenshot of AND
over a code UI). Title cards, chips, huge_word, captions, counters, name
plates, ghosts: AR from templates/fonts.py → fonts/Oswald-Bold.ttf.
Arial in the slot is a regression. Terminals / code rain / tickers stay
Menlo (ML, ImageFont.truetype(..., index=0)). Copy fonts.py + the
ttf with the other templates. Condensed type can run 8–12px larger than
the old Arial sizes on the same 960-wide card.
Variety over repetition; effects for drama only (Kevin 2026-09-12: "on
the gifs and stuff, i like animations but a variety. punches and stuff
like that should apply for dramatic effect"). Rules: (a) no two
consecutive GIFs / cards enter the same way, rotate with
hyper_edits.entrance(k) (up / tilt-left / drop-pop / tilt-right /
scale-up / slide / drop-tilt / pop-right) or hand-pick; (b) a GIF appears
once per video unless it is a deliberate callback on the CTA; (c) impact
effects (punch, shake, light_hit, hyperframe flash, slam) are reserved for
the ONE dramatic beat of a section (the reveal, the number, the
punchline), never on every chip and badge; (d) between beats the slot
moves through entrances, lanes, terminals typing and GIF motion, not
through camera hits. If a section has two hits inside 4 s, cut one.
Punch-ins were on every keyword (Kevin 2026-09-12: "far too many zoom
punch effects. it makes it annoying to watch"). 30 keywords in a 37 s
clip = a zoom every second plus speed streaks on each. Locked:
punch_beats() in hyper_edits (one hero word per section, >=8 s apart,
<=6/min, amt 0.045); KEYWORDS never drive the zoom again. Energy comes
from entrances, GIFs, cuts and light hits, not from the slot jumping.
No black strip above the head (Kevin 2026-09-12, github-research-agent
screenshot: "it just doesn't look good"). Kevin's recorder frames the
head with a BLACK region above it and that boundary moves mid-clip
(705 -> 772 at 30 s), so a face-box crop that starts above it ships a
black bar at the top of the band for part of the video. prep_talking_head.py
now scans the whole clip (content_top, every 0.5 s, max first-lit row),
clamps crop_top under it, shrinks + upscales the crop when the picture
below is shorter than 982 px, and verify_band_top refuses a band with
black top rows anywhere. Rule: never fix this by lowering --crop-top;
raise it. Eyeball band frames at 3 to 4 timestamps (not one) before
compositing.
Partial edit / source passthrough (Kevin 2026-09-11, "only the first 15
seconds needs edit, the rest is handled by broll, captions throughout").
When the source clip already carries its own split (screen recording over
the head) after some point, set CUT_AT and animate only SECT before
it; from CUT_AT write the SOURCE frame verbatim (cv2 on
source/talking_head.mp4, native 1080x1920) + draw_caption() at the
same CAP_Y, plus one hyperframe on the cut.
Reference: clone-projects/first15-animated/render.py (historical, not bundled). Check the source's
own split line first (brightness-jump scan found y=944) so captions do not
land on his B-roll's content.
2026-09-11 (Kevin, second-brain): "far too much pulsing my friend. i like
effects but add variety." Three things were breathing at once: place()
bobbed EVERY element on the same 2.6s sine (the whole slot inhaled
together), the word-mark cards ran scale 1.04 yoyo repeat 3, and t
…(truncated)
1---2name: split-animated-talking-head3description: Turn a user-supplied talking-head clip (webcam, phone selfie, or recorded speaker) plus an optional script or source URL into a split-format vertical short — custom-generated animations in the top ~50%, the provided talking-head cropped into a taller rounded band across the bottom, kinetic captions synced to the clip's own voice, real product logos/screenshots whenever a named tool is spoken, real portraits of the notable figures behind any spoken niche (Claude/Anthropic, SpaceX, OpenAI, marketing, business, sales…), Giphy reaction GIFs on punchlines, a hyper-edit layer (keyword punch-ins, hyperframe inserts, whip cuts, shake) No HeyGen. Use when the user provides a talking-head video, webcam recording, selfie clip, or asks for the split animated format using their footage instead of a Megan/Danny/Kevin avatar.4metadata:5 source: https://skillmd.com/skills/wanfeng1028/split-animated-talking-head6---78# Split Animated Short — user talking head (taller live band)910**HARD RULE (Kevin 2026-09-03): Final video is 1080×1920. Never 720×1280.11Never scale the user's talking-head down to 704×640.** Their clip is already121080p. Instagram/TikTok/YouTube Shorts display at 1080×1920; a 720p master13gets upscaled and looks like mud. If ffprobe on `renders/final.mp4` is not14`1080x1920`, delete it and start over. Do not publish 720p.1516Same flagship format as `split-animated-short`, except the bottom band is the17**clip the user hands you**, not a HeyGen talking-photo. The clip's audio is18the master timeline. Animations are authored per script — zero pixels from any19*reference* reel except its words, if one is given.2021Live talking-head footage needs **more band height than the HeyGen 45% lock**22so hats/hair aren't clipped (Kevin 2026-09-01). Default band is **1056×960 at23y=936** on the **1080×1920** canvas (caption baseline rests ON the accent line at24y=BAND_Y-5, letters fully above the head; Kevin 2026-09-18/19). Round all four25corners of the band mask — never `BAND_H+60` (that square-cuts the bottom26flush to the canvas). ~24px of canvas stays under the card.2728**PACK LOCK (Kevin 2026-09-03, opensource-100 recut):** animations sit29**just above the captions**, not up against the top of the frame. A top-hugging30pack leaves a vacant band in the middle of the screen. Locked numbers:3132```33AH = 770 # animation layer height34LAYER_Y = 90 # composite at (0, 90) → layer covers canvas y=90..86035PACK_DY = 210 # add to every place()/conveyor/orbit/ticker/ghost cy36CAP_Y = 867 # top of the caption zone (pack reference); the word itself is37 # baseline on the accent line at BAND_Y-5, anchor="ls" (Kevin 2026-09-19)38BAND_Y = 936 # talking-head band (Kevin 2026-09-15: 960 was too low / clipped the bottom)39```4041Layer ends ~7px above the captions. Pack numbers from42`clone-projects/opensource-100-animated/render.py` (historical, not bundled). **Never** `LAYER_Y=42` +43`AH=840` with heroes at cy≈180–280 — that was the vacant-middle bug. Never44design at 853 and downscale, and never render the whole video at 720.4546**BEST EDIT YET (Kevin 2026-09-26):** `examples/social-agents/render.py`47is now the top reference (it outranks gitnexus). What made it: the user's b-roll used three ways48(banner crop as the reveal on the product name; a live terminal card that starts zoomed on the49command, then pulls back and scrolls with the output; single-line "LIVE FROM THE REPO" crops,50left part of the line only so the text stays readable). Spoken feature lists become a ticking51checklist card with one bespoke visual per item (real reel covers/thumbnails from52brand-content + Downloads, mock inbox / caption / hashtag / SEO-climb cards). GIFs whose burned-in53text matches the spoken line word for word. Stamps only on each section's dramatic beat.54Reuse its Broll / crop_img / strip_card / broll_view(zoom=) helpers whenever b-roll is supplied.5556**STATUS QUO (Kevin 2026-09-19, "SOOOOO GOOOOD that should be the new status quo"):**57`examples/gitnexus/render.py` is the current gold reference. Everything58below still applies; what made it land: Luckiest Guy captions resting on the accent59line with a tight glow, the user's own screen recording as the b-roll hook (mystery60"?" over it) and as per-word crop cuts later, a meme beat matched to the spoken line61(Hangover calculation meme on "understand any piece of code") followed by a custom62motion piece on the next word (spinning wireframe `globe_card` on "planet"), terminals63that type the spoken action, a legend card lighting up per component, stamps on the64punch words, a kinetic headline + lower third + counter. Match that energy on every cut.6566**LOOK LOCK (Kevin 2026-09-10, china-robots density + github-research-agent wash):**67gold-standard density / titles / GIFs: china-robots (render.py no longer on disk; use social-agents / gitnexus as code refs).68Slot **brightness** lock: `clone-projects/github-research-agent-animated/render.py` (historical, not bundled)69(Kevin 2026-09-10: "background is too dark" on the near-black CHAR wash).70Copy china-robots energy, but use the lifted graphite `textured_bg` — lift71patches, stronger accent glow, `slot_vignette(..., a=22)`. Do **not** ship72Megan paper/sage/coral, and do **not** use near-black CHAR=(14,15,18) as the73slot wash. Locked colors (override after exec of `animation_assets_and_beats.py`).74**Type lock (Kevin 2026-09-15 + 2026-09-19):** overlay / component text is **Oswald Bold**75(`templates/fonts/Oswald-Bold.ttf`, loaded via `templates/fonts.py` as `AR`).76Title cards, chips, huge_word, counters, name plates, ghosts. **Kinetic captions77are Luckiest Guy** (`templates/fonts/LuckiestGuy-Regular.ttf`, `CAP` in fonts.py):78CapCut-style chunky comic caps, white fill (KEY_COL fill on keywords), 7px black79stroke, no drop shadow (Kevin 2026-09-19 "DOG" screenshot). Copy both ttfs.80Never Arial in the slot. Terminals / code rain / tickers stay **Menlo** (`ML`)81— Menlo.ttc must be opened with `index=0` or glyphs double-print. Oswald is82the condensed display face (the big AND over a UI). Copy `fonts.py` +83`fonts/Oswald-Bold.ttf` into every workdir.8485```86INK=(10,11,14) SILVER=(198,204,214) STEEL=(92,98,108)87GRAPHITE=(36,38,46) CHAR=(48,50,58)88NEON=(57,255,132) ORANGE=(255,122,24) RED=(255,48,64)89CORAL=ORANGE PAPER=GRAPHITE90AR=Oswald Bold CAP=Luckiest Guy (captions only) ML=Menlo (terminals only)91```9293Captions: silver body, `KEY_COL` neon/orange/red on keywords, black shadow,94Oswald Bold ~66px (same face as the title cards). Chips: graphite + accent95bar, Oswald. Cards: graphite, Oswald. Slot accent bars like96china-robots (orange/neon/red per section). Hero titles are **~960px wide**.97User B-roll in the slot should fill ~1000×500, not a small inset.9899**TOPIC LOGO CONVEYOR (Kevin 2026-09-10 — staple).** The horizontal scroll100of brand icons tied to the video (voice-agents: OpenAI / Cursor / Docker /101Cloudflare / … under the faces) is required on every cut. Not optional102decoration. See `5d` below.103104**INTRO BILLBOARD (Kevin 2026-09-14):** the hook / cold-open must read from105across the room. Giant numbers, giant figure circles, giant logos — not a106contact sheet of 150–220px heads under a title. See `5b` size lock. 150px107rounds are banned anywhere.108109Do **not** call HeyGen. Do **not** use this skill when the user wants Megan,110Danny, or Kevin generated. That is `split-animated-short`.111112Reference compositor + asset library: this skill's `templates/`. Per video,113create `projects/<slug>-animated/` (slug from the clip filename or topic)114and adapt.115116Env (only if publishing / staging a feed item): `INSFORGE_*` in117`.env.local (repo or project root)`. Band prep is local: ffmpeg, OpenCV, Whisper.118119## Required input120121The user **must** provide a talking-head clip. Accept:122123- an absolute/relative file path (`~/Desktop/hook.mov`, `source/talking.mp4`)124- a file they dropped into the chat / workspace125- a URL that **is** their talking-head (download with yt-dlp / curl immediately)126127Refuse to start until the clip exists on disk. If they also drop a *reference*128reel URL (the thing to recreate visually), that is optional and only supplies129the script — never its pixels.130131Vertical 9:16 is ideal. Horizontal/webcam is fine; prep will cover-crop.132133## Pipeline1341351. **Workdir.** `mkdir -p projects/<slug>-animated/{source,audio,renders,frames}`136 and `cd` there. Copy this skill's `templates/` in (including `apple_counter.py`, `light_fx.py`,137 `fonts.py`, and `fonts/Oswald-Bold.ttf`).1381392. **Prep the talking head** (do this first — it is the timeline):140141```bash142python3 "${CLAUDE_SKILL_DIR}/scripts/prep_talking_head.py" \143 --clip "/ABS/PATH/TO/CLIP" \144 --workdir . \145 --whisper146```147148Writes `source/talking_head.mp4` (native resolution, never downscaled),149`audio/narration.wav` + `.m4a`, `renders/talking_band45.mp4` (**1056×960 @15030fps**, rounded later in compose), `source/meta.json` (`DUR`, crop), and151`audio/words.json`.152153Inspect band frames at **3 to 4 timestamps** (the recorder re-frames the154head mid-clip). Crop rule for **live** heads: keep the **full hat /155hairline in frame** with a sliver of space above (backward caps sit higher156than Haar's face box). Default `--head-pad` is 0.35. If the crown is clipped,157lower `--crop-top` (and raise `--crop-h` to match the 1056:960 band aspect),158but never below the clip's own black region: prep scans the whole clip for159the first lit row and clamps the crop under it (`content_top`), and refuses160a band with black top rows (`verify_band_top`). A black strip above the161head is a failed prep, not a look. Do not letterbox the band. Do not scale162the band below 1056×960.1631643. **Get the script (words to animate).**165 - Default: the talking-head transcript (`audio/words.json`) **is** the script.166 - Extra script given → use it, but **time** beats to the clip's Whisper167 stamps, not to the written script's imagined pacing.168 - Extra URL given (IG/YT/TikTok to *recreate*) → scrape caption / Whisper169 that source for copy only. IG: Apify `apify~instagram-scraper`170 (`directUrls` + `resultsType: "details"`), download `videoUrl` immediately.171 YouTube/TikTok: yt-dlp. Then persona-swap / product-name-fix against the172 caption. The talking-head clip still owns picture + audio.1731744. **Guard on-screen text.** Em/en dashes are banned from UGC overlays (AI175 tell). Censor spoken profanity on-screen Nick-thumbnail style (`sh*t`);176 leave the clip's audio uncensored. If the talking head is *not* Kevin and177 the optional source script names Kevin/Kev/Nick/Saraev, strip or swap178 those names in overlay copy.1791805. **SOURCE REAL BRAND ART** (do this before choreography). Walk the transcript181 for every named product, tool, model, or company (Claude, Google, GitHub,182 GitNexus, OmniRoute, GPT, Gemini, Llama, …). For each one, fetch a real183 mark into `assets/logos/<slug>.png` and a social/product card into184 `assets/shots/<slug>.png` when it exists:185186```bash187python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_brand_asset.py" \188 --name claude189python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_brand_asset.py" \190 --name gitnexus --github abhigyanpatwari/GitNexus191```192193 Priority: **Claude family is locked** (Kevin 2026-09-03). Do not fetch a194 favicon for Claude, Claude Code, Opus, Sonnet, Haiku, Fable, or Anthropic.195 Copy the bundled marks and dance them:196197```bash198python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_brand_asset.py" --name claude199# writes assets/logos/claude.png (sphinx) plus claude-invader.png + claude-sphinx.png200```201202 - **Invader** (`templates/claude_marks.py` → `place_claude_invader`): block203 Space-Invader. Idle dance + walk cycle. **Look:** pass `look_at=(x,y)`204 in layer pixels and the pupils slide toward that point (blinks on their205 own). **Grab:** `grab="right"|"left"|"both"`, `grab_at=(x,y)`,206 `grab_t=0..1` (0 rest, ~0.55 reached, 1 holding/lifted). Pass `hold=`207 an RGBA (use `skill_chip("SKILL.md")`) to stick a card to the hand208 once `grab_t > 0.55`. Morph with `morph=0..1` (starburst scatter).209 - **Sphinx** (`place_claude_sphinx`): official Anthropic starburst badge.210 Use as the spinning mark for Opus / Sonnet / Haiku / Anthropic, and as211 a secondary badge next to the invader.212 Call `place_claude(layer, cx, cy, lt, word="claude", look_at=..., grab="right", grab_at=..., grab_t=...)`.213 Copy `templates/claude_marks.py` and `assets/claude-*.png` into the project.214215 For every other named product: official SVG/PNG (Wikimedia / simple-icons /216 site favicon) → GitHub avatar + OpenGraph card → Google s2 favicon. Convert217 SVG with `qlmanage -t` on macOS. **A named product must appear as a logo,218 icon, screenshot, or orbiting mark — never as a text-only pill if a mark219 can be fetched.** Punch near-white backgrounds to alpha; keep dark220 full-bleed logos as round badges.2212225b. **SOURCE THE FACES** (Kevin 2026-09-05). Whenever the transcript names a223 company, model, or niche that has famous people behind it, put those people224 on screen — viewers who recognize Dario, Sam, Elon, GaryVee, Hormozi lock in225 harder than they do on a logo. Curated niche map lives in226 `scripts/fetch_figure.py` (`--list`): `claude`/`anthropic`/`opus`/… →227 Anthropic founders (Dario + Daniela Amodei, Jack Clark, Jared Kaplan, Chris228 Olah, Tom Brown); `spacex` → Musk, Shotwell, Mueller; `openai`/`chatgpt` →229 Altman, Brockman, Sutskever, Murati…; `marketing` → GaryVee, Hormozi, Godin,230 Neil Patel, Brunson, Kotler, Ogilvy; `business`/`founders`/`money` → Buffett,231 Bezos, Jobs, Musk, Cuban, Hormozi, Naval, Codie, Martell, Thiel; `sales` →232 Cardone, Belfort, Hormozi, Ziglar, Tracy, Robbins; plus `google`, `nvidia`,233 `meta`, `microsoft`, `apple`, `tesla`, `amazon`, `xai`.234235```bash236python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_figure.py" --niche claude --top 4237python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_figure.py" --niche openai --niche marketing238python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_figure.py" --name "Jensen Huang" --wiki Jensen_Huang --x nvidia --role "NVIDIA CEO"239# → assets/figures/<slug>.png (800x800 face-cropped) + <slug>.json {name, role, credit}240```241242 Sources: Wikipedia/Commons original → current X avatar (unavatar) →243 Wikidata name-match last (it has returned the wrong "Tom Brown"; eyeball244 any `warn` line). **Always view the fetched portraits** (contact sheet)245 before choreographing; swap with `--name/--x --force` if a crop is a246 stranger or a decade old. Choreography (`templates/media_marks.py`):247 `figure_row(layer, slugs, cx, cy, lt, t0, place, names=True)` for a248 founders lineup (2 faces on the intro, 2–3 later, staggered, alternating tilt),249 `figure_spotlight(layer, slug, cx, cy, lt, t0, place)` when ONE person is250 the beat (hero portrait + name plate + role), `figure_card(slug, w=380)` /251 `figure_round(slug, 360, ring=CORAL)` as marks. **Face lands on the spoken252 word** (`word_onset(words, "anthropic")`), never early. Pair the row with253 the brand mark (Claude → invader + sphinx beside the Amodeis). Names in254 plates are first names for rows, full name + role for spotlights.255256 **Figure circle size lock (Kevin 2026-09-14: "make them much larger…257 intro screens should be eye catching with big #s, figures, logos"):**258 the 150–220px rounds that kept shipping (phone-farm, anything-to-explain,259 open-source-trap hook) read as thumbnails, not icons. Floor:260 - **Hook / intro / cold-open:** these ARE the billboard. 1 face →261 `figure_spotlight(..., size=560)` or `figure_round(..., 520–620)`.262 2 faces → `figure_row(..., size=480, gap=12)`. Never 3+ tiny heads on263 the first section — pick the two most iconic. Pair with a 960-wide264 title **or** a `odometer_card` / `counter_card(..., h=440)` **or** a 400–520px logo265 badge; the slot should feel huge, not busy. Conveyor marks stay 110–140266 and sit under the giants, they do not replace them.267 - **Body sections:** single circle ≥280; 2–3-up row ≥320. Spotlight ≥480.268 - **Banned:** `figure_round(..., 150)` / `size=170` / `size=190` anywhere.269 If a 3-up row cannot fit at 320, drop to 2 faces and go bigger.270 Max one lineup per section. Intro faces may be the hero for up to 2.5s;271 later sections treat extra faces as supporting marks, still at the floor272 above — never shrunk to make room for a fourth.2732745c. **PULL REACTION GIFs** (Giphy API, Kevin 2026-09-05). Punchlines, flexes,275 shocks and "I'm sorry CapCut" jokes get a real reaction GIF, not a text pill.276 `GIPHY_API_KEY` is in `.env.local (repo or project root)`; the dashboard's favorited277 allow-list (`gifs` table) is available via `--favorites`.278279```bash280python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_giphy.py" --query "mind blown" --list # look first281python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_giphy.py" --query "mind blown" --slug mind-blown --pick 1282python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_giphy.py" --favorites --query money --slug money-rain --mark-used283# → assets/gifs/<slug>/f0001.png … @30fps (≤4s, 720px wide) + meta.json284```285286 Pick by title from `--list` (Kramer / Jon Stewart "mind blown" over a287 12-second anime loop). **Eyeball frame 1** before using: drop GIFs with288 slurs/subtitles, the wrong person, or a joke that misses the line.289 Play with `gif_card(..., w=400, frame="round")` for pairs under a title.290 Rules (china-robots lock): **one GIF per beat, 5–8 per video**, never the291 hero for >2.5s, never covering a 960px title card. Later-section stack is292 **title at cy≈125, pair of ~400px GIFs at cy≈450** (left/right). Hook293 frame 0 is the figure/number/logo billboard — do not cover it with a GIF294 pair unless the hook *is* B-roll. GIF audio is never mixed in. Rating pg-13.2952965d. **TOPIC LOGO CONVEYOR — staple (Kevin 2026-09-10).** Every video gets a297 full-width horizontal scroll of the icons *associated with this edit*298 (the stack, products, companies, tools in the story — not random logos).299 Voice-agents showed OpenAI / Cursor / Docker / Cloudflare / … sliding300 under the faces. China-robots used Unitree / Tesla / NVIDIA / Meta /301 Boston Dynamics on "hardware + AI". That lane is the touch Kevin wants302 every time. Conveyor marks stay 110–140px; they are the stream, not the303 intro hero. On the hook, also `place()` 1–2 **giant** logos (360–520px)304 as billboard pieces next to the big figures / number (Kevin 2026-09-14).305306 Fetch 5–8 real marks in step 5 (`fetch_brand_asset.py`). Punch white307 pads. Then one lane, one y-band, via `guarded_conveyor`:308309```python310from media_marks import topic_marks311marks = topic_marks(["openai", "cursor", "docker", "cloudflare", "vapi"], size=120)312# y is authored cy; helper adds PACK_DY like china-robots313guarded_conveyor(layer, 400 + PACK_DY, max(0, lt - t0), marks,314 conveyor_marks, name="topic-lane", speed=180, gap=22)315```316317 Rules:318 - **At least one topic lane per video.** Cold-open it on the hook when319 the stack is the point, or enter on the spoken product/category beat.320 - 5–8 marks, ~110–130px, graphite badges (dark slot). Full slot width.321 - **One moving stream at a time** (already locked). The lane owns its322 y-band; no second conveyor / orbit on the same band; `lanes.reset()`323 every frame.324 - Marks must match the video. Do not fill with leftover icons from325 another project. Eyeball each PNG (wrong logo / broken SVG → drop).326 - Do not sit the lane on the caption line. Center ≤ `770 - size/2 - 10`327 after PACK_DY (half-sliced icons are a known fail).3283296. **AUTHOR THE ANIMATION** (fresh per script): split narration into sections330 at spoken anchors using `audio/words.json` + `source/meta.json` `DUR`.331 **Density + look are locked to the china-robots recut**332 (china-robots (render.py no longer on disk; use social-agents / gitnexus as code refs), Kevin 2026-09-10):333 that is how animated every video in this format should feel. Target334 **6–10 elements on screen at once**, not 2–3 lonely cards. Prefer335 **motion graphics over copy**: spinning logos, GitHub/product chrome336 (`shot_card`), terminals with ticking lines, skill-file grids, computer337 mockups, scan HUDs, force-directed graphs, brand badges, code338 rain, locks/skulls/bombs when the topic is hacks. Text cards caption a339 graphic, they are not the graphic.340 **Do not default every beat to `orbit_marks`.** The **topic logo conveyor341 is mandatory** (see `5d`). Rotate the *other* motion: zigzag, explode,342 ticker, cascade, loop-arrows, Ken Burns. One orbit per video is plenty.343 Scene content must MATCH what's being said. Set `DUR` from `meta.json`,344 not the template's 62.9s.345346 **Cold open (locked, Kevin 2026-09-02):** frame 0 of the *video* must347 already be packed. Scroll-stop on TikTok/Reels shows the first frame.348 Atmosphere (terminal, skill tiles, ghost word, a logo that is legal to349 show) uses `place(..., t0=-0.4, dur=0.01)` so the ease-in has already350 finished. **Never** start the first beat at `t0=0` with `dur=0.3` — that351 leaves frame 0 blank. Skip the white flash on the **hook** section for352 the same reason.353354 **Beat `t0` is the spoken word, not the section start.** For every punchline355 (a product name, a number, a claim), look up that word's start in356 `audio/words.json` and set `t0 = word_start - section_start`. Max lead is357 **0.1s**. Never put "300" / "2B" / a named plugin on screen while he is358 still winding up to say it — that spoils the line. Do not preview later359 named products in an earlier section (e.g. don't flash OmniRoute during360 "three core plugins"). Cold-open atmosphere is the exception: generic361 (computer, skills, "installing") can be up before the first named product.3623636b. **EVERY SPOKEN NUMBER GETS A COUNTER (Kevin 2026-09-05).** Money, GitHub364 stars, downloads, views, followers, counts, years, percentages, "10 p.m.",365 "3 times a day": if the transcript says a number, a count-up animation366 lands on it. Run the detector while planning beats:367368```bash369python3 "${CLAUDE_SKILL_DIR}/scripts/number_beats.py" # reads audio/words.json370# 26.40s 100 socials <- "100 socials"371# 48.46s $20/mo <- "20 bucks a month"372# 51.02s $2B <- "$2 billion"373```374375 `number_beats(words)` (in `hyper_edits.py`) understands digits, spelled376 numbers ("twenty five", "a hundred"), scales ("2 billion", "9.3k"), money377 ("$20", "20 bucks"), "%", "3 times", "10 p.m.", "per month" and a trailing378 label word (stars, downloads, views, socials, agents…). It skips bare379 version digits ("Gemma 4", "LTX 2.5"). Fix Whisper mishears in `words`380 first (see the nano-banana / "2 .5" fixes) so the detector sees the real381 number.382383 **Apple counter lock (Kevin 2026-09-29: "find and implement a modern apple384 inspired odometer that'll replace the one we currently have, it's bad").**385 Every hero number, big or small, renders through `templates/apple_counter.py`386 (`counter_card` and `odometer_card` in media_marks both delegate to it, so387 old call sites just work). It is modeled on iOS `contentTransition(.numericText())`388 and keynote stat slides:389390 - **SF Pro Display Bold digits** (macOS `/System/Library/Fonts/SFNS.ttf`,391 variable: weight 700, optical size 96) in tabular cells, on a frosted dark392 glass card with a hairline top highlight and a faint accent glow. Label =393 tracked caps in SF Pro Text with an accent dot. No boxes, wells, cages,394 progress bars or orange strips (the old boxed-reel odometer is dead).395 - **Rolling digits:** a place that changes slides up a short hop (0.34 of396 the cell) while the old digit fades out and the new one fades in, both397 edge-faded so nothing pokes above or below the line. A place spinning398 faster than about one digit per frame renders as ONE speed-blurred digit399 (true vertical box blur), never a half-and-half crossfade: that flickers400 as doubled digits.401 - **Odometer carry:** a place rolls only while every place below it is on 9402 and rolling, so the count never shows the next digit early (no403 "2,992,000,000" on the way to 2 billion).404 - **No leading zeros:** a new leading digit and its comma slide + fade in as405 the value reaches them, and the figure re-centers smoothly. Frame 0 of a406 count shows a clean "0", not "0,000,000,000".407 - **Full figures with live commas.** `2,000,000,000` not `2B`. Compact408 "2B" / "1.5M" is a chip or caption only, never the hero count.409 - **Easing:** ≥10k eases in-out so thousands -> millions -> billions410 visibly tick; smaller figures expo-out and settle. One tiny scale breath411 as it lands, never a pulse.412 - **Counts vs years:** a bare 1900-2099 with no label is treated as a year413 (no comma, rolls from value-40). Any counted figure ("2000 person academy",414 "1950 members") passes `"style": "count"` or a label and counts from zero415 with a comma (Kevin 2026-09-29: "2000" started at 1960).416 - **Timing.** Park the card at 0 up to ~0.2s before the number word (or417 from the section start as atmosphere). Count **on** the spoken number,418 land on the unit / scale word ("stars", "billion"). Max lead 0.1s.419 - **The counter is the only big piece while it counts.** Exit GIFs, the420 invader, the conveyor and hyperframe punches off the card; a light_hit421 ring on the landing word is fine.422 - Sizes: hero ≥10k `w=1000, h=400`; smaller heroes `w=440-560, h=300-320`.423424 Author the hero beat by hand:425426```python427NUM = {b["t"]: b for b in number_beats(words)}428bt = NUM[1.52] # "two billion"429t0 = trel("two", a) # spin starts on the number430t_land = trel("billion", a) + 0.15431p = 0.04 if lt < t0 else clamp01((lt - t0) / max(0.12, t_land - t0))432place(layer, odometer_card(bt, p, h=400, label="tokens / day"),433 540, 200, lt, trel("spend", a), dur=0.22, exit_at=t0 + 2.2)434```435436 Smaller numbers (100, 646, 20%, $20) use `counter_card` (same Apple437 counter, sized to the figure). Fallback:438 `auto_counters(layer, BEATS, t, a, place, handled=HANDLED)` once per frame439 after the section choreography (`HANDLED` = the `t` values you animated440 yourself). Counter = a big piece (stacking rule applies): exit the441 previous hero before it lands, never park it on a stream lane.4424437. **Pacing (locked):** nothing on screen >2.5s *as the hero*; supporting444 orbiting marks / code rain / ghost words stay through the beat. 0.3s445 directional entrances with ±8° tilt + overshoot pop; exits fly up before446 the next beat; per-section Ken Burns zoom; white flash cut at section447 starts **except the first section**; ghost words parallax-drift; something448 always moving (spinning marks, orbiting logos, ticking checks, terminals,449 a lane). **Motion variety, not pulse (Kevin 2026-09-11):** no element450 scale-pulses or bobs in sync; big pieces are still after they land;451 rotate entrances (slam, whip, drop-bounce, tilt-in, typewriter) so no452 two consecutive beats use the same move. If a stretch of >0.4s would only show a ghost word, add453 another graphic.4544557b. **HYPER-EDIT LAYER (locked, Kevin 2026-09-05)** — `templates/hyper_edits.py`.456 The motion graphics are the *content*; the hyper-edit is the *cut*. Every457 video gets all of these, deterministic in `t`:458 - **Punch-ins and shake go on the ANIMATION SLOT, never the talking head459 (Kevin 2026-09-05).** Per frame: `layer = punch_zoom(layer,460 punch_scale(t, PUNCH_T, amt=0.045))` then `sx, sy = shake_offset(t,461 HIT_T, amp=14)` and `frame.alpha_composite(layer, (sx, LAYER_Y + sy))`.462 **Punches are RARE (Kevin 2026-09-12: "far too many zoom punch463 effects, annoying to watch").** `PUNCH_T = punch_beats(words,464 PUNCH_WORDS)`: hand-pick ONE hero word per section (the product name,465 the number, the CTA word), >=8 s apart, max 6/min, amt 0.045. Never466 `keyword_onsets(words, KEYWORDS)` for punches; KEYWORDS only colour467 captions. `speed_streaks` rides the same short list. Shake = section468 cuts + at most 3 claims. The band is composited at a fixed469 `(12, BAND_Y)` with no zoom or offset, always.470 - **Hyperframes = 1–2 frame accent inserts on cuts.** `hyperframe(frame, t,471 CUT_T, FPS, region=(0, LAYER_Y, W, AH))` cycles white → ink → invert →472 RGB-split so no two cuts flash the same. Animation slot only; the band473 never flashes. Never on the hook (frame 0 stays packed and clean).474 Never on an odometer while it is counting (Kevin 2026-09-15: the475 constellation overlay sat on top of the digits).476 - **Whip cuts between sections.** Replace the flat white flash with477 `whip_wipe(prev_layer, layer, lt / 0.16, direction=whip_dir(name))` for478 the first 0.16s of a section (outgoing scene pushes out motion-blurred,479 incoming pushes in). Whip **or** hyperframe on a given cut, not both.480 - **Shake on impact.** `HIT_T` = section cuts plus the 3 to 5 biggest481 claims; ≤0.26s, decays; applied to the slot offset (above).482 - **Spring / overshoot entrances.** `spring_preset(t, "snappy"|"bouncy"|483 "heavy")`, `ease_back_out`, `slam_in(img, p)` for hero numbers (1.6× →484 1 with overshoot). Rotate: not every card gets the same pop. Use485 `entrance(k)` for GIFs and cards so consecutive pieces differ, and keep486 `light_hit` / shake / hyperframe for the single dramatic beat of a487 section (Kevin 2026-09-12).488 - **Freeze hit** (`freeze_hit(band, p)`) for a record-scratch beat489 ("so I'm sorry CapCut"): band freezes, zooms 12%, paper tint + ink border490 for ~0.5s, then resumes. Max one per video.491 - **Text fx**: `count_up(300, p, suffix="%")` on stats (expo.out),492 `typewriter(text, p)` in terminals, `highlight_sweep` under the claim,493 `caption_impact(t, onset, key)` scales the caption with a squash bounce.494 Density check: the hyper-edit should make a 60s video feel like it has495 ~40 cuts even though the band is one continuous take.4964977c. **No HTML overlay layer (Kevin 2026-10-02: "its actually bad").** The HyperFrames498 `hf_layer` overlay (`render_hf_layer.sh`, `hf_layer_frame`) is removed from the skill.499 Everything in the slot is drawn in the PIL compositor: kinetic titles, lower thirds,500 counters (`apple_counter.py`), terminals. Do not bring back an HTML/GSAP overlay.5015027d. **LIGHT FX LAYER (locked, Kevin 2026-09-10).** `templates/light_fx.py`.503 The slot should feel lit, not flat cards on a flat wash. Every video504 gets a cheap light pass on the **animation slot only** (never the band):505506 ```python507 from light_fx import (508 scanlines, hud_scan, neon_grid, slot_vignette,509 bloom_orb, rim_pulse, light_hit, light_rays, speed_streaks,510 caption_bloom,511 )512 # atmosphere — every frame, under or just over the graphics513 scanlines(layer, t)514 hud_scan(layer, t, accent)515 neon_grid(layer, t, STEEL)516 bloom_orb(layer, invader_x, invader_y, 200, accent, a=70)517 # hits — same t0 as the spoken word / GIF land / title slam518 light_hit(layer, 540, 300, t, t0, ORANGE) # ring + sparks + flare519 speed_streaks(layer, t, PUNCH_T, NEON)520 slot_vignette(layer)521 # caption glow (draw on the canvas BEFORE the word)522 caption_bloom(frame, x, y, tw, 66, KEY_COL[wd] if key else SILVER) # tight halo (word height), a<=40523 ```524525 Atmosphere (scanlines + HUD scan + floor grid + a bloom behind the526 invader / hero) is on from frame 0. `light_hit` fires on every keyword527 punch, section cut, GIF land, and title slam. `light_rays` is reserved528 for the CTA / one hero flex — not every section. Copy `light_fx.py`529 into the workdir with the other templates.5305318. **Compose** (`templates/split_55_45_compositor.py`, adapted in the workdir):532 - Canvas: **1080 × 1920**. If an old project still has `W, H = 720, 1280`,533 change it before encoding. Coordinates are 1080-space (center **x=540**).534 The template's Megan example still writes 720-era numbers and wraps them535 with `s()` (×1.5). New choreography should use 1080 numbers directly and536 must **not** double-wrap.537 - Animation layer: **1080 × 770**, composited **1:1** at `(0, LAYER_Y)`538 with **LAYER_Y = 90** (canvas 90..860). Apply **PACK_DY = 210** inside539 `place()` (and conveyor / orbit / explode / zigzag / ticker / waveform /540 ghost y) so the pack meets the caption line. Clamp y so assets stay541 inside the 770 slot. After the offset, heroes land around canvas542 y≈500–660; footer chips / receipts kiss y≈850. Cards ~960–990 wide,543 hero numbers ~960×400–520 (`odometer_card` for ≥10k, else `counter_card` h=380–480, intro h≥440),544 intro logos 360–520px, body logos 280–360px, conveyor marks 110–140.545 Author `place(..., cy)` in the old 200–400 hero range and let546 `PACK_DY` drop them — do **not** also author at cy≈500 or they will547 clip the captions. **Side inset:**548 keep every asset fully on-canvas. Left/right edges stay inside549 **x=36..1044** (`SAFE_X`). A ~450px file-tree / terminal parked at550 `cx=165` gets sliced off the left. Side-column pieces: `cx ≥ 270`551 for ~450px cards, `cx ≥ 180` for ~180px icons. Prefer `frm="up"` /552 `"down"` for left-column assets. **Do not** `R(..., 0.78)` shrink, and553 **do not** design at 853 then `resize((540, 640))`.554 - Band: **1056×960 at y=936**, rounded corners r=60 on **all four sides**555 (never `BAND_H+60` — that square-cuts the bottom flush to y=1920).556 ~24px of canvas stays under the card (Kevin 2026-09-15: y=960 sat too557 low and clipped the chin/body). 12px side margins.558 Read `renders/talking_band45.mp4` (already 30fps from prep). Hold the559 last frame if the clip runs short of `DUR`.560 - Kinetic captions **sit on the accent line on top of the band** (Kevin561 2026-09-18: "the text should be sitting on that pink line"; 2026-09-19:562 "the captions need to be above talking head" after a straddled word563 overlapped the cap; then "has to sit on top of that line, it's on it a564 bit"): Luckiest Guy, `anchor="ls"`, `stroke_width=7`, drawn at565 `y = BAND_Y - 8 - 7 - 3` so the STROKE's bottom edge touches the top of566 the accent line (line top is BAND_Y-8). Never center the word on the567 line, never let the stroke overlap it, never float it with a gap. One word, **Oswald Bold** ~66px, pop on word568 onset; KEYWORDS use `KEY_COL` (neon / orange / red) and ~18% bigger;569 body words are silver on the dark slot; black shadow. Caption windows570 disjoint using Whisper word times. Same face as title cards / chips /571 huge_word — never Arial.572 - Band file is `renders/talking_band45.mp4` (prep output). Hard-fail if missing.5735749. **Encode + deliver:** frames → ffmpeg + the clip's narration audio575 (`audio/narration.m4a`), crf 16. Review a tiled overview + 2–3 full-res576 frames for collisions / crop. Stage a feed item in577 `brand-content/<persona-or-brand>/carousels/` only if publishing. Publish578 only on Kevin's go.579580## Encode581582```bash583ffmpeg -y -framerate 30 -i frames/out5/f%05d.jpg -i audio/narration.m4a \584 -c:v libx264 -pix_fmt yuv420p -preset medium -crf 16 -c:a aac -b:a 192k \585 -movflags +faststart -shortest renders/final.mp4586ffprobe -v error -select_streams v:0 -show_entries stream=width,height \587 -of csv=p=0:s=x renders/final.mp4588# must print 1080x1920 — anything else is a failed render589```590591Use the clip audio, not a TTS stand-in. Do not mix in trending/copyrighted592sounds (YouTube Content ID).593594**Never mux `audio/narration.wav`** (Kevin 2026-09-22, minecraft-astra-jev: "why is595the audio bad?"). That file is the 16 kHz mono downmix prep makes for Whisper. Mux596`audio/narration.m4a` (the untouched 44.1 kHz stereo track) or, better, map the audio597straight from the original clip with `-c:a copy`:598599```bash600ffmpeg -y -framerate 30 -i frames/out5/f%05d.jpg -i "<original clip>" \601 -map 0:v:0 -map 1:a:0 -c:v libx264 -pix_fmt yuv420p -crf 16 -c:a copy \602 -movflags +faststart -shortest renders/final.mp4603ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate,channels -of csv=p=0 renders/final.mp4604# must print 44100,2 (or the source's rate) — 16000,1 means the Whisper scratch track got muxed605```606607## Learnings (carried over + talking-head specific)608609- **Caption glow is a tight halo (Kevin 2026-09-19: "the glow the captions give off is610 way too large"):** `caption_bloom` radius comes from the word height (th*0.55+10),611 alpha 40, never max(tw, th)/2+36. A wide word must not light up half the band edge.612- **Captions on the pink line (Kevin 2026-09-18, JEV video 3 screenshot):** the613 caption used to sit in the gap between the animation slot and the band614 (`CAP_BOTTOM - fs`, descender padding left a visible gap). Kevin wants the615 letters resting ON the line. First fix centered the word on the line and it616 covered the top of the cap (2026-09-19: "the captions need to be above617 talking head"). Locked: `anchor="ls"` at `y = BAND_Y - 5` (baseline on the618 line, glyphs above the head), drawn after the band. Then 2026-09-19 pm: "has619 to sit on top of that line, it's on it a bit" + the DOG screenshot: caption620 face is now Luckiest Guy with a 7px black stroke, baseline at BAND_Y-18 so the621 stroke bottom rests on the line top; no separate shadow (the stroke is the622 contrast). Title cards / chips stay Oswald. Template + both jev render.py updated; keep `caption_bloom` and the623 black shadow so silver reads on the bright room behind the head.624625- **Oswald Bold is the overlay face (Kevin 2026-09-15, screenshot of AND626 over a code UI).** Title cards, chips, huge_word, captions, counters, name627 plates, ghosts: `AR` from `templates/fonts.py` → `fonts/Oswald-Bold.ttf`.628 Arial in the slot is a regression. Terminals / code rain / tickers stay629 Menlo (`ML`, `ImageFont.truetype(..., index=0)`). Copy `fonts.py` + the630 ttf with the other templates. Condensed type can run 8–12px larger than631 the old Arial sizes on the same 960-wide card.632- **Variety over repetition; effects for drama only (Kevin 2026-09-12: "on633 the gifs and stuff, i like animations but a variety. punches and stuff634 like that should apply for dramatic effect").** Rules: (a) no two635 consecutive GIFs / cards enter the same way, rotate with636 `hyper_edits.entrance(k)` (up / tilt-left / drop-pop / tilt-right /637 scale-up / slide / drop-tilt / pop-right) or hand-pick; (b) a GIF appears638 once per video unless it is a deliberate callback on the CTA; (c) impact639 effects (punch, shake, light_hit, hyperframe flash, slam) are reserved for640 the ONE dramatic beat of a section (the reveal, the number, the641 punchline), never on every chip and badge; (d) between beats the slot642 moves through entrances, lanes, terminals typing and GIF motion, not643 through camera hits. If a section has two hits inside 4 s, cut one.644- **Punch-ins were on every keyword (Kevin 2026-09-12: "far too many zoom645 punch effects. it makes it annoying to watch").** 30 keywords in a 37 s646 clip = a zoom every second plus speed streaks on each. Locked:647 `punch_beats()` in hyper_edits (one hero word per section, >=8 s apart,648 <=6/min, amt 0.045); KEYWORDS never drive the zoom again. Energy comes649 from entrances, GIFs, cuts and light hits, not from the slot jumping.650- **No black strip above the head (Kevin 2026-09-12, github-research-agent651 screenshot: "it just doesn't look good").** Kevin's recorder frames the652 head with a BLACK region above it and that boundary moves mid-clip653 (705 -> 772 at 30 s), so a face-box crop that starts above it ships a654 black bar at the top of the band for part of the video. `prep_talking_head.py`655 now scans the whole clip (`content_top`, every 0.5 s, max first-lit row),656 clamps `crop_top` under it, shrinks + upscales the crop when the picture657 below is shorter than 982 px, and `verify_band_top` refuses a band with658 black top rows anywhere. Rule: never fix this by lowering `--crop-top`;659 raise it. Eyeball band frames at 3 to 4 timestamps (not one) before660 compositing.661- **Partial edit / source passthrough (Kevin 2026-09-11, "only the first 15662 seconds needs edit, the rest is handled by broll, captions throughout").**663 When the source clip already carries its own split (screen recording over664 the head) after some point, set `CUT_AT` and animate only `SECT` before665 it; from `CUT_AT` write the SOURCE frame verbatim (`cv2` on666 `source/talking_head.mp4`, native 1080x1920) + `draw_caption()` at the667 same `CAP_Y`, plus one `hyperframe` on the cut.668 Reference: `clone-projects/first15-animated/render.py` (historical, not bundled). Check the source's669 own split line first (brightness-jump scan found y=944) so captions do not670 land on his B-roll's content.671- **2026-09-11 (Kevin, second-brain): "far too much pulsing my friend. i like672 effects but add variety."** Three things were breathing at once: `place()`673 bobbed EVERY element on the same 2.6s sine (the whole slot inhaled674 together), the word-mark cards ran `scale 1.04 yoyo repeat 3`, and t675676…(truncated)