只需描述,就能做出动画讲解视频或宣传视频
用大白话描述一支 30 秒的宣传片或讲解视频,让 Claude Code 用 Remotion 把它做出来,在 Remotion Studio 中预览,渲染成 MP4,并保存为可重复使用的模板。
- 难度 进阶
- 用时 第一次 2-3 小时,之后每做一支新视频约 30 分钟
- 适用于
- Claude.ai
- Claude Desktop
- Claude Code
本页内容7 个部分
做这件事不需要视频剪辑技能。Remotion 是一款用代码制作视频的工具:每一帧都像网页一样绘制出来,再保存成 MP4。Claude Code 会根据你的描述替你写这些代码,而 Remotion 官方的代理技能(Remotion 团队为编码代理维护的指令包)会教 Claude 把它做好。你一边看实时预览,一边用大白话提出修改,最后渲染出成品文件。
做完之后,你会得到一支 30 秒、1080p 的宣传片或讲解视频(MP4),以及一个可以重复使用的项目,下一支视频只要替换文字和颜色即可。
这是动态图形:动画文字、形状、图表、徽标、截图和字幕。它不是用 AI 生成的真实人物或地点的影像。
最终你会得到什么
- 一个包含视频各个场景的 Remotion 项目文件夹(
my-video)。 - 项目
out文件夹中渲染好的 MP4。 - 一个可重复使用的模板:同一支视频,标题、颜色和数字都可编辑。
你需要准备什么,以及费用
| 项目 | 要求 |
|---|---|
| Claude Code | Pro、Max、Team 或 Enterprise 方案,或 Claude Console(API)账号。免费的 claude.ai 方案不包含它。 |
| Node.js | Remotion 需要它。请从 nodejs.org 安装;最低版本见 Remotion 的安装页面。Node.js 在你的电脑上运行 JavaScript,Remotion 及其工具都通过它安装。 |
| 操作系统 | 在 Mac 上,Remotion 要求 macOS 15(Sequoia)或更高版本。Linux 需要 glibc 2.35 或更高版本以及一些额外的软件包;不支持 Alpine Linux 和 NixOS。 |
| Remotion 许可 | 有人免费,有人要付费。见下一节。 |
做视频比聊天更耗资源。每一轮修改都会消耗 Claude Code 的用量,所以请尽量把反馈合并在一条消息里。
Remotion 的许可,用大白话说
Remotion 并不是标准的开源软件。它的许可(2026-10-19 在 GitHub 和 remotion.dev 上核对)分两档:
- Free License:如果你属于下列情况,就可以免费使用 Remotion 制作视频和图片,包括商业用途:
- 个人
- 员工不超过 3 人的营利组织
- 非营利或不以营利为目的的组织
- 正在评估 Remotion 是否适合你,且尚未用于商业
- Company License:不在上述范围内的任何营利组织都必须购买。价格见 remotion.pro/license。
- 任何一档都不允许:复制或修改 Remotion 的代码,用来出售、出租、授权或转授权你自己的 Remotion 版本。
许可文件还说,Remotion 5.0 会略微调整条款,所以升级时请重新确认。如果你是为客户公司制作视频,请阅读 Remotion 的许可 FAQ,看看你属于哪一边。
分步操作
1. 安装 Claude Code 和 Node.js
- 终端里的 Claude Code:
curl -fsSL https://claude.ai/install.sh | bash(macOS、Linux、WSL),或irm https://claude.ai/install.ps1 | iex(Windows PowerShell)。运行一次claude并登录。 - Claude Desktop:下载应用,登录,然后点击 Code 标签页。
- Node.js:从 nodejs.org 安装,然后在终端里运行
node --version检查是否正常。
2. 创建视频项目
在终端中,进入你存放项目的文件夹:
npx create-video@latest --yes --blank my-video
cd my-video
npx remotion skills add
npm run dev
每一行的作用:
- 创建一个名为
my-video的空白 Remotion 项目。 - 进入该项目。
- 把 Remotion 的代理技能安装到项目中。
- 在浏览器中启动实时预览 Remotion Studio。
请让这个终端一直开着。如果浏览器没有自动打开,终端里会显示地址。
更喜欢桌面应用?Remotion 也发布了一个包含同样技能的 Claude Code 插件。在 Claude Desktop中,选择 Code,打开侧边栏的 Customize,再进入 Plugins > Discover。搜索 remotion,点击来自 remotion-dev/claude-code-plugin 的插件旁边的 Add。在终端里,等效的命令是:
claude plugin marketplace add remotion-dev/claude-code-plugin
claude plugin install remotion@remotion
安装后请重启 Claude Code。使用插件时,创建技能叫 /remotion:remotion-create;使用第 2 步安装的项目技能时,叫 /remotion-create。
3. 在项目中启动 Claude Code
打开第二个终端窗口:
cd my-video
claude
在桌面版中,新建一个 Code 会话,选择 Local,点击 Select folder 并选择 my-video。输入 / 可以看到各项技能。Remotion 的技能包括 /remotion-best-practices、/remotion-create、/remotion-markup、/remotion-studio、/remotion-render 和 /remotion-captions。
4. 写一份逐场景的需求说明
说明越清楚,修改的轮次就越少。复制下面的内容并填写:
/remotion-create Make a 30-second promo video for [product], 1920x1080, 30 frames per second.
Audience: [who watches it and where, e.g. LinkedIn feed, muted autoplay]
Brand: background #0F172A, accent #22C55E, text #F8FAFC. Font: Inter (load it properly, don't assume it's installed). Logo: public/logo.png.
Tone: calm and confident. No flashy transitions.
Scenes:
1. 0-4s: Headline types on: "[Your hook, under 8 words]".
2. 4-10s: The problem in one line, with a simple icon animating in.
3. 10-20s: Three benefits, one at a time, each with a short label and a number counting up: "[benefit 1]", "[benefit 2]", "[benefit 3]".
4. 20-26s: A product screenshot (public/screenshot.png) sliding in with a soft shadow.
5. 26-30s: Logo, "[call to action]" and "[website]".
Since it will often play muted, make every scene readable without sound. Keep text inside a 5% safe margin. Make the headline, benefits, colors and website editable props so I can reuse this as a template. Tell me the composition ID when you're done.
请先把徽标和截图放进项目的 public 文件夹。合成(composition)是 Remotion 对项目中一支视频的叫法。props 是无需改动代码就能更改的设置,比如标题文字。
5. 在 Studio 中观看并反馈
切换到浏览器里的 Studio 标签页,选择新的合成。点击播放,拖动时间轴,记下问题。然后用一条消息把所有意见发过去:
Changes:
- Scene 1: the headline appears too fast. Make the typing take 2 seconds.
- Scene 3: the numbers overlap the labels at 1080p. Add more space.
- Scene 5: hold the logo for the last 2 seconds without movement.
- Overall: ease all motion in and out; nothing should bounce.
如果 Studio 没有自动应用 Claude 的修改,请刷新。预计需要两到四轮。
6. 渲染 MP4
让 Claude 使用 /remotion-render,或者自己渲染。在 Studio 中,点击 Render 按钮,选择设置,再点击 Render video。或者在终端中:
npx remotion render
不指定合成 ID 时,Remotion 会显示一个选择列表;指定后(npx remotion render Promo)则直接渲染那支视频。除非你指定了其他位置,文件会放进 out 文件夹。
请用普通的视频播放器把 MP4 完整看一遍。在 Studio 中播放正常的预览,并不保证渲染结果干净,所以要检查字体、图片和最后一帧。
7. 把它变成模板
Make this composition a reusable template. Move every piece of text, every color and the logo path into the composition's props with sensible defaults, so I can change them without touching the scene code. Then create a second composition from the same template with these values: [new headline, benefits, website]. Write a short TEMPLATE.md explaining how to make a new version.
下次,复制项目文件夹,让 Claude 修改 props(或者用渲染命令的 --props 参数传入新的值),然后渲染即可。
免代码的选项:Claude Motion(Team 和 Enterprise)
如果你所在的组织使用 Team 或 Enterprise 方案,Motion 工件模板(测试版)可以在 claude.ai 或 Claude Desktop中直接制作短动画,无需安装。在聊天中提出动画需求,或者在消息框中选择 Output 并选 Motion。准备好后,点击 Export 并选择 MP4。Team 方案默认开启;在 Enterprise 上,由 Owner 在 Organization settings > Artifacts 中开启。Anthropic 说 Motion 不使用视频生成模型,所以不会生成写实的影像或人物。
可能出什么问题
- 找不到
npx或npm。没有安装 Node.js,或者终端是在你安装之前打开的。关闭终端后重新打开。 - Remotion 在旧款 Mac 上无法运行。需要 macOS 15 或更高版本。
- 渲染结果的字体不对。请让 Claude 按 Remotion 推荐的方式加载字体(
/remotion-markup技能涵盖字体),不要依赖你电脑上已安装的字体。 - Studio 显示错误浮层。把错误文字复制给 Claude Code,让它修复。然后再问:“用一句话解释是什么原因造成的。”
- Claude 改动的内容比你要求的多。让它只修改指定的场景。如果你使用 git,请在接受之前用
git diff检查改动。 - 视频没问题,文件却很大。让 Claude 使用适合社交媒体的质量设置来渲染(Remotion 的渲染命令有 CRF 选项)。
- 许可方面的意外。如果你在员工超过 3 人的营利性公司工作,一旦超出对 Remotion 的评估阶段,就需要 Company License。
做成你自己的
- 动画图表:“把这个 CSV 做成条形图竞赛动画,20 秒,条形使用我们的品牌色,最终数值停留 3 秒。”
- 带字幕的讲解:把旁白音频文件放进
public,再用/remotion-captions添加与时间对应的字幕。 - 竖屏版本:“以 1080x1920 复制这个合成,用于 Reels 和 Shorts。移动文字以适应 9:16 的画面。”
- 地图故事:
/remotion-maps Animate a route from our warehouse to our three stores, with the camera following it. - 更好看的初稿:安装 Anthropic 的 Frontend design 技能,让 Claude 把它用于排版和布局。Remotion 的场景是按网页的方式构建的,所以它的建议同样适用。
- 发布:在你安排发布视频之前,请先看我们的安全地自动发布社交媒体帖子指南,其中包括什么时候需要加 AI 内容标签。
下一步
- 让 Claude 创建 Word、PowerPoint、Excel 和 PDF 文件,为视频配一份对应的演示文稿。
- 阅读 Remotion 的用编码代理给视频写提示词页面和它的 5 分钟视频教程,获取更多提示词灵感。
来源
- remotion.dev/docs/(在新标签页中打开)
- remotion.dev/docs/ai/coding-agents(在新标签页中打开)
- remotion.dev/docs/ai/skills(在新标签页中打开)
- remotion.dev/docs/ai/claude-code-plugin(在新标签页中打开)
- remotion.dev/docs/render(在新标签页中打开)
- remotion.dev/docs/cli/render(在新标签页中打开)
- remotion.dev/docs/license(在新标签页中打开)
- raw.githubusercontent.com/remotion-dev/remotion/main/LICENSE.md(在新标签页中打开)
- raw.githubusercontent.com/remotion-dev/skills/main/README.md(在新标签页中打开)
- support.claude.com/en/articles/17454997-get-started-with-claude-motion(在新标签页中打开)
- support.claude.com/en/articles/17153992-what-are-artifacts-and-how-do-i-use-them(在新标签页中打开)
- code.claude.com/docs/en/setup(在新标签页中打开)
- code.claude.com/docs/en/desktop-quickstart(在新标签页中打开)
相关指南
把食谱、健身或习惯的想法,变成手机上的一个简单打卡应用
用一份简短笔记写下你想记录的内容,让 Claude 做一个带大按钮、连续天数和备份页面的小网页应用,免费上线,再添加到手机主屏幕。
入门45-60 分钟
适合非开发者的最佳 MCP 服务器:先连接哪些
适合不写代码的人的最佳 MCP 服务器和连接器:邮件、日历、文件、笔记、会议、设计和自动化,附套餐、设置方法和安全须知。
入门挑选需要 10 分钟,每个连接器设置大约 5 分钟
Claude Design 还是 Figma MCP:做 UI 该用哪一个
Claude Design 替你起草界面;Figma MCP 让 Claude 读取和编辑你的 Figma 文件。对比套餐、限制和交接方式,再把两者用在同一个工作流程里。
入门做决定需要 10 分钟,动手工作流程大约 30 分钟