video-subtitle

Solid

Add, generate, translate, or burn subtitles into a video. Use when the user wants to add hardcoded/burned-in subtitles, transcribe speech to SRT, translate existing subtitles to another language, or create dual-language subtitles (original + translation). Triggers: "add subtitles to this video", "transcribe this video", "translate subtitles to <lang>", "burn subtitles", "generate SRT", "dual subtitle", "bilingual subtitles", "edit subtitles visually", "open subtitle editor". 给视频加字幕、生成字幕、翻译字幕、烧录字幕、做双语字幕、可视化编辑字幕时使用本 skill。触发词: "给视频加字幕", "视频转字幕", "提取字幕", "翻译字幕", "烧录字幕", "硬字幕", "双语字幕", "双字幕", "可视化编辑字幕", "打开字幕编辑器"。

Code & Development 2 stars 0 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Video Subtitle Pipeline / 视频字幕流水线 Complete workflow for adding subtitles to videos: **audio extraction → speech-to-text → translation → subtitle burning** 完整的视频字幕生成流程: **提取音频 → 语音转文字 → 翻译 → 烧录字幕** > Read [`references/style-presets.md`](references/style-presets.md) for the full > ASS style reference. Read [`references/troubleshooting.md`](references/troubleshooting.md) > when something doesn't render correctly. ## Prerequisites / 前置条件 - `ffmpeg` and `ffprobe` in PATH — verify with `ffmpeg -version` - Python 3 with `openai-whisper` — `pip install openai-whisper` - macOS / Linux / Windows - First Whisper run downloads a model (~140MB for `base`) > Run `npx video-subtitle-verify` (or `node bin/verify.js`) at any time to > check your environment. ## 快速开始 / Quick Start Tell your agent: "add English subtitles to lecture.mp4" or "帮我把 lecture.mp4 生成中英双语字幕". The agent will automatically invoke the pipeline. The four steps are described below in case you want to call them manually. ## Workflow ### Step 1 — Extract Audio / 提取音频 ```bash python3 scripts/extract_audio.py "<VIDEO_PATH>" --output "<AUDIO_PATH>.wav" ``` If `--output` is omitted, defaults to `<video_stem>.wav`. Output is 16kHz mono WAV — best for Whisper accuracy. ### Step 2 — Transcribe (Whisper) / 语音转写 ```bash python3 scripts/transcribe.py "<AUDIO_PATH>" --model base --output "<SUBTITLE_PATH>.srt" ``` Models: `tiny` (fastest) · `base` (good default) · `small` · `medium` · `large` (best accuracy). First run d...

Details

Author
Crazy-MT
Repository
Crazy-MT/video-subtitle
Created
4 weeks ago
Last Updated
5 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category