跳到正文
Skillpedia
视频剪辑70k · #3149

remotion-new-markup

它能做什么

这个技能指导如何在 Remotion 中组织视频场景,使用 React 代码来编写轨道、序列和动画元素。适合用 Remotion 制作视频、并希望视频易于编辑的开发者。

适用场景

  • ✓当有人用 Remotion 制作视频,需要整理其时间线的时候。
  • ✓当带有字幕或叠加层的素材需要排列得便于编辑时。
  • ✓当一组片段应该移入自己独立的关联合成时。

技能链接

https://github.com/remotion-dev/remotion/blob/main/.agents/skills/remotion-new-markup/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/remotion-dev/remotion/blob/main/.agents/skills/remotion-new-markup/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我正在用 Remotion 制作一个包含多个场景和字幕的视频。该怎样组织代码,才能方便地编辑时间线?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先把需要一起编辑的内容归为一组,然后使用相互独立的轨道或首尾相接的序列。它还会把基于帧的动画放在小组件中,让场景的其他部分不必在每一帧都重新渲染。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

New Remotion markup

Read editable timeline structure before choosing components and wrappers. Start with what should be edited together, then choose independent tracks or consecutive sequences. The guide includes the complete interactive element, scene, parent, and registration.

For footage with synchronized captions or overlays, also read editable video timelines. For extracting a group into its own timeline, use connected compositions.

Keep frame subscriptions local

Call useCurrentFrame() in the smallest component that needs the frame to render. Keep composition and scene components that arrange clips and tracks free of frame subscriptions when only a soundtrack volume, animated title, or overlay needs to change. Extract that item into a component defined at module scope, and read the frame there instead of passing it down from the parent. This prevents that animation from re-rendering unrelated clips and scenes on every frame.

Keep editable interpolate() calls inline on the animated item's props. For example, a Soundtrack component can read useCurrentFrame() and return an Audio with volume={interpolate(frame, ...)}, while the composition only renders <Soundtrack /> alongside its scenes. Prefer a static value when the output does not actually vary with the frame.

Preserve the existing timing boundary when extracting: placing the hook inside a Sequence or a timed component changes its frame coordinates. Keep trims, offsets, volume envelopes, and animation keyframes on the same clock, or adjust the keyframes deliberately to preserve the edit. A plain React component is enough for this render boundary; add timeline wrappers only for editing needs.

Verify a structural change in the full composition and any standalone views. Preserve the existing edit, and distinguish useful markup grouping from Studio's row expansion and layout behavior.

常见问题

这个技能如何决定结构?

它建议先确定哪些内容应该一起编辑,然后再选择独立轨道还是连续序列。

为什么要把帧读取放在小组件中?

该技能说明,这样可以避免无关的片段和场景在每一帧都重新渲染。

它涵盖带字幕的素材吗?

涵盖。该技能包含关于可编辑视频时间线,以及与之同步的字幕或叠加层的指导。

详情

作者的原始描述

Write or refactor editable Remotion markup with appropriate tracks, shared timing boundaries, and connected compositions.

repo: remotion-dev/remotion

热度

GitHub 星标
70k
排名
#3149
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能