Skip to content

参考

基于 remotion-dev/skills 官方仓库(npm 包 @remotion/skills)整理。

速查

  • npx skills add remotion-dev/skills
  • npx create-video@latest --yes --blank --no-tailwind my-video
  • 预览npx remotion studio --no-open
  • 渲染npx remotion render / npx remotion still
  • 核心 APIuseCurrentFrame() · interpolate() · Sequence · Easing.bezier()/Easing.spring() · Interactive.Div · staticFile() · <Player> · Caption(@remotion/captions)

子技能全表

子技能作用关键点
remotion-best-practices总入口 / 路由按任务分发到下列子技能
remotion-create新建项目create-video 脚手架、remotion studio 预览
remotion-markup写 React Markup帧驱动动画、可交互、资源规范(规矩最多)
remotion-interactivityStudio 可编辑Interactive.Div+name,写回代码
remotion-render渲染render/still、透明视频
remotion-captions字幕JSON + Caption 类型、转写/显示/导入 SRT
remotion-saasSaaS / 应用<Player>、Lambda/Vercel/Cloudflare/Express、客户端渲染
remotion-docs查文档查最新 Remotion API 与文档
mediabunny浏览器多媒体裁剪/取时长/取尺寸/元数据

核心 API 备忘

API用途备注
useCurrentFrame()取当前帧号一切动画的基准
interpolate(frame, [i], [o], opts)帧号 → 属性值优先于 spring();配 extrapolateLeft/Right: "clamp"
Easing.bezier(...)自定义时间曲线跳跃/过冲
Easing.spring()弹簧动画需要弹性时
Sequence时间轴分段name 便于 Studio 编辑
Interactive.Div可交互元素<div> 的可编辑版,配 name
staticFile()引用 public/ 资源别写死路径
<Player>网页内嵌播放SaaS 场景
Caption字幕类型@remotion/captions:text/startMs/endMs/timestampMs/confidence

常用命令

bash
# 安装技能
npx skills add remotion-dev/skills

# 新建视频项目(空白、无 Tailwind)
npx create-video@latest --yes --blank --no-tailwind my-video

# 启动 Studio 预览(长驻,打印 URL)
npx remotion studio --no-open

# 渲染视频 / 静帧
npx remotion render
npx remotion still

硬约束(务必记住)

  • 动画只能 useCurrentFrame() + interpolate() 表达。
  • CSS transition/animation、Tailwind 动画类禁止——逐帧渲染不生效。
  • interpolate() 内联在 style;优先 scale/translate/rotate,避免 transform 字符串。
  • 资源放 public/,用 staticFile() 引用。
  • 字幕统一走 JSON + Caption 类型。

许可与生态

  • 技能仓库remotion-dev/skills,npm 包 @remotion/skills,仓库内未见独立 LICENSE 文件(作为内部包发布)。
  • Remotion 框架:对个人与小团队免费,对较大公司为商业授权——商用前请核对 Remotion 官网许可条款
  • 同类对照HyperFrames 走「写 HTML 渲染视频」路线;本叶走「React 组件 + 帧」路线。

链接

下一步