← 返回 Skills 市场
linhongbijkm-dot

Create Edu Video

作者 linhongbijkm-dot · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ 安全检测通过
288
总下载
1
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install create-edu-video
功能描述
全自动教学视频制作技能。根据课程主题自动生成教学视频,包含文案编写、TTS配音、画面设计、Remotion代码开发、视频导出。触发场景:用户要求制作教学视频、课程视频、讲解视频、教育内容时使用。支持竖屏(1080x1920)和横屏(1920x1080)格式。
使用说明 (SKILL.md)

Create Edu Video

根据课程主题和需求,全自动制作教学视频。

环境要求

⚠️ 安全提示:以下工具需由用户自行安装,本技能不会自动执行系统级安装命令。

必需工具

工具 用途 检查命令
pnpm Node.js 包管理器 pnpm --version
Chromium Remotion 渲染引擎 which chromium-browser || which chromium
FFmpeg 音视频处理 ffprobe -version
edge-tts 微软 TTS 配音 edge-tts --list-voices | grep zh-CN

必选配套技能

remotion-video-toolkit 是 Remotion 开发的必备参考手册,执行前请确认已安装:

# 检查技能是否存在
clawhub list | grep remotion-video-toolkit

# 如未安装,请用户授权后执行
clawhub install remotion-video-toolkit

项目依赖

创建新项目时,需在项目目录内安装 Node.js 依赖:

pnpm add @remotion/cli @remotion/player remotion react react-dom
pnpm add -D @types/react typescript

环境检查流程

在开始制作视频前,必须先检查环境,如有缺失应提示用户自行安装:

  1. 检查 pnpm:pnpm --version
  2. 检查 Chromium:which chromium-browser || which chromium
  3. 检查 FFmpeg:ffprobe -version
  4. 检查 edge-tts:edge-tts --list-voices | grep zh-CN
  5. 检查 remotion-video-toolkit 技能:clawhub list | grep remotion-video-toolkit

如任何一项缺失,停止执行并提示用户安装,不要尝试自动安装。

工作流程

Step 1: 素材准备

  1. 阅读 remotion-video-toolkit 技能作为视频制作指导
  2. 使用网络搜索(通过 tavily-search 子代理)查询:
    • 课程设计最佳实践
    • 相关图片和矢量图形资源
  3. 汇总素材,准备文档和资源文件

Step 2: 文案编写

  1. 根据课程主题确定教学风格(默认:可汗学院风格)
  2. 编写教学讲解文案
  3. 生成 SRT 字幕文件格式:
    1
    00:00:00,000 --> 00:00:03,000
    第一句讲解内容
    
    2
    00:00:03,000 --> 00:00:06,500
    第二句讲解内容
    
  4. 关键:单行字幕限制字数,确保不超出视频宽度

Step 3: TTS 配音生成

  1. 使用 edge-tts 生成配音:
    edge-tts --text "讲解内容" --write-media output.mp3 --voice zh-CN-XiaoxiaoNeural
    
  2. 运行 scripts/sync_srt_tts.py 同步 SRT 时间轴与配音时长
  3. 验证字幕与配音对齐

Step 4: 视频脚本设计

分析 SRT 字幕,设计视频画面脚本(script.md):

## 场景 1 (00:00 - 00:05)
- 元素: 标题动画、背景渐变
- 镜头: 淡入
- 动效: 文字逐字出现
- 转场: 溶解

## 场景 2 (00:05 - 00:12)
- 元素: 图解动画、重点标注
- 镜头: 推进
- 动效: 图形绘制效果
- 转场: 滑动

Step 5: Remotion 项目开发

  1. 初始化项目:

    pnpm create video --hello-world
    
  2. 深度参考 remotion-video-toolkit 技能

  3. 依据 SRT 和 script 开发 Remotion 代码:

    • 设置视频尺寸(默认 1080x1920 竖屏)
    • 设计排版布局
    • 实现字幕组件
    • 集成配音音轨
    • 添加动效和转场
  4. 本地预览:

    pnpm start
    

Step 6: 审查与修正

  1. 审查代码是否还原 script 设计
  2. 发现问题立即修复
  3. 导出预览版:
    pnpm render --codec h264 --output preview.mp4
    

Step 7: 用户反馈循环

  1. 发送预览视频给用户
  2. 根据反馈修改:
    • 简单修改:直接调整代码
    • 复杂修改:从 Step 2 重新执行
  3. 重复直到用户确认

Step 8: 最终导出

用户确认后,导出最终成品:

pnpm render --codec h264 --quality high --output final.mp4

视频规格

参数 默认值 可选
尺寸 1080x1920 (竖屏) 1920x1080 (横屏)
帧率 30fps 60fps
编码 H.264 H.265, WebM
配音 zh-CN-XiaoxiaoNeural (女声) 其他 edge-tts 语音

教学风格参考

详见 references/teaching-styles.md,包含:

  • 可汗学院风格
  • TED 演讲风格
  • 白板教学风格
  • 动画解说风格

脚本工具

scripts/sync_srt_tts.py

同步 SRT 字幕时间轴与 TTS 配音时长。

用法:

python scripts/sync_srt_tts.py --srt subtitles.srt --audio voice.mp3 --output synced.srt

功能:

  • 分析音频实际时长
  • 调整 SRT 时间戳对齐
  • 处理段落间停顿
安全使用建议
This skill is coherent for creating Remotion-based instructional videos, but review these points before installing/using it: - Verify and install the required local tools yourself (pnpm, Chromium, FFmpeg, edge-tts). The skill will not auto-install them. - The workflow fetches images/resources from the web and uses a 'tavily-search' sub-agent; avoid sending sensitive or proprietary course material to external searches or public asset hosts. - edge-tts may perform network calls — check its network/privacy behavior for your environment (it does not require credentials in the skill, but may contact remote TTS services). - Inspect and, if needed, vet the remotion-video-toolkit skill before installing (source/trust). The included script (scripts/sync_srt_tts.py) is local, straightforward, and calls ffprobe via subprocess to measure audio duration; run it in a safe/sandboxed environment if you have concerns. - If you need stricter data control, keep assets local and avoid the external search step; manually provide images/audio and review rendered output before sharing.
功能分析
Type: OpenClaw Skill Name: create-edu-video Version: 1.2.0 The skill is a legitimate tool for automating educational video production using Remotion, FFmpeg, and edge-tts. It includes a Python script (scripts/sync_srt_tts.py) for synchronizing subtitles with audio, which uses subprocess safely to call ffprobe. The SKILL.md instructions follow security best practices by explicitly directing the agent to check for dependencies and prompt the user for manual installation rather than attempting unauthorized system-level changes.
能力评估
Purpose & Capability
The declared tools (pnpm, Chromium, FFmpeg, edge-tts) and the remotion-video-toolkit dependency are appropriate for generating Remotion videos, TTS audio, and performing audio/video processing. One minor note: the SKILL.md references using a 'tavily-search' sub-agent for web searches but does not declare it as a dependency; this is plausible but should be understood as an external search step.
Instruction Scope
Runtime instructions stay within video production scope: environment checks, writing SRT, running edge-tts, running the included Python script, developing Remotion code, and rendering. The workflow asks the agent to fetch images and vectors from the web (via the referenced search sub-agent) — expected for this purpose, but it means user content and queries will be sent externally during searches and asset downloads.
Install Mechanism
No install spec is included (instruction-only skill). The skill does not download or install code itself; it instructs the user/agent to ensure existing local tools are present and to install Node deps in a project. This is low-risk from an installation perspective.
Credentials
The skill does not request environment variables or credentials. It uses local tools (ffprobe via subprocess) and edge-tts; note that edge-tts may call external services for TTS generation but the skill does not ask for cloud API keys or secrets.
Persistence & Privilege
The skill does not request persistent/always-on privileges (always: false) and contains no instructions to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-edu-video
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-edu-video 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
安全修复:移除自动安装命令,改为环境检查+用户提示模式
v1.1.0
完善前置依赖文档,将remotion-video-toolkit改为必选技能
元数据
Slug create-edu-video
版本 1.2.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 2
常见问题

Create Edu Video 是什么?

全自动教学视频制作技能。根据课程主题自动生成教学视频,包含文案编写、TTS配音、画面设计、Remotion代码开发、视频导出。触发场景:用户要求制作教学视频、课程视频、讲解视频、教育内容时使用。支持竖屏(1080x1920)和横屏(1920x1080)格式。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 288 次。

如何安装 Create Edu Video?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-edu-video」即可一键安装,无需额外配置。

Create Edu Video 是免费的吗?

是的,Create Edu Video 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Create Edu Video 支持哪些平台?

Create Edu Video 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Create Edu Video?

由 linhongbijkm-dot(@linhongbijkm-dot)开发并维护,当前版本 v1.2.0。

💬 留言讨论