Commit graph

2 commits

Author SHA1 Message Date
juancarlos.cavero
41952d6208 fix(hooks): ground GENERAL stretches too when the video is a screencast
First prod run of hook grounding on a product-update video: the layout
picker said screencast (0.95) but the render emitted only track/general
ranges, because the width gate did not upgrade the stats cards, so the
grounding never fired and every clip kept its topic-summary hook. A
GENERAL scene on a screencast video is a face-less full-screen slide or
dialog, not a group shot (checked frame by frame), so it now counts as
screen when screencast_layout is enabled for the job.

Claude-Session: https://claude.ai/code/session_014i9z6mLTy978uRCfSsMfBq
2026-09-01 02:18:21 +02:00
juancarlos.cavero
58056996f4 feat(hooks): ground hook and title on the screen for screencast clips
The hook and title come from the detail pass, which only reads the
transcript, so a clip whose meaning is on the screen shipped with a topic
summary ("I automated my clips with AI") while the viewer watched an MCP
connector being configured.

Two halves. The detail prompt now carries the rule that hook and title name
the concrete thing happening inside the clip, never the video's topic. And
after the render, when the layout sidecar says at least 25% of a clip is
screencast / wide / inset, hook_grounding sends three frames from those
stretches at 1024px plus the clip's own words to Gemini and rewrites hook
and title in place before auto_hook_clip burns them; the originals stay
under hook_grounding.before. Gemini-only (frames): a local-LLM install logs
one line and keeps the transcript hook. HOOK_GROUNDING=0 disables it.

Verified live on the reported frame: on_screen "Configuración del conector
del servidor MCP de OpenShorts", hook "Configura el servidor MCP de
OpenShorts paso a paso", stable across three runs.

Claude-Session: https://claude.ai/code/session_014i9z6mLTy978uRCfSsMfBq
2026-09-01 02:02:22 +02:00