video-localization
它能做什么
这个技能为视频协调字幕翻译和导出工作,例如带字幕的视频和配音版本。适合希望让视频以另一种语言呈现的创作者。
适用场景
- ✓当你想把视频本地化为另一种语言并加上字幕时。
- ✓当你需要双语字幕文件或带字幕的视频的时候。
- ✓当你需要一份与原片保持同步的配音版本的时候。
技能链接
https://github.com/nexmoe/VidBee/blob/main/skills/video-localization/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这段视频本地化为日语并加上字幕,同时也做一份双语字幕文件。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先执行翻译步骤,然后把字幕导出为 SRT 或 VTT 文件,或将其封装进 MKV,并可以添加同步的本地配音。原始视频和字幕都会保留。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Video localization
Use the attached video's existing download, transcript, and timestamps. Never ask the user to install Python or deploy another application. Preserve original media and subtitles.
- Establish the requested deliverables and target language when provided. Load the installed
translateskill using the nativereadtool and its path from the available skill catalog. Follow it in this session, passing the requested target language, any explicit subtitle layout limits, whether dubbing is requested and the requirement for a complete saved subtitle track. It owns language defaults, existing-track reuse, terminology, translation, polishing, subtitle length/width constraints, split/alignment rechecks, timing and batch saves. Its requiredreferences/subtitle-constraints.txtsupplies the adapted VideoLingo policy. If that skill or policy is unavailable, report the missing dependency rather than improvising a second translation workflow. - Continue only after
translatehas verified the complete track and returned its actualsourceKeyand anysubtitleLayoutexceptions. A saved track alone does not prove layout compliance. Report unresolved default-budget exceptions alongside usable outputs; an unresolved strict user limit remains an incomplete requirement. If requested, loadexport_subtitleswith that key:srt/vttexports files,mkvmuxes selectable subtitles, andmp4burns subtitles.bilingual=trueincludes the currently viewed original text without changing the user's source selection; target line breaks do not reflow that original track. Preserve its timing rather than copying upstream gap filling or short-cue extension. - For dubbing, follow
translatesection 6 to prepare contextual numeric readings and any necessary spoken repairs. Loadmanage_tts_modeland search the official sherpa-onnx catalog withaction=status,query,languageorfamily; follownextOffsetfor more results. The available models extend beyond the original presets. Userefresh=truefor newly published models. Inspect the saved default, language hints, download size, voice defaults/ranges and installed state. Honor the requested model; otherwise use the saved default when compatible. If another model is required for the target language, choose a compatible model for this call and explain the choice. Pass its exactmodelIdtocreate_dubbed_videofor this task; useaction=selectonly when the user requests a persistent default change. Models and required vocoders/phonemizers download automatically on first use. Useaction=prepareto inspect actual native voice ranges and bundled reference WAVs before choosing a specific voice. Omitvoicefor the model's language default; IDs are model-specific. Pocket and ZipVoice require reference audio:reference.fileis a bundled WAV name returned by preparation, relative to the model directory. ZipVoice also requiresreference.textto exactly transcribe that WAV; use its returned transcript or verified publisher documentation, never invent one. Pocket can use a bundled default reference without text. Loadcreate_dubbed_videowith the verified sourceKey and its sparse speechOverrides; these bind one-based saved cue indices and exact originalText to spoken text without rewriting display subtitles. Choosebackground=separateto preserve accompaniment while removing original vocals, orremovewhen the user wants dubbed voice only. Do not describe source separation as voice cloning. Keep the default maximum speed unless the user requests another limit. If a cue cannot fit, pass the actual fitting error back totranslate, shorten only that cue's spoken wording without losing meaning, and retry the same sourceKey while retaining all valid overrides. Limit the whole request to 3 dubbing attempts, then report remaining failures. Verify the tool's actual modelId, voice and applied override count. Never silently cut off words or claim success after an error. - Deliver the requested outputs and their saved paths. Distinguish saved subtitles from a completed rendered video. A tool failure or partial translation is not a finished deliverable. Avoid a lengthy narration of intermediate steps.
常见问题
我的原始文件会被保留吗?
会。该技能要求保留原始媒体和字幕。
我需要安装 Python 吗?
不需要。该技能的设计无需安装 Python,也无需部署其他应用。
它能导出哪些字幕格式?
它可以导出 SRT 和 VTT 文件,也可以把字幕添加到 MKV 文件中。
详情
作者的原始描述
Coordinate the translate skill, bilingual subtitle exports, subtitled videos and synchronized local dubbing. Use for video localization, bilingual subtitles, or dubbed videos.
repo: nexmoe/VidBee
热度
- GitHub 星标
- 11k
- 排名
- #11831
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …