Skip to main content

使用 Claude Code 提示视频

Also available as a 5min video
使用人工智能创建动态图形——初学者简单教程

你可以仅通过提示来创建视频。 这是开始使用 Remotion 的简单方法!

🌐 You can create videos just from prompting.
This is an easy way to get started with Remotion!

先决条件

🌐 Prerequisites

你首先需要安装 Claude CodeNode.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:

开始预览

🌐 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.