Generate vertical short videos (9:16) from a Markdown script. Parses script sections, generates TTS audio, renders subtitle cards, and composites into MP4 wi...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install lh-video-gen或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install lh-video-gen⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/lh-video-gen/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: lh-video-gen description: Generate vertical short videos (9:16) from a Markdown script. Parses script sections, generates TTS audio, renders subtitle cards, and composites into MP4 with FFmpeg. homepage: https://github.com/liuhedev/lh-openclaw-kit ---
从视频脚本 Markdown 文件一键生成竖版短视频(9:16)。
核心思路:以图定音
python3 generate.py script.md -o output.mp4
python3 generate.py script.md --images-dir ./my-slides -o output.mp4
图片命名规则:slide_01.png, slide_02.png...,与脚本分段一一对应。
python3 generate.py script.md --tts-command "my-tts {text} -o {output} -v {voice} -r {rate}"
占位符:{text} 口播文案、{output} 输出路径、{voice} 音色、{rate} 语速。
python3 generate.py <脚本路径> [选项]
选项:
-o, --output 输出 MP4 路径(默认:tmp/video-output.mp4)
-v, --voice TTS 音色(默认:zh-CN-YunxiNeural)
-r, --rate 语速(默认:+0%,如 +10%、-10%)
-w, --width 视频宽度(默认:1080)
--height 视频高度(默认:1920,9:16)
--images-dir 使用已有图片目录,跳过 Chrome 截图
--tts-command 自定义 TTS 命令模板(占位符:{text} {output} {voice} {rate})
--keep-temp 保留临时文件(图片、音频、片段)
--no-subs 不烧录字幕
brew install ffmpeg)--images-dir 时需要) - 自动检测 macOS/Linux 常见路径,或通过 CHROME_PATH 环境变量指定
以下 Skill 非必需,但搭配使用效果更佳:
../lh-edge-tts/scripts/tts_converter.py,或通过 EDGE_TTS_PATH 环境变量指定,或用 --tts-command 替换为任意 TTS 工具--images-dir 传入用 --- 分隔各段,每段包含 口播、字幕、画面 字段:
# 视频标题
---
## 开场
**画面**:场景描述
**口播**:TTS 配音文案
**字幕**:屏幕显示文字\n支持换行
---
## 结尾
**画面**:场景描述
**口播**:TTS 配音文案
**字幕**:屏幕显示文字
完整模板:templates/script-template.md
--images-dir 加载)安装 LH Video Gen 后,可以对 AI 说这些话来触发它
Help me get started with LH Video Gen
Explains what LH Video Gen does, walks through the setup, and runs a quick demo based on your current project
Use LH Video Gen to generate vertical short videos (9:16) from a Markdown script
Invokes LH Video Gen with the right parameters and returns the result directly in the conversation
What can I do with LH Video Gen in my design & creative workflow?
Lists the top use cases for LH Video Gen, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/lh-video-gen/ 目录(个人级,所有项目可用),或 .claude/skills/lh-video-gen/(项目级)。重启 AI 客户端后,用 /lh-video-gen 主动调用,或让 AI 根据上下文自动发现并使用。
LH Video Gen 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
LH Video Gen 可免费安装使用。请查阅仓库了解许可证信息。
Generate vertical short videos (9:16) from a Markdown script. Parses script sections, generates TTS audio, renders subtitle cards, and composites into MP4 wi...
LH Video Gen 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using LH Video Gen
Identifies repetitive steps in your workflow and sets up LH Video Gen to handle them automatically