video-to-textlisted
Install: claude install-skill jiawood2006/hermes-skills
# Video-to-Text — 抖音/本地视频 → 文字 → 内容情报(一条命令闭环)
**抖音分享链接 → 自动下载 → 语音转写 → 结构化 Markdown → 爆款拆解,一条命令跑完。** 不用手动存视频、不用第三方 API key、隐私不出本机(默认本地 faster-whisper)。
> 📁 **安装**:`hermes skills install jiawood2006/hermes-skills/skills/video-to-text` 或 `./install.sh`(一键装+全局命令 `vtt`)→ 脚本在 `~/.hermes/skills/utilities/video-to-text/scripts/`。
## 触发条件
用户发送以下内容时使用本技能:
- 抖音分享链接(v.douyin.com / www.douyin.com/video/…),要"转文字/提取文案/拆解/分析爆款/看内容"
- B站链接,要"看视频信息"
- 本地视频文件(.mp4/.mov/.m4a),要"语音转文字/字幕/摘要/分析"
## 使用步骤
### 1. 抖音链接 → 全自动闭环(默认行为)
```bash
# 一条命令:元数据 + 自动下载 + 本地转写
python3 ~/.hermes/skills/utilities/video-to-text/scripts/vtt.py "https://v.douyin.com/xxxx/"
# 全流程 + LLM 摘要 + 爆款结构拆解
python3 ~/.hermes/skills/utilities/video-to-text/scripts/vtt.py "https://v.douyin.com/xxxx/" --all
# 只要元数据(不下不转)
python3 ~/.hermes/skills/utilities/video-to-text/scripts/vtt.py "https://v.douyin.com/xxxx/" --meta-only
# 转写引擎换硅基 SenseVoice(中文口语/带噪更准,需 SILICONFLOW_API_KEY,失败自动回退本地)
SILICONFLOW_API_KEY=sk-xxx python3 ~/.hermes/skills/utilities/video-to-text/scripts/vtt.py "https://v.douyin.com/xxxx/" --engine sensevoice
```
技术链路:curl 短链取真实视频 ID → Playwright 监听 aweme/detail API 拿元数据+无水印 play_url → 自动下载 → 提取音频 → 转写。
### 2. 本地视频文件 → 转写 + 内容情报
```bash
python3 ~/.hermes/skills/utilities/video-to-text/scripts/vtt.py 视频.mp4 # 只转写
python3 ~/.hermes/skills/utilities/video-to-text/scripts/vtt.py 视频.mp4 --summary # + 内容摘要
python3 ~/.hermes/skills/utilities/video-to-text/scripts/vtt.py 视频.mp4 --analyze