Introduction¶
After recording tutorial videos, the common workflow involves: splitting segments based on visuals, performing segment-by-segment TTS, aligning audio with video, and then burning in subtitles. This process involves multiple steps, diverse tools, and manual timecode writing, which is prone to misalignment with frame rates. If you want an Agent to handle this via a fixed workflow—detecting the environment, selecting engines and voices, generating configurations, executing the pipeline, and resuming from breakpoints upon failure—the “Tutorial Video Dubbing and Subtitle Composition” skill on SkillHub is designed for exactly these needs. Unlike “scripting and filming from scratch,” it assumes you already have source videos and dubbing templates with timestamps, focusing on dubbing synthesis and subtitle injection.
What is This¶
“Tutorial Video Dubbing and Subtitle Composition” is an Agent Skill under the design-media category on SkillHub (package name in CLI: @indiv-zhangwei/video-tutorial-v2-publish, current version 1.0.20). The skill documentation (SKILL.md) positions it as a fixed-procedure mode: it collects paths and TTS options via conversation, allows the AI to copy scripts, generate job.yaml, and execute pipeline.py, so users do not need to manually modify configuration files.
The public page https://www.skillhub.cn/skills/user_a5827f21/video-tutorial-v2-publish may display that the Skill is offline when accessed; installation and content should be based on the SkillHub CLI pull. The API address https://api.skillhub.cn/user_a5827f21/video-tutorial-v2-publish in the task clues returns 405 for GET requests and cannot be used as a documentation page.
Core Features¶
Below are the capabilities explicitly stated in the skill documentation and corresponding to the scripts within the local package.
- Conversational Workflow: Confirm source video path and subtitle template (
.md) → automatic environment detection → select TTS engine and voice → generatejob.yaml→ AI executes the pipeline and reports progress in the conversation. - Dual TTS Engines: Default recommendation is iFlytek Super Natural (requires local
tts_config.jsoncredentials); falls back to edge-tts if there is no key or if the user selects it (free, no iFlytek account required). - Six-Step Pipeline (
pipeline.py):01_checkparses the template →02_cutsplits video by time →03_ttsperforms dubbing →04_alignaligns (including decisions on fillers, speed, silence, etc.) →05_mergecombines audio and video →06_finalizeinjects sentence-by-sentence subtitles into the final MP4. - Fault Tolerance and Resumption: When a step fails, execute
python _scripts/pipeline.py --job job.yaml --resume-from <step>as per the documentation. - Subtitle Template Tools:
tools/subtitle-editor.htmlsupports dragging videos into the browser, marking timestamps by pressing the F key (clapperboard style), and exporting.mdtemplates; alternatively, usecopy_template.pyto copyscript_template.mdfor manual timecode entry. - Template Capabilities: Supports
MM:SS,MM:SS,FF(SMPTE frames),MM:SS.mmm; mathematical symbols can be automatically converted to spoken language; optional polyphonic character annotation via{pinyin+tone}(iFlytek);|can mark sentence breaks, etc. (seescript_template.mdinside the skill for details).
SkillHub Statistics (Task Clues): Score 99136, Downloads approximately 1013.
Installation and Activation¶
First, check if the CLI is available, then install the Skill to the current Agent’s skills directory (default is ./skills/ if --dir is not specified, which the Agent may not be able to load).
command -v skillhub && skillhub --version
If the CLI is not installed, follow the SkillHub installation instructions to perform a full installation or install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install this Skill (consistent with skillhub search video-tutorial-v2-publish results):
skillhub install video-tutorial-v2-publish --namespace indiv-zhangwei --dir <your Agent skills directory>
Common skills directory examples (from SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also ask the AI in the conversation to install it via official prompts (the documentation writes it as referencing https://skillhub.cn/install/skillhub.md and installing the corresponding package name). After installation, the Agent needs to reload the skills in the directory.
Runtime dependencies (detected by env_check.py, from skill documentation summary): Python 3.7+, ffmpeg; websocket-client==1.8.0 is required if choosing iFlytek; edge-tts==7.2.8 is required if choosing edge (Python package, not a Microsoft Store app).
Typical Usage¶
Following the installation above, in an Agent where this Skill is enabled, you can operate according to the stages prescribed by the skill. Below is the main reproducible path.
1. Provide Material Paths
Inform the Agent that you want to compose a video and provide:
- Source video path (e.g.,
/home/user/video/demo.mp4) - Dubbing template path (e.g.,
/home/user/video/script.md)
If there is no template, the Agent should execute (replace <skill-directory> in the path with the installed skill root directory):
python <skill-directory>/scripts/copy_template.py --to-dir <user-project-directory>
The user then fills in the timestamps in script_template.md and continues.
2. Environment Detection (Agent Automatic)
Create _scripts/ under the user project and copy scripts/*.py from the skill, then:
python _scripts/env_check.py --output env.json
If ffmpeg is missing, install it according to the documentation guide; if Python packages are missing, the Agent can execute, for example:
pip install websocket-client==1.8.0
pip install edge-tts==7.2.8
3. Select Engine and Voice
- Select 1 (iFlytek): Provide APPID, APIKey, APISecret, WS URL (
https://console.xfyun.cn), and select a voice (e.g., default Ling Xiaotangx5_lingxiaotang_flow), generatetts_config.json. - Select 2 (edge-tts): Select Neural voices like Xiaoxiao / Yunxi / Xiaoyi, no
tts_config.jsonneeded.
4. Execute Task
After the Agent generates job.yaml, run it yourself:
python _scripts/pipeline.py --job job.yaml
On success, the output path will look like: output/{task_id}/06_final/final_with_subs_xxx.mp4.
5. Use Subtitle Editor for Templates (Optional)
Open tools/subtitle-editor.html in the skill directory via a browser, set the working directory, drag in the video, paste numbered text, press F while playing to mark transition points, then export the .md file to hand over to the Agent.
Use Cases and Precautions¶
Suitable for: Teams or individuals who already have visual tutorial videos and need to batch dub and burn in subtitles according to timestamps; scenarios where you want the Agent to run the ffmpeg + TTS pipeline to reduce manual command assembly.
Precautions:
- iFlytek credentials should only be written in the local
tts_config.json. The skill documentation requires reminding users to add it to.gitignoreand not commit it to the repository. - Template timecodes and frame rates: Comma format is parsed at a default of 30fps per documentation; splitting and alignment logic has been revised multiple times in the changelog. For complex templates, it is recommended to check
report.jsonand the skill changelog first. - The same author has other Skills like “Spirit Sound Workshop Video Dubbing” (
smart-dubbing-studio), which have different capability focuses; this article only describes the behavior within thevideo-tutorial-v2-publishpackage. - If relying solely on web details, you may encounter “Skill not found”; the
SKILL.mdand scripts installed via CLI are the standard.
Conclusion¶
“Tutorial Video Dubbing and Subtitle Composition” converges environment detection, engine selection, task configuration, and six-step synthesis into a fixed workflow executable by an Agent, accompanied by a clapperboard-style template editor, lowering the barrier for post-production dubbing and subtitle injection in tutorial videos. Installation and retrieval entry points:
- SkillHub Installation Instructions: https://skillhub.cn/install/skillhub.md
- Skill Address from Task Clues: https://api.skillhub.cn/user_a5827f21/video-tutorial-v2-publish (GET for docs is unavailable; for installation please use
skillhub install video-tutorial-v2-publish --namespace indiv-zhangwei)