explainroo

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Make an explainer video with explainroo

使用 explainroo 制作讲解视频

explainroo makes an MP4 video from two files: a script with the words the voice says, and a small JavaScript file that draws the pictures. A voice model on this computer reads the script. explainroo writes down when each word is spoken, Chrome draws the frames, and explainroo adds music and sound effects.
explainroo 使用两个文件生成 MP4 视频:一个是包含旁白内容的脚本,另一个是用于绘制画面的小型 JavaScript 文件。本机的语音模型会朗读脚本。explainroo 记录每个词的发声时间,Chrome 绘制各个帧,explainroo 再添加音乐和音效。

Find or install explainroo

查找或安装 explainroo

Try these first:
bash
command -v explainroo
ls "${EXPLAINROO_HOME:-$HOME/.explainroo}/bin/explainroo.js"
If neither exists, install it. It needs Node.js 20.11 or newer, ffmpeg, and Chrome or Chromium.
bash
git clone https://github.com/vincentsch/explainroo.git "$HOME/.explainroo"
cd "$HOME/.explainroo" && npm install
node bin/explainroo.js doctor --fetch
In the rest of this file,
explainroo
means whichever one you found: the
explainroo
command, or
node "$HOME/.explainroo/bin/explainroo.js"
.
先尝试以下命令:
bash
command -v explainroo
ls "${EXPLAINROO_HOME:-$HOME/.explainroo}/bin/explainroo.js"
如果两者都不存在,则进行安装。它需要 Node.js 20.11 或更高版本、ffmpeg,以及 Chrome 或 Chromium。
bash
git clone https://github.com/vincentsch/explainroo.git "$HOME/.explainroo"
cd "$HOME/.explainroo" && npm install
node bin/explainroo.js doctor --fetch
在本文件的其余部分中,
explainroo
指找到的任意一种形式:
explainroo
命令,或
node "$HOME/.explainroo/bin/explainroo.js"
。

Read AGENTS.md

阅读 AGENTS.md

AGENTS.md
in the explainroo folder has the steps, the writing rules, the settings and the Scene API, which is the list of everything
scenes.js
can draw. Read it before you start.
explainroo 文件夹中的
AGENTS.md
包含操作步骤、编写规则、设置以及 Scene API,后者是
scenes.js
能够绘制的内容列表。开始之前请先阅读该文件。

Make the video

制作视频

Create the project where the user wants it, for example
./video
:
bash
explainroo init video --theme paper --title "..."
Then follow the steps in AGENTS.md. When the video is done, tell the user where
video/out/video.mp4
is, how long it is, and what
explainroo verify video
said.
在用户希望的位置创建项目,例如
./video
:
bash
explainroo init video --theme paper --title "..."
然后按照 AGENTS.md 中的步骤操作。视频制作完成后,告诉用户
video/out/video.mp4
的位置、视频时长,以及
explainroo verify video
的输出结果。