Communitygithub.com

字幕覆盖层原则(Alemoterani/auto-edit-hyperframes)

为 embedded-captions 工作流提供的覆盖层原则:定义字幕模型(丢弃 / 轨道 / 嵌入)以及字幕作为覆盖层叠加在影片之上、而非预留底部禁区带因此无需上移内容的规则。适用于添加说话人头部或发布视频的字幕、决定某句话是丢弃、保留在逐字轨道还是提升为稀缺的内嵌高潮、设计需承载字幕的构图(不要预留禁区带)或将构图基于真实画面中心进行居中。引用 embedded-captions 的轨道+嵌入模型以及 product-launch-video 场景 agent 的约束 #13(字幕覆盖层,废弃禁区带)。应用在 embedded-captions 之上。

auto-edit-hyperframes) 是什么?

该技能定义了字幕覆盖层原则,对 embedded-captions 工作流进行补充。核心包含两个思想:第一是字幕模型——每个口语句子分为“丢弃”(填充内容不显示)、“轨道”(默认逐字显示在下三分之一处,作为前景覆盖层)和“嵌入”(罕见的高潮词,作为背景层合成在主体后方)三种类型,且嵌入是稀缺的巅峰效果而非默认选项。第二是覆盖层法则——字幕行始终作为覆盖层叠加在影片之上,绝不是预留的禁区带,因此构图无需上移内容或保留死区。两者相互强化:由于字幕以覆盖层形式呈现(逐字轨道在前,偶尔的嵌入在后),构图能保持完整画面并基于真实垂直中心定位。该原则整合了 embedded-captions 中轨道优先、嵌入稀缺且间隔的不可协商规则,以及 product-launch-video 场景 agent 的约束 #13。适用平台包括最终生成启动视频的构图系统、说话人头部解释器、启动视频场景 agent 等。通过将字幕视为添加的图层而非预留区域来工作,保留完整帧,内容可延伸到边缘,视觉上判断字幕与内容的可读性而非依赖机械的禁区门控。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/.agents/skills/captions-overlay

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

字幕覆盖层原则

覆盖层原则——补充上游 embedded-captions 技能。应用在其之上;不要期望它被折叠到上游技能中。

这里结合了两个思想。首先,字幕模型——每个口语句子是 丢弃、轨道 或 嵌入,而嵌入是稀缺的、来之不易的巅峰,而非默认值。其次,覆盖层法则——字幕行作为覆盖层叠加在影片之上;它不是一个预留区域,因此你永远不需要上移内容或留下死区来“腾出空间”。这两者相互强化:因为字幕以覆盖层形式呈现(逐字轨道在前,偶有嵌入在主体之后),构图保持完整的画面并基于真实垂直中心定位。

字幕模型——丢弃 / 轨道 / 嵌入

每个口语句子是三种情况之一(直接引自 embedded-captions):

什么显示方式
丢弃填充词——嗯/呃、口吃、自我修正不显示
轨道默认——普通口述内容(逐字)清晰的下三分之一字幕,在前景,可读。一个关键词可以获得行内 强调 高亮(强调色/活跃词弹出)——它仍留在轨道上。
嵌入提升的巅峰——标题性节拍一个大的单词在主体后方合成(遮罩遮挡),设计进出场

轨道承载大部分文本;嵌入是稀缺的、来之不易的巅峰——每个节拍 ≤1 个,不能相邻或同时可见,间隔至少一个节拍。一个短片→通常一个嵌入;一个长解释片→大约每个段落一个。把每个词都嵌入是常见的错误。

这是标准模式形态(轨道 = 逐字下三分之一;嵌入 = 在主体后方合成的高潮)。电影模式丢弃轨道,让所有内容都变成嵌入风格——仅用于纯电影化需求,绝不要用于必须清晰阅读文字的解释器/旁白。

轨道优先、嵌入稀缺(承重规则)

引自 embedded-captions 的不可协商项:

  • 说话人头部/解释器优先使用轨道。 不要把整个脚本都嵌入——大多数文本是轨道;只嵌入巅峰。把所有内容都嵌入是默认错误。
  • 嵌入稀缺且有间隔。 每个句子/节拍 ≤1 个嵌入,不能相邻或同时可见,间隔至少一个节拍,最多一个 高潮。高潮 = 每个节拍的巅峰,不是“整个剪辑的唯一回报”。

覆盖层法则——字幕不是预留禁区带

在生成的启动构图中,当启用字幕时,最终合成会生成一个小型、最小化的逐字字幕行作为覆盖层叠加在整个影片之上(单行文本,底部居中,大约占画面高度底部的 ~5-8%)。这是一个覆盖层,不是预留区域(直接引自 product-launch-video 场景 agent 的约束 #13):

  • 将构图基于真实的垂直中心定位——y = H / 2(横屏 540,竖屏 960)。不要上移内容来“腾出空间”给字幕;构图中心在 0.42 × H 并留下底部死区是错误,不是修正。
  • 内容可以延伸到画面底部。全出血的主体、轨道和背景一概欢迎。
  • 一条软性礼貌规则: 避免将_关键的小号可读文本_(如 URL 行、法律行、副字幕)恰好放在字幕行所在的底部 ~80px 中心跨度区域——覆盖层会与其冲突。字幕下方的大面积图像/卡片/环境内容没有问题;字幕皮肤设计为在内容上可读。
  • 没有机械的禁区门控(旧的 captions.mjs keepout 检查已废弃)。最终快照 QA 通过视觉判断字幕在内容上的可读性。

当字幕禁用时: 同样的定位自由——覆盖层只是不存在。

为什么这两个规则是一个原则

模型规定轨道在前景呈现,而嵌入是在主体后方合成的罕见词——两者都是添加到未修改的原始素材上的图层。覆盖层法则规定字幕行是整个影片之上合成的图层,不是从布局中切割出来的带区。因此,无论是在字幕管线还是启动视频管线中,字幕是添加的覆盖层,而不是预留的区域:

  • 保留完整帧;基于真实中心定位;让内容延伸到边缘。
  • 让轨道(或小型覆盖层字幕行)承载逐字文本。
  • 仅在真正的巅峰时刻将一个词提升为嵌入——稀缺、有间隔、绝不同时出现两个。
  • 不预留任何东西;通过视觉而非门控机制判断字幕在内容上的可读性。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

Alemoterani/auto-edit-hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

Alemoterani/auto-edit-hyperframes

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

Alemoterani/auto-edit-hyperframes

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, clean, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

Alemoterani/auto-edit-hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

相关技能