设置
🌐 Setup
1. 分叉并克隆
🌐 1. Fork and clone
搭建一个新的 Remotion Recorder 项目:
🌐 Scaffold a new Remotion Recorder project:
- npm
- bun
- pnpm
- yarn
Use npm as the package managernpx create-video@latest --recorder
Use pnpm as the package managerpnpm create video --recorder
Use Yarn as the package manageryarn create video --recorder
Use Bun as the package manager and runtimebun create video --recorder
Bun 作为运行时大部分被支持。在这里阅读更多。
2. 安装 Bun
🌐 2. Install Bun
Remotion Recorder 需要 Bun,最低版本为 1.2。要安装它,请运行
🌐 The Remotion Recorder requires Bun, with the minimum version being 1.2. To install it, run
curl -fsSL https://bun.sh/install | bash3. 安装依赖
🌐 3. Install dependencies
安装 Bun 后,运行
🌐 Once Bun is installed, run
bun i安装所有必要的依赖。
🌐 to install all the neccessary dependencies.
4. 安装 Whisper.cpp(可选)
🌐 4. Install Whisper.cpp (optional)
现在是初始化 Whisper.cpp 进行字幕制作的好时机。 这将安装 Whisper.cpp 并下载模型(默认大小为 1.5GB)。
🌐 This is a good time to initialize Whisper.cpp for captioning.
This will install Whisper.cpp and download the model (the default being 1.5GB).
bun sub.ts5. 运行 Remotion 录制器
🌐 5. Run the Remotion Recorder
完成后,你就可以开始使用 Remotion 录制器了:
🌐 Once done, you are ready to start the Remotion Recorder:
bun run dev