使用 Claude Code 提示视频
你可以仅通过提示来创建视频。 这是开始使用 Remotion 的简单方法!
🌐 You can create videos just from prompting.
This is an easy way to get started with Remotion!
先决条件
🌐 Prerequisites
你首先需要安装 Claude Code 和 Node.js。 Claude Code 需要付费订阅。
🌐 You first need to install Claude Code and Node.js.
Claude Code requires a paid subscription.
开始一个新项目
🌐 Start a new project
使用以下命令创建一个新项目:
🌐 Create a new project using the following command:
npx create-video@latest这将创建一个新项目——我们建议使用以下设置:
🌐 This will create a new project - we recommend the following settings:
- 选择 Blank 模板
- 选择“是”以使用 TailwindCSS
- 选择是以安装 技能
开始预览
🌐 Start the preview
首先,进入已创建的目录。 如果你将项目命名为 my-video,你将运行以下命令:
🌐 First, go into the directory that was created.
If you named your project my-video, you would run the following command:
cd my-video安装依赖
🌐 Install dependencies
npm install使用以下命令启动项目:
🌐 Start the project using the following command:
npm run dev启动 Claude
🌐 Start Claude
打开一个单独的终端窗口并启动 Claude:
🌐 Open a separate terminal window and start Claude:
cd my-video
claude你现在可以提示一个视频!请看我们上面的视频,了解一些如何开始的想法。
🌐 You can now prompt a video! See our video above for a few ideas on how to start.
