VideoCaptioner
基于大语言模型的视频字幕处理工具 — 语音识别、字幕优化、翻译、视频合成一站式处理
[在线文档](https://weifeng2333.github.io/VideoCaptioner/) · [CLI 使用](#cli-命令行) · [GUI 桌面版](#gui-桌面版) · [Claude Code Skill](#claude-code-skill)
## 安装
```bash
pip install videocaptioner # 仅安装 CLI(轻量,无 GUI 依赖)
pip install videocaptioner[gui] # 安装 CLI + GUI 桌面版
```
免费功能(必剪语音识别、必应/谷歌翻译)**无需任何配置,安装即用**。
## CLI 命令行
```bash
# 语音转录(免费,无需 API Key)
videocaptioner transcribe video.mp4 --asr bijian
# 字幕翻译(免费必应翻译)
videocaptioner subtitle input.srt --translator bing --target-language en
# 全流程:转录 → 优化 → 翻译 → 合成
videocaptioner process video.mp4 --target-language ja
# 字幕烧录到视频
videocaptioner synthesize video.mp4 -s subtitle.srt
# 下载在线视频
videocaptioner download "https://youtube.com/watch?v=xxx"
```
需要 LLM 功能(字幕优化、大模型翻译)时,配置 API Key:
```bash
videocaptioner config set llm.api_key