with one click
bilingual-subtitle
视频字幕提取、翻译、双语合并、烧录。不用于:纯音频转文字、翻译文本文件、视频剪辑
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
视频字幕提取、翻译、双语合并、烧录。不用于:纯音频转文字、翻译文本文件、视频剪辑
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Use when the user asks to create, edit, improve, redesign, beautify, inspect, or export PowerPoint decks, PPT files, slide decks, keynotes, or .pptx deliverables. Prefer this skill for presentation work that must produce a real PPTX file, especially when visual quality, editable text, brand assets, charts, or export verification matter. Do not use for Word documents or PDFs.
Markdown 转微信公众号排版并发布草稿。Use this whenever the user asks to convert Markdown to WeChat Official Account HTML, inspect publish readiness, preview local WeChat layout, or create a WeChat draft. 不用于:写文章内容、其他平台发布。
下载视频/音频(YouTube、B站、Twitter等)。不用于:网页抓取(用 web_fetch)、直播录制
AI图片生成(文生图、图生图、去背景、放大),需本地 ComfyUI。不用于:截图、网页抓图、非AI图片处理
创建自定义技能(SKILL.md)。不用于:执行已有技能、修改代码、一次性脚本
创建和编辑 Word 文档(.docx)。不用于:PDF、纯文本、Markdown
| name | bilingual-subtitle |
| description | 视频字幕提取、翻译、双语合并、烧录。不用于:纯音频转文字、翻译文本文件、视频剪辑 |
Extract subtitles from video using Whisper (GPU-accelerated), translate to Chinese, and optionally burn bilingual subtitles into video.
All output files go to the working directory (工作目录). Always use auto_send: true on the final shell call.
IMPORTANT: Always use process.py. Never invent script names or parameters.
The script auto-detects URLs and handles: CC subtitle download → audio/video download → Whisper → translate → merge.
{"command": "python skills/bilingual-subtitle/scripts/process.py 'URL' --source-only --txt-only -m tiny --beam-size 1 -o {WORKDIR}/output_source.txt", "timeout": 1800000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'URL' --srt-only -o {WORKDIR}/output_bilingual.srt", "timeout": 600000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'URL' -o {WORKDIR}/output_bilingual.mp4", "timeout": 600000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'URL' -l zh --source-only --srt-only -o {WORKDIR}/output_zh.srt", "timeout": 600000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'VIDEO_FILE' --srt-only -o {WORKDIR}/OUTNAME_bilingual.srt", "timeout": 300000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'VIDEO_FILE' -o {WORKDIR}/OUTNAME_bilingual.mp4", "timeout": 600000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'VIDEO_FILE' --chinese-only --srt-only -o {WORKDIR}/OUTNAME_zh.srt", "timeout": 300000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'VIDEO_FILE' --source-only --srt-only -o {WORKDIR}/OUTNAME_source.srt", "timeout": 300000, "auto_send": true}
{"command": "python skills/bilingual-subtitle/scripts/process.py 'VIDEO_FILE' --karaoke --fontsize 24 -o {WORKDIR}/OUTNAME_karaoke.mp4", "timeout": 600000, "auto_send": true}
| Parameter | Description | Default |
|---|---|---|
-o, --output | Output file path | auto-generated |
-l, --language | Source language (auto-detected by Whisper if omitted) | auto-detect |
-t, --target | Target language | zh-CN |
-m, --model | Whisper model (tiny/base/small/medium/large) | small |
--beam-size | Whisper beam size; 1 is fastest | 1 |
--fontsize | Subtitle font size | 14 |
--margin | Bottom margin | 25 |
--srt-only | Generate subtitle file only, skip video encoding | - |
--txt-only | Generate plain text without timestamps, skip video encoding | - |
--chinese-only | Output Chinese subtitles only | - |
--source-only | Output source language subtitles only, skip translation entirely | - |
--karaoke | Karaoke mode with word-level highlight | - |
--no-speech-threshold | Filter non-speech segments (0-1) | 0.6 |
skills/bilingual-subtitle/scripts/process.py. No other scripts should be called directly.-l only to override (e.g., -l zh to force Chinese). If source and target language match, translation is automatically skipped.--source-only --txt-only -m tiny --beam-size 1 directly. Do not generate SRT and post-process with shell.