Surround Orbit Masked Cards — Development skill for Claude Code
多视频卡片围绕人物旋转、前后遮挡、RVM 抠像与丝滑入退场的 Codex Skill.
How to install Surround Orbit Masked Cards
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open huangbai-AI/surround-orbit-masked-cards and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Surround Orbit Masked Cards does
多视频卡片围绕人物旋转、前后遮挡、RVM 抠像与丝滑入退场的 Codex Skill.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- OpenAI Codex CLI — (Rust implementation) 67.8k ★
- Career-Ops For Codex — Read CLAUDE.md for all project instructions, routing, and behavioral rules 32.5k ★
README
Surround Orbit Cards
让多段视频卡片围绕真人公转,并在人物前后正确穿行的可复刻技能。
它解决的不是简单的二维圆周运动,而是完整的空间关系:卡片逐张出现、进入稳定轨道、经过人物身后、回到人物前方,最后沿同一条曲线有序离场。
效果目标
- 第一帧没有卡片。
- 卡片依次从小到大出现,不同时弹出。
- 入场结束后形成均匀、恒速、略微倾斜的椭圆轨道。
- 卡片在人物后方时被人物遮挡,在前方时遮住人物。
- 前景卡片略大、阴影更深;后景卡片略小、阴影更轻。
- 卡片沿同一条曲线接力离场,而不是向四周散开。
- 后段不闪烁、不黑帧、不突然消失。
最重要的图层结构
前景卡片
人物透明层
后景卡片
原始口播
只把所有卡片放在原视频上方,无法实现真正的“人物身后”。必须先得到带透明通道的人物层。
使用的开源抠像能力
本项目使用 [Robust Video Matting](https://github.com/PeterL1n/RobustVideoMatting) 的连续视频抠像能力。仓库提供 ONNX 推理脚本,逐帧输出带透明通道的 PNG。
RVM 会把前一帧的信息传给下一帧,比逐张独立抠图更适合口播视频,可明显减少头发、眼镜和手指边缘闪动。
python3 scripts/rvm_cutout.py \
input.mp4 \
work/rvm_frames \
--model /path/to/rvm-model.onnx \
--downsample 0.375
先在棋盘格、纯红和纯绿背景上检查透明人物层。出现黑底说明透明通道丢失,不能继续用于前后遮挡。
快速复刻
1. 准备素材
input/
talking-head.mp4
cards/
01.mp4
02.mp4
...
先把卡片统一为恒定帧率、相同编码和足够时长:
bash scripts/normalize_cards.sh input/cards work/cards 30
2. 生成人物透明层
python3 scripts/rvm_cutout.py \
input/talking-head.mp4 \
work/rvm_frames \
--model /path/to/rvm-model.onnx
3. 建立椭圆轨道
推荐初始参数:
| 参数 | 建议值 |
|---|---|
| 卡片数量 | 6-9 张 |
| 轨道中心 X | 画面宽度的 50% |
| 轨道中心 Y | 画面高度的 56%-62% |
| 横向半径 | 画面宽度的 38%-43% |
| 纵向半径 | 画面高度的 16%-20% |
| 倾斜角 | -10° 至 -18° |
| 前景缩放 | 1.08-1.14 |
| 后景缩放 | 0.84-0.90 |
| 稳定转速 | 每秒 55°-80° |
轨道公式和参考实现见 [references/motion-spec.md](references/motion-spec.md)。
4. 逐张入场
- 第一张卡片延迟约
0.15-0.30s出现。 - 每张错开
0.12-0.20s。 - 缩放从
0.08到轨道目标尺寸。 - 使用长减速曲线,例如
expo.out或power3.out。 - 入场末尾直接接入轨道,不能先停顿再突然转动。
5. 正确切换前后层级
为每张卡片计算深度 `depth`:
depth > 0.04 -> 前景卡片层
depth <= 0.04 -> 后景卡片层
同一个深度值同时驱动缩放、阴影和图层,避免位置看起来在后方但图层仍压住人物。
6. 曲线接力离场
选择一张卡片作为领头,让它沿三次贝塞尔曲线飞出。后续卡片使用同一路径,每张延迟 `0.08-0.14s`,形成被一根无形线牵引的队列感。
离场第一段必须延续卡片当前公转切线,否则会产生折角。
7. 合成与导出
高准确度方案优先使用 HyperFrames、浏览器合成器或本地合成:
原始口播
+ 后景卡片
+ 人物透明层
+ 前景卡片
+ 原始人声
= 最终视频
复杂段落可以先合成为一条连续 4K 素材,再放回 ChatCut 继续添加字幕、音效和其他 B-roll。
防止卡片闪烁
- 所有卡片先转成恒定帧率。
- 每张卡片
Related Skills
Llca
A local, private log of what your coding agents do on your machine: Codex and Claude Code now, more next. Secr
Orbit Lan
Personal Windows dashboard for Codex and Claude agents, files, quotas and command logs on iPhone and iPad.
Rvm
RVM — The Virtual Machine Built for the Agentic Age, in Rust.
Card Skill
A Claude Code/Codex skill that turns articles, ideas, and arguments into checked Quiet Paper PNGs: cards, post
Heige Image Cards
黑哥图片卡片锻造系统:把文章、教程、观点和工作流锻造成可截图、可转发、可保存的中文图片卡片。兼容 Claude Code、Codex、OpenClaw、Hermes。
Claude Video Effects
36 video effects for Claude Code: drop in a talking-head clip, type /effects orbit. Face tracking, behind-your
Related Agents
Codex Artist
Image-generation subagent. Use PROACTIVELY whenever a task needs image files — generating or editing icons, lo
Smart Agentic Mandate
🔴 RULE 0 — Smart-Agentic Mandate (applies to every Orbit agent)
Threejs Camera Interaction
Master of three.js cameras and user interaction — perspective/orthographic/array/cube/stereo cameras, projecti