Back to Registry
View Author Profile
Official Verified
Video Processor
Skill by chall2015
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chall2015/video-processorOr
短视频自动处理技能
创建日期: 2026-03-23
版本: v1.0
✨ 技能概述
自动处理短视频,实现:
- 🎙️ 语音识别 - 自动提取视频音频并识别为文字
- 📝 字幕生成 - 生成 SRT/VTT 格式字幕文件
- 🎯 标题提炼 - 从内容中智能提炼吸引人的标题
- 📺 字幕添加 - 将字幕烧录到视频中
- 🎬 视频生成 - 输出带字幕的新视频
🎯 使用场景
1. 自媒体内容二次创作
- 提取视频内容
- 添加中文字幕
- 重新发布到多平台
2. 课程视频处理
- 自动添加字幕
- 提炼章节标题
- 生成学习资料
3. 访谈/会议记录
- 语音转文字
- 生成会议纪要
- 添加时间戳
4. 短视频本地化
- 识别原语言字幕
- 翻译为目标语言
- 烧录新字幕
🚀 快速使用
基础使用
# 处理单个视频
python scripts/video_processor.py \
--input "video.mp4" \
--output "./output"
# 处理并添加字幕
python scripts/video_processor.py \
--input "video.mp4" \
--output "./output" \
--add-subtitles
# 处理并提炼标题
python scripts/video_processor.py \
--input "video.mp4" \
--output "./output" \
--generate-title
完整流程
# 完整处理流程
python scripts/video_processor.py \
--input "input/video.mp4" \
--output "./output" \
--extract-audio \
--recognize-speech \
--generate-subtitles \
--add-subtitles \
--generate-title \
--export-video
📋 处理流程
1. 视频分析
输入视频
↓
提取音频
↓
分析视频信息(时长、分辨率等)
2. 语音识别
音频文件
↓
语音识别(Whisper/其他 ASR)
↓
生成文字稿(带时间戳)
3. 字幕生成
文字稿 + 时间戳
↓
生成 SRT/VTT 字幕文件
↓
字幕样式配置
4. 标题提炼
完整文字稿
↓
AI 提炼关键信息
↓
生成多个标题选项
5. 视频生成
原视频 + 字幕文件
↓
FFmpeg 烧录字幕
↓
输出新视频
⚙️ 技术栈
核心依赖
- FFmpeg - 视频处理、字幕烧录
- OpenAI Whisper - 语音识别(可选)
- Python - 脚本处理
可选依赖
- yt-dlp - 下载视频
- moviepy - 视频编辑
- stable-diffusion - 生成封面图
📁 文件结构
skills/video-processor/
├── SKILL.md # 技能说明
├── README.md # 使用文档
├── scripts/
│ ├── video_processor.py # 主处理脚本
│ ├── speech_recognition.py # 语音识别模块
│ ├── subtitle_generator.py # 字幕生成模块
│ ├── title_extractor.py # 标题提炼模块
│ └── video_renderer.py # 视频渲染模块
├── references/
│ ├── subtitle_styles.md # 字幕样式配置
│ └── title_templates.md # 标题模板
├── output/ # 输出目录
│ ├── subtitles/ # 字幕文件
│ ├── videos/ # 输出视频
│ └── titles/ # 标题文件
└── examples/ # 示例文件
🎨 配置说明
语音识别配置
speech_recognition:
# 识别引擎
engine: "whisper" # whisper | google | azure
# 语言设置
language: "zh" # zh | en | ja | ko
# 模型大小
model: "base" # tiny | base | small | medium | large
# 输出格式
output_format: "srt" # srt | vtt | txt
字幕样式配置
subtitle_style:
# 字体设置
font: "Arial"
font_size: 24
font_color: "white"
# 边框设置
border_color: "black"
border_width: 2
# 位置设置
position: "bottom" # top | bottom | center
margin: 50
# 背景设置
background: true
background_color: "[email protected]" # 50% 透明黑色
标题提炼配置
title_generation:
# 标题风格
style: "clickbait" # normal | clickbait | professional
# 标题长度
max_length: 30
# 生成数量
count: 5
# 包含元素
include_emoji: true
include_hashtags: true
📊 输出示例
生成的字幕文件 (SRT)
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chall2015-video-processor": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.