seam-craft
它能做什么
这项技能设定保持转场效果正确的技术规则。适合在场景切换时看到闪光或故障的视频制作者。
适用场景
- ✓当你把视频的各个场景组合到一条主时间线中时。
- ✓当两个场景之间的切换或淡入淡出出现白色闪光时,尤其是在深色视频中。
- ✓当你想在完成视频之前检查转场能否正确渲染时。
技能链接
https://github.com/heygen-com/hyperframes/blob/main/.agents/skills/seam-craft/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的深色视频每次切换都有白色闪光。请修复这些转场。”
每周 5 个新技能,1 分钟读完。
工作原理
它解释两个场景背后的背景必须是实色,这样淡入淡出时,间隙不会透出默认的白色页面。它还列出了渲染前需要运行的检查。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Seam Craft — render prerequisites for scene-to-scene transitions
This is the render-correctness doctrine for PLV scene-to-scene seams: the prerequisites and master-timeline mechanics that make any transition composite correctly, independent of which specific transition is chosen. The per-transition catalog (crossfade, push-slide, zoom-through, cut-the-curve, …) lives in the transition registry — this page is the doctrine that sits underneath all of them.
The transitions this doctrine governs are Tier-B-ready: pure transform / opacity /
filter on the two scene clip wrappers (#el-<sid>), no injected overlay DOM, no
per-scene cooperation. Overlay families (staggered blocks, blinds, light leak, grid
dissolve, page burn) and shader transitions are deferred to later phases.
Stage ground prerequisite (white-flash guard)
Several templates open a window where the two wrappers' summed opacity < 1 (the
cut-the-curve mid-window cut, zoom-through's 0.15 floor, plain crossfade's
power-curve dip). Whatever is BEHIND the wrappers shows through during that
window. If the assembled index.html #root has no opaque background, the
renderer composites the dip over its default white page → a white flash at
every seam, glaring on dark films (observed on two Spotify runs before the fix).
The assembler must paint the stage: #root { background: var(--canvas-deep, var(--canvas, #000)) } — assemble-index.mjs now emits this;
any other consumer of these templates owns the same guarantee.
How the injector applies a transition
At a break boundary between scene i (from) and scene i+1 (to), the
injector:
- Extends
#el-<from>wrapperdata-durationbyduration_s(holds its final frame — verified:core/src/runtime/init.ts:1393-1410external-slot branch). - Pulls
#el-<to>wrapperdata-startearlier byduration_s(creates the overlap window). - Reassigns all clip
data-track-indexas a 0/1 ping-pong so the two overlapping wrappers never share a track (same-track overlap is illegal —core/src/lint/rules/composition.ts). Higher track composites on top. - Stamps the
gsap_templateintowindow.__timelines["main"]atT = overlap-start.
Verified by prototype render (2026-05-31): the master-timeline wrapper tween is seeked and rendered (no double-seek with the sub-comp's own paused timeline — the runtime drives them independently), the extended wrapper holds scene i's final frame, and the higher-track incoming wrapper composites over + blends with the outgoing one.
Template placeholders
The injector substitutes these tokens in each gsap_template line:
| Token | Meaning |
|---|---|
__OLD__ |
"#el-<from>" — outgoing clip wrapper selector (quoted) |
__NEW__ |
"#el-<to>" — incoming clip wrapper selector (quoted) |
__T__ |
overlap-start time in seconds (master clock) |
__DUR__ |
duration_s for this boundary |
__DX__ |
horizontal travel for directional types: -1920 (LEFT) / 1920 (RIGHT) |
__DY__ |
vertical travel: -1080 (UP) / 1080 (DOWN) |
__ORIGIN_OUT__ / __ORIGIN_IN__ |
transformOrigin pair for squeeze |
filter / scaleX / transformOrigin are lint-clean on the master timeline
(verified: core/src/lint/rules/gsap.ts has no per-property whitelist and scopes
its checks to data-composition-id ranges; the x/y/scale/rotation/opacity
whitelist is a scene-worker prompt rule only — it does not bind index.html).
常见问题
为什么会出现白色闪光?
在转场过程中,两个场景都可能部分透明。如果没有设置背景,渲染器会在那个间隙中显示白色。
解决办法是什么?
组装好的页面应在场景后面绘制实色背景,这样间隙就会被视频的颜色填满。
它涵盖某一种特定的转场类型吗?
不涵盖。它涵盖使任何转场都能正确渲染的基本要点,而不是某一种转场风格。
详情
作者的原始描述
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
repo: heygen-com/hyperframes
热度
- GitHub 星标
- 78k
- 排名
- #1731
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
captions-overlay
78k指导你的智能体以叠加方式为视频添加字幕,决定哪些口播内容需要删除、放在字幕条上,或作为重点突出显示。
cut-the-curve
78k教你的智能体使用 HyperFrames 视频中的转场效果,例如流畅的场景切换、推进式穿越和错落的文字入场。
motion-doctrine
78k为你的智能体提供核心规则,使多场景视频像一个连续的镜头移动,而不是一张张分开的幻灯片。
oversized-cursor
78k教你的智能体在视频中加入一个大号的动画指针,引导观众的视线,并让点击看起来像是引发了下一步动作。