jarvis-video-stt
Jarvis-Video-STT - 批量视频语音转文字工具。 基于Faster-Whisper,支持多进程并行、进度条、汇总报告。 **触发场景**: - 用户需要将视频中的语音转换为文字/字幕 - 批量处理多个视频 - 需要生成SRT字幕或纯文本 - 需要处理报告查看结果统计 **使用方式**: 1. 确认已安装依赖: pip install faster-whisper tqdm 2. 确认ffmpeg已安装 3. 执行命令或调用主脚本 **支持格式**:MP4, MKV, AVI, MOV **输出**: - .srt 文件:带时间戳的字幕格式 - .txt 文件:纯文本全文 - report.json:机器可读的汇总报告 - report.md:人类可读的汇总报告
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- jarvis-video-stt
- description
- Jarvis-Video-STT - 批量视频语音转文字工具。 基于Faster-Whisper,支持多进程并行、进度条、汇总报告。 **触发场景**: - 用户需要将视频中的语音转换为文字/字幕 - 批量处理多个视频 - 需要生成SRT字幕或纯文本 - 需要处理报告查看结果统计 **使用方式**: 1. 确认已安装依赖: pip install faster-whisper tqdm 2. 确认ffmpeg已安装 3. 执行命令或调用主脚本 **支持格式**:MP4, MKV, AVI, MOV **输出**: - .srt 文件:带时间戳的字幕格式 - .txt 文件:纯文本全文 - report.json:机器可读的汇总报告 - report.md:人类可读的汇总报告
03 SKILL.md 正文
Jarvis-Video-STT Skill
快速开始
1. 安装依赖
pip install faster-whisper tqdm 确保ffmpeg已安装 (brew install ffmpeg on macOS)
2. 基本用法
medium模式(高精度,推荐): python ~/.openclaw/workspace-researcher/tools/jarvis-video-stt/batch_whisper.py -i videos/*.mp4 -o results -m medium
small模式(快速): python ~/.openclaw/workspace-researcher/tools/jarvis-video-stt/batch_whisper.py -i videos/*.mp4 -o results -m small
指定语言(略快): python batch_whisper.py -i videos/ -o results -m medium -l zh
调整并行数: python batch_whisper.py -i videos/ -o results -w 4
3. 参数说明
| 参数 | 简写 | 说明 | 默认值 |
|---|---|---|---|
| --input | -i | 视频路径/文件夹/通配符 | 必填 |
| --output | -o | 输出目录 | output |
| --model | -m | small/medium | medium |
| --language | -l | 语言代码,None=自动 | None |
| --workers | -w | 并行进程数 | 3 |
| --cpu | - | 强制使用CPU | False |
4. 输出文件
每个视频生成:
- 视频名.srt - 带时间戳字幕
- 视频名.txt - 纯文本
整体生成:
- report.json - JSON汇总报告
- report.md - Markdown汇总报告
性能参考
| 模型 | 一小时视频(单进程) | 推荐并行 |
|---|---|---|
| small | ~2分钟 | 4进程 |
| medium | ~5分钟 | 3进程 |
| large-v3 | ~8分钟 | 2进程 |
适用场景
- 课程视频转文字
- 电影/纪录片字幕生成
- 播客/访谈转录
- 短视频内容分析
- 视频内容检索预处理
故障排除
Q: 报 faster-whisper 找不到? pip install faster-whisper
Q: 报 ffmpeg 找不到? brew install ffmpeg (macOS) apt install ffmpeg (Ubuntu)
Q: Mac显存不足? 减少并行数:-w 2
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.