Creator · jianshuo
Last updated · Sep 6, 2026
Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio
Creator · jianshuo
Last updated · Sep 6, 2026
Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio
Creator · jianshuo
Last updated · Sep 6, 2026
Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio
Creator · jianshuo
Last updated · Sep 6, 2026
Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio
Sandbox only
Install targets
Codex install prompt
Install the "wjs-burning-subtitles" agent skill from https://github.com/jianshuo/claude-skills/tree/main/wjs-burning-subtitles. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"jianshuo-wjs-burning-subtitles","task":"Install wjs-burning-subtitles","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Design assets, images, video, audio, multimodal media, presentation, and creative production skills.
Scenario
Multimodal media
I need my agent to process images, video, or audio and extract useful information.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Maintenance
fresh
18d since push
Risk
Needs review
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised.
GitHub quality
129
68/100 Quality · 70/100 Trust
Coverage tags
Review notes
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised. · The full content of render.py was not reviewed; only an excerpt was provided, so there may be unverified edge cases or error handling gaps.
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
129 GitHub stars
Repo activity
129 stars, 20 forks
Maintenance
18d since push
License
MIT
Install
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
Agent should check
Copy prompt
Task: Use wjs-burning-subtitles in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install
Install command: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
LLM text format
/api/skills/jianshuo-wjs-burning-subtitles/install?format=text
Find alternatives
/api/skills/search?q=wjs-burning-subtitles&limit=3
Agent prompt
Use wjs-burning-subtitles for this task. Review https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install, then install with: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/jianshuo-wjs-burning-subtitles
LLM text
/api/registry/manifest/jianshuo-wjs-burning-subtitles?format=text
Install alias
/api/registry/install/jianshuo-wjs-burning-subtitles
Recommend
/api/registry/recommend?task=Use%20wjs-burning-subtitles%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
GitHub automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO129 GitHub stars
Stars/forks activity
CHECK129 stars, 20 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Process rich media
I need my agent to process images, video, or audio and extract useful information.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: wjs-burning-subtitles description: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". ---
# wjs-burning-subtitles
Video + SRT → video with subtitles. Also the final-encode stage for the localization pipeline: takes a video, an optional dub track from `/wjs-dubbing-video`, and an optional SRT to burn, and produces the upload-ready MP4 in **one** ffmpeg pass. No cascade of decodes/re-encodes.
## When to use
- User has an SRT and wants it always-visible on the video (burn-in for 微信视频号 / 抖音 / WeChat — players that won't honor embedded subtitle tracks). - User wants a togglable subtitle track (soft-mux) for QuickTime / VLC / IINA / mobile players that support `mov_text`. - Final composite after `/wjs-dubbing-video`: burn target-language subs + mix dub over original-as-bed in one encode.
## When NOT to use
- No SRT yet → run `/wjs-transcribing-audio` then `/wjs-translating-subtitles` first. - HTML/CSS captions (kinetic, per-word highlights, custom fonts) on a clip composed in HyperFrames → use `/wjs-overlaying-video` instead. Don't mix libass burn-in with HyperFrames captions on the same output. - The "subtitles" are actually motion graphics (animated callouts, lower-thirds with logos, kinetic typography) → that's `/wjs-overlaying-video`, not this skill.
## The 3 modes of `render.py`
`scripts/render.py` auto-detects mode from flags:
1. **Subtitles only** — `--video + --srt` → re-encodes video with burned subs, original audio passes through. 2. **Dub only** — `--video + --dub` → keeps original video stream; replaces or mixes the audio track. 3. **Full localized cut** — `--video + --srt + --dub` → burns subs AND mixes dub. By default keeps original audio at low volume as a "bed" under the dub (set `--bed-volume 0` or `--no-original-audio` to drop it).
Burn-in requires an ffmpeg built with libass. The script auto-downloads a static libass-enabled build from evermeet.cx into `/tmp/ff_bin/` on first use if needed.
## Soft-mux (togglable subtitle track)
Player apps can show/hide. Works with any `ffmpeg` build — does **not** need libass:
```bash ffmpeg -i input.mp4 -i input.zh-CN.srt \ -map 0:v -map 0:a -map 1:0 \ -c:v copy -c:a copy -c:s mov_text \ -metadata:s:s:0 language=zho -metadata:s:s:0 title="中文" \ output.mp4 ```
This is fast (stream-copy) and reversible. Use it when:
- Target platform supports embedded subs (YouTube auto-detects; VLC/QuickTime honors). - User wants viewers to be able to toggle off. - You don't want to re-encode the video.
`render.py --video IN.mp4 --srt SUB.srt --soft-mux` runs this path.
## Hardcoded burn-in (always visible, libass)
Required for WeChat/抖音/朋友圈 etc. where the player will not honor embedded subtitle tracks.
### Verify libass is available BEFORE promising burn-in
```bash ffmpeg -filters 2>&1 | grep -E "subtitles|^.. ass " ```
If neither `subtitles` nor `ass` shows up, the build lacks libass. Homebrew's default `ffmpeg` formula is often stripped (no `--enable-libass`, no `--enable-libfreetype`, no `drawtext`). Don't waste time fighting the comma-escaping inside `force_style` — it will fail with `No such filter: 'subtitles'` no matter how the shell quotes it.
### Fastest fix on macOS — drop in a static build, no system changes
```bash curl -fsSL -o /tmp/ff.zip https://evermeet.cx/ffmpeg/getrelease/zip unzip -o /tmp/ff.zip -d /tmp/ff_bin >/dev/null FF=/tmp/ff_bin/ffmpeg $FF -version | grep -oE -- "--enable-(libass|libfreetype)" ```
Then use `$FF` instead of `ffmpeg` for the render. The brew binary is fine for everything else (probe, audio extraction, soft-mux). `render.py` does this auto-fallback if its default ffmpeg lacks libass.
### Burn-in render with style overrides
🛑 **Checkpoint — confirm before full-render.** Burn-in re-encodes the entire video (minutes of CPU on a 5-min clip). Before kicking it off:
1. Render only the first 30s with `-t 30` for a fast preview. 2. Extract a frame from the longest-line cue (see Fontsize calibration below) and Read it. 3. Show the user the preview frame + the cue text, ask: "字号/字体/边距 OK 吗?OK 才跑全片。" Wait for explicit confirmation.
Skip the checkpoint only if the user has already approved a full render of this exact video at this exact font config in the same conversation.
```bash $FF -i input.mp4 \ -vf "subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a copy output.mp4 ```
Inside `force_style`, escape every comma as `\,` (the filter graph parser eats the bare comma as a chain separator). All other special chars are fine.
### Fontsize calibration — critical
libass scales its internal PlayRes up to the actual video resolution. The number you pass is **not pixels** in the output. As a starting calibration on a 544×960 vertical phone video, `Fontsize=22` rendered each Chinese character at ~55px wide and overflowed the frame, while `Fontsize=12` rendered at ~30–35px wide and fit cleanly with 15-char lines.
Rule of thumb: start at `Fontsize=12`, render, then **always** extract a frame and look:
```bash $FF -ss 30 -i output.mp4 -frames:v 1 /tmp/frame.png -y # then Read /tmp/frame.png to verify the longest-line cue fits ```
Pick a timestamp that lands on the cue with the most characters per line — short lines won't expose overflow. Add `MarginL=20 MarginR=20` as a safety inset; never trust default left/right margins.
### Style cheatsheet
Keys that matter (libass `force_style`):
- `Fontname=PingFang SC` — macOS default CJK; alternates: `Songti SC`, `Heiti SC`, `STHeiti`, `Hiragino Sans GB`. - `Fontsize=12` — start small, scale up only after frame check. - `PrimaryColour=&H00FFFFFF` — white text (BBGGRR + alpha). - `OutlineColour=&H00000000` — black outline. - `BorderStyle=1` — outline only (clean over varied backgrounds). Use `BorderStyle=3` for an opaque box behind text when the background is busy. - `Outline=2` — 2px outline thickness. - `Shadow=1` — subtle drop shadow. - `MarginL=20 MarginR=20` — keep text inside the frame. - `MarginV=40` — vertical distance from the bottom edge.
### SRT line-length discipline for burn-in
Even with correct `Fontsize`, lines that are too long will wrap or overflow. Keep each on-screen line ≤ ~15 Chinese characters (~42 Latin chars). Use explicit `\n` line breaks inside the SRT block — do not rely on auto-wrapping. Two short lines beat one long one every time. (This is upstream discipline — `/wjs-translating-subtitles` should already cap cues at these limits.)
## Audio mixing — keep the original as a low-volume bed
A pure dub-only track sounds dubbed (because it is). Mixing the original audio at low volume under the dub gives the "professional translation" feel — you still hear the speaker's breath, emphasis, and laughter, just under the new voice.
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:a]volume=0.18[orig];\ [1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map 0:v -map "[a]" \ -c:v copy -c:a aac -b:a 192k mixed.mp4 ```
Reasonable starting volumes:
- Original bed at `0.15`–`0.25` (≈ −16 to −12 dB) - Dub at `1.0` - Use `normalize=0` so amix doesn't auto-attenuate when both are active.
To drop the original entirely: `--no-original-audio` (equivalent to `--bed-volume 0`).
## Combining dub + burn-in + bed (the full job)
One ffmpeg call does all three — burn the target subtitle onto the video stream and mix the two audio tracks:
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:v]subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'[v];\ [0:a]volume=0.18[orig];[1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map "[v]" -map "[a]" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a aac -b:a 192k final.mp4 ```
This is the "ship to social media" final cut. `render.py --video original.mp4 --dub dub.mp4 --srt input.zh-CN.srt` runs this exact pipeline.
## Running `render.py`
```bash # Subtitles only (burn): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --out OUT.mp4
# Dub only (replace audio, no subs): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --dub IN_zh_dub.mp4 --out OUT.mp4
# Full localized cut (burn + dub + original bed): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt IN.zh-CN.srt --dub IN_zh_dub.mp4 --out OUT.mp4
# Soft-mux (no re-encode): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --soft-mux --out OUT.mp4 ```
See `render.py --help` for the full style/audio flag list (`--font`, `--fontsize`, `--color`, `--outline-color`, `--margin-v`, `--bed-volume`, `--no-original-audio`).
## Output
- Burn mode: `<source>_burned.mp4` (re-encoded, libass-rendered subs) - Soft-mux mode: `<source>_softsub.mp4` (stream-copy, `mov_text` track) - Full cut: `<source>_final.mp4` (re-encoded video with burned subs + mixed audio)
## Anti-patterns
- ❌ **Promising burn-in without verifying libass.** Check `ffmpeg -filters | grep subtitles` first; auto-fall back to evermeet static build if missing. - ❌ **Committing a burn render without a frame check.** Always extract a frame at the longest-line cue and Read it before kicking off the full render. - ❌ **Bare commas inside `force_style`.** The filter graph parser eats them. Escape every internal comma as `\,`. - ❌ **Mixing libass burn-in with HyperFrames captions.** Pick ONE caption system per output video. If you're using HTML/CSS captions in `/wjs-overlaying-video`, don't burn here too. - ❌ **Using period milliseconds in the SRT.** Whisper local writes `.mmm`; libass tolerates it but other downstream tools choke. Normalize to `,mmm`. - ❌ **Defaulting to `BorderStyle=3` (opaque box).** Use `BorderStyle=1` (outline only) unless the background is genuinely busy — the box looks heavy and dated.
## Upstream
- **`/wjs-transcribing-audio`** + **`/wjs-translating-subtitles`** — produce the SRT input. - **`/wjs-dubbing-video`** — produces the `*_<lang>_dub.mp4` input for full-localized-cut mode. The dub-only file is technically a finished video; this skill is what mixes the original underneath and burns the subs to make it shippable.
## Common pitfalls
- **Fontsize that worked on one video looks tiny / huge on another.** libass scales by PlayRes ratio, not pixels. Recalibrate per video resolution; don't trust a hardcoded value. - **Margin defaults clip text on vertical phone videos.** Always set `MarginL=20 MarginR=20` and `MarginV=40` (or higher) explicitly. - **`mov_text` track shows up in QuickTime but not in some Android players.** If the target audience is mobile-Chinese, soft-mux is unreliable; burn instead. - **Background-bus busy / contrast issues.** Increase `Outline=2` → `Outline=3`, or switch to `BorderStyle=3` for a translucent box (`BackColour=&H80000000` for 50% black).
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for wjs-burning-subtitles, ready for a manual X post.
wjs-burning-subtitles: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels... 129 stars https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x
Listing + install path for wjs-burning-subtitles: https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x Install: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to jianshuo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles/audit)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)jianshuo
@jianshuo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsSandbox only
Install targets
Codex install prompt
Install the "wjs-burning-subtitles" agent skill from https://github.com/jianshuo/claude-skills/tree/main/wjs-burning-subtitles. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"jianshuo-wjs-burning-subtitles","task":"Install wjs-burning-subtitles","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Design assets, images, video, audio, multimodal media, presentation, and creative production skills.
Scenario
Multimodal media
I need my agent to process images, video, or audio and extract useful information.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Maintenance
fresh
18d since push
Risk
Needs review
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised.
GitHub quality
129
68/100 Quality · 70/100 Trust
Coverage tags
Review notes
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised. · The full content of render.py was not reviewed; only an excerpt was provided, so there may be unverified edge cases or error handling gaps.
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
129 GitHub stars
Repo activity
129 stars, 20 forks
Maintenance
18d since push
License
MIT
Install
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
Agent should check
Copy prompt
Task: Use wjs-burning-subtitles in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install
Install command: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
LLM text format
/api/skills/jianshuo-wjs-burning-subtitles/install?format=text
Find alternatives
/api/skills/search?q=wjs-burning-subtitles&limit=3
Agent prompt
Use wjs-burning-subtitles for this task. Review https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install, then install with: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/jianshuo-wjs-burning-subtitles
LLM text
/api/registry/manifest/jianshuo-wjs-burning-subtitles?format=text
Install alias
/api/registry/install/jianshuo-wjs-burning-subtitles
Recommend
/api/registry/recommend?task=Use%20wjs-burning-subtitles%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
GitHub automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO129 GitHub stars
Stars/forks activity
CHECK129 stars, 20 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Process rich media
I need my agent to process images, video, or audio and extract useful information.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: wjs-burning-subtitles description: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". ---
# wjs-burning-subtitles
Video + SRT → video with subtitles. Also the final-encode stage for the localization pipeline: takes a video, an optional dub track from `/wjs-dubbing-video`, and an optional SRT to burn, and produces the upload-ready MP4 in **one** ffmpeg pass. No cascade of decodes/re-encodes.
## When to use
- User has an SRT and wants it always-visible on the video (burn-in for 微信视频号 / 抖音 / WeChat — players that won't honor embedded subtitle tracks). - User wants a togglable subtitle track (soft-mux) for QuickTime / VLC / IINA / mobile players that support `mov_text`. - Final composite after `/wjs-dubbing-video`: burn target-language subs + mix dub over original-as-bed in one encode.
## When NOT to use
- No SRT yet → run `/wjs-transcribing-audio` then `/wjs-translating-subtitles` first. - HTML/CSS captions (kinetic, per-word highlights, custom fonts) on a clip composed in HyperFrames → use `/wjs-overlaying-video` instead. Don't mix libass burn-in with HyperFrames captions on the same output. - The "subtitles" are actually motion graphics (animated callouts, lower-thirds with logos, kinetic typography) → that's `/wjs-overlaying-video`, not this skill.
## The 3 modes of `render.py`
`scripts/render.py` auto-detects mode from flags:
1. **Subtitles only** — `--video + --srt` → re-encodes video with burned subs, original audio passes through. 2. **Dub only** — `--video + --dub` → keeps original video stream; replaces or mixes the audio track. 3. **Full localized cut** — `--video + --srt + --dub` → burns subs AND mixes dub. By default keeps original audio at low volume as a "bed" under the dub (set `--bed-volume 0` or `--no-original-audio` to drop it).
Burn-in requires an ffmpeg built with libass. The script auto-downloads a static libass-enabled build from evermeet.cx into `/tmp/ff_bin/` on first use if needed.
## Soft-mux (togglable subtitle track)
Player apps can show/hide. Works with any `ffmpeg` build — does **not** need libass:
```bash ffmpeg -i input.mp4 -i input.zh-CN.srt \ -map 0:v -map 0:a -map 1:0 \ -c:v copy -c:a copy -c:s mov_text \ -metadata:s:s:0 language=zho -metadata:s:s:0 title="中文" \ output.mp4 ```
This is fast (stream-copy) and reversible. Use it when:
- Target platform supports embedded subs (YouTube auto-detects; VLC/QuickTime honors). - User wants viewers to be able to toggle off. - You don't want to re-encode the video.
`render.py --video IN.mp4 --srt SUB.srt --soft-mux` runs this path.
## Hardcoded burn-in (always visible, libass)
Required for WeChat/抖音/朋友圈 etc. where the player will not honor embedded subtitle tracks.
### Verify libass is available BEFORE promising burn-in
```bash ffmpeg -filters 2>&1 | grep -E "subtitles|^.. ass " ```
If neither `subtitles` nor `ass` shows up, the build lacks libass. Homebrew's default `ffmpeg` formula is often stripped (no `--enable-libass`, no `--enable-libfreetype`, no `drawtext`). Don't waste time fighting the comma-escaping inside `force_style` — it will fail with `No such filter: 'subtitles'` no matter how the shell quotes it.
### Fastest fix on macOS — drop in a static build, no system changes
```bash curl -fsSL -o /tmp/ff.zip https://evermeet.cx/ffmpeg/getrelease/zip unzip -o /tmp/ff.zip -d /tmp/ff_bin >/dev/null FF=/tmp/ff_bin/ffmpeg $FF -version | grep -oE -- "--enable-(libass|libfreetype)" ```
Then use `$FF` instead of `ffmpeg` for the render. The brew binary is fine for everything else (probe, audio extraction, soft-mux). `render.py` does this auto-fallback if its default ffmpeg lacks libass.
### Burn-in render with style overrides
🛑 **Checkpoint — confirm before full-render.** Burn-in re-encodes the entire video (minutes of CPU on a 5-min clip). Before kicking it off:
1. Render only the first 30s with `-t 30` for a fast preview. 2. Extract a frame from the longest-line cue (see Fontsize calibration below) and Read it. 3. Show the user the preview frame + the cue text, ask: "字号/字体/边距 OK 吗?OK 才跑全片。" Wait for explicit confirmation.
Skip the checkpoint only if the user has already approved a full render of this exact video at this exact font config in the same conversation.
```bash $FF -i input.mp4 \ -vf "subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a copy output.mp4 ```
Inside `force_style`, escape every comma as `\,` (the filter graph parser eats the bare comma as a chain separator). All other special chars are fine.
### Fontsize calibration — critical
libass scales its internal PlayRes up to the actual video resolution. The number you pass is **not pixels** in the output. As a starting calibration on a 544×960 vertical phone video, `Fontsize=22` rendered each Chinese character at ~55px wide and overflowed the frame, while `Fontsize=12` rendered at ~30–35px wide and fit cleanly with 15-char lines.
Rule of thumb: start at `Fontsize=12`, render, then **always** extract a frame and look:
```bash $FF -ss 30 -i output.mp4 -frames:v 1 /tmp/frame.png -y # then Read /tmp/frame.png to verify the longest-line cue fits ```
Pick a timestamp that lands on the cue with the most characters per line — short lines won't expose overflow. Add `MarginL=20 MarginR=20` as a safety inset; never trust default left/right margins.
### Style cheatsheet
Keys that matter (libass `force_style`):
- `Fontname=PingFang SC` — macOS default CJK; alternates: `Songti SC`, `Heiti SC`, `STHeiti`, `Hiragino Sans GB`. - `Fontsize=12` — start small, scale up only after frame check. - `PrimaryColour=&H00FFFFFF` — white text (BBGGRR + alpha). - `OutlineColour=&H00000000` — black outline. - `BorderStyle=1` — outline only (clean over varied backgrounds). Use `BorderStyle=3` for an opaque box behind text when the background is busy. - `Outline=2` — 2px outline thickness. - `Shadow=1` — subtle drop shadow. - `MarginL=20 MarginR=20` — keep text inside the frame. - `MarginV=40` — vertical distance from the bottom edge.
### SRT line-length discipline for burn-in
Even with correct `Fontsize`, lines that are too long will wrap or overflow. Keep each on-screen line ≤ ~15 Chinese characters (~42 Latin chars). Use explicit `\n` line breaks inside the SRT block — do not rely on auto-wrapping. Two short lines beat one long one every time. (This is upstream discipline — `/wjs-translating-subtitles` should already cap cues at these limits.)
## Audio mixing — keep the original as a low-volume bed
A pure dub-only track sounds dubbed (because it is). Mixing the original audio at low volume under the dub gives the "professional translation" feel — you still hear the speaker's breath, emphasis, and laughter, just under the new voice.
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:a]volume=0.18[orig];\ [1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map 0:v -map "[a]" \ -c:v copy -c:a aac -b:a 192k mixed.mp4 ```
Reasonable starting volumes:
- Original bed at `0.15`–`0.25` (≈ −16 to −12 dB) - Dub at `1.0` - Use `normalize=0` so amix doesn't auto-attenuate when both are active.
To drop the original entirely: `--no-original-audio` (equivalent to `--bed-volume 0`).
## Combining dub + burn-in + bed (the full job)
One ffmpeg call does all three — burn the target subtitle onto the video stream and mix the two audio tracks:
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:v]subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'[v];\ [0:a]volume=0.18[orig];[1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map "[v]" -map "[a]" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a aac -b:a 192k final.mp4 ```
This is the "ship to social media" final cut. `render.py --video original.mp4 --dub dub.mp4 --srt input.zh-CN.srt` runs this exact pipeline.
## Running `render.py`
```bash # Subtitles only (burn): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --out OUT.mp4
# Dub only (replace audio, no subs): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --dub IN_zh_dub.mp4 --out OUT.mp4
# Full localized cut (burn + dub + original bed): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt IN.zh-CN.srt --dub IN_zh_dub.mp4 --out OUT.mp4
# Soft-mux (no re-encode): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --soft-mux --out OUT.mp4 ```
See `render.py --help` for the full style/audio flag list (`--font`, `--fontsize`, `--color`, `--outline-color`, `--margin-v`, `--bed-volume`, `--no-original-audio`).
## Output
- Burn mode: `<source>_burned.mp4` (re-encoded, libass-rendered subs) - Soft-mux mode: `<source>_softsub.mp4` (stream-copy, `mov_text` track) - Full cut: `<source>_final.mp4` (re-encoded video with burned subs + mixed audio)
## Anti-patterns
- ❌ **Promising burn-in without verifying libass.** Check `ffmpeg -filters | grep subtitles` first; auto-fall back to evermeet static build if missing. - ❌ **Committing a burn render without a frame check.** Always extract a frame at the longest-line cue and Read it before kicking off the full render. - ❌ **Bare commas inside `force_style`.** The filter graph parser eats them. Escape every internal comma as `\,`. - ❌ **Mixing libass burn-in with HyperFrames captions.** Pick ONE caption system per output video. If you're using HTML/CSS captions in `/wjs-overlaying-video`, don't burn here too. - ❌ **Using period milliseconds in the SRT.** Whisper local writes `.mmm`; libass tolerates it but other downstream tools choke. Normalize to `,mmm`. - ❌ **Defaulting to `BorderStyle=3` (opaque box).** Use `BorderStyle=1` (outline only) unless the background is genuinely busy — the box looks heavy and dated.
## Upstream
- **`/wjs-transcribing-audio`** + **`/wjs-translating-subtitles`** — produce the SRT input. - **`/wjs-dubbing-video`** — produces the `*_<lang>_dub.mp4` input for full-localized-cut mode. The dub-only file is technically a finished video; this skill is what mixes the original underneath and burns the subs to make it shippable.
## Common pitfalls
- **Fontsize that worked on one video looks tiny / huge on another.** libass scales by PlayRes ratio, not pixels. Recalibrate per video resolution; don't trust a hardcoded value. - **Margin defaults clip text on vertical phone videos.** Always set `MarginL=20 MarginR=20` and `MarginV=40` (or higher) explicitly. - **`mov_text` track shows up in QuickTime but not in some Android players.** If the target audience is mobile-Chinese, soft-mux is unreliable; burn instead. - **Background-bus busy / contrast issues.** Increase `Outline=2` → `Outline=3`, or switch to `BorderStyle=3` for a translucent box (`BackColour=&H80000000` for 50% black).
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for wjs-burning-subtitles, ready for a manual X post.
wjs-burning-subtitles: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels... 129 stars https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x
Listing + install path for wjs-burning-subtitles: https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x Install: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to jianshuo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles/audit)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)jianshuo
@jianshuo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsSandbox only
Install targets
Codex install prompt
Install the "wjs-burning-subtitles" agent skill from https://github.com/jianshuo/claude-skills/tree/main/wjs-burning-subtitles. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"jianshuo-wjs-burning-subtitles","task":"Install wjs-burning-subtitles","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Design assets, images, video, audio, multimodal media, presentation, and creative production skills.
Scenario
Multimodal media
I need my agent to process images, video, or audio and extract useful information.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Maintenance
fresh
18d since push
Risk
Needs review
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised.
GitHub quality
129
68/100 Quality · 70/100 Trust
Coverage tags
Review notes
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised. · The full content of render.py was not reviewed; only an excerpt was provided, so there may be unverified edge cases or error handling gaps.
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
129 GitHub stars
Repo activity
129 stars, 20 forks
Maintenance
18d since push
License
MIT
Install
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
Agent should check
Copy prompt
Task: Use wjs-burning-subtitles in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install
Install command: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
LLM text format
/api/skills/jianshuo-wjs-burning-subtitles/install?format=text
Find alternatives
/api/skills/search?q=wjs-burning-subtitles&limit=3
Agent prompt
Use wjs-burning-subtitles for this task. Review https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install, then install with: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/jianshuo-wjs-burning-subtitles
LLM text
/api/registry/manifest/jianshuo-wjs-burning-subtitles?format=text
Install alias
/api/registry/install/jianshuo-wjs-burning-subtitles
Recommend
/api/registry/recommend?task=Use%20wjs-burning-subtitles%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
GitHub automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO129 GitHub stars
Stars/forks activity
CHECK129 stars, 20 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Process rich media
I need my agent to process images, video, or audio and extract useful information.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: wjs-burning-subtitles description: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". ---
# wjs-burning-subtitles
Video + SRT → video with subtitles. Also the final-encode stage for the localization pipeline: takes a video, an optional dub track from `/wjs-dubbing-video`, and an optional SRT to burn, and produces the upload-ready MP4 in **one** ffmpeg pass. No cascade of decodes/re-encodes.
## When to use
- User has an SRT and wants it always-visible on the video (burn-in for 微信视频号 / 抖音 / WeChat — players that won't honor embedded subtitle tracks). - User wants a togglable subtitle track (soft-mux) for QuickTime / VLC / IINA / mobile players that support `mov_text`. - Final composite after `/wjs-dubbing-video`: burn target-language subs + mix dub over original-as-bed in one encode.
## When NOT to use
- No SRT yet → run `/wjs-transcribing-audio` then `/wjs-translating-subtitles` first. - HTML/CSS captions (kinetic, per-word highlights, custom fonts) on a clip composed in HyperFrames → use `/wjs-overlaying-video` instead. Don't mix libass burn-in with HyperFrames captions on the same output. - The "subtitles" are actually motion graphics (animated callouts, lower-thirds with logos, kinetic typography) → that's `/wjs-overlaying-video`, not this skill.
## The 3 modes of `render.py`
`scripts/render.py` auto-detects mode from flags:
1. **Subtitles only** — `--video + --srt` → re-encodes video with burned subs, original audio passes through. 2. **Dub only** — `--video + --dub` → keeps original video stream; replaces or mixes the audio track. 3. **Full localized cut** — `--video + --srt + --dub` → burns subs AND mixes dub. By default keeps original audio at low volume as a "bed" under the dub (set `--bed-volume 0` or `--no-original-audio` to drop it).
Burn-in requires an ffmpeg built with libass. The script auto-downloads a static libass-enabled build from evermeet.cx into `/tmp/ff_bin/` on first use if needed.
## Soft-mux (togglable subtitle track)
Player apps can show/hide. Works with any `ffmpeg` build — does **not** need libass:
```bash ffmpeg -i input.mp4 -i input.zh-CN.srt \ -map 0:v -map 0:a -map 1:0 \ -c:v copy -c:a copy -c:s mov_text \ -metadata:s:s:0 language=zho -metadata:s:s:0 title="中文" \ output.mp4 ```
This is fast (stream-copy) and reversible. Use it when:
- Target platform supports embedded subs (YouTube auto-detects; VLC/QuickTime honors). - User wants viewers to be able to toggle off. - You don't want to re-encode the video.
`render.py --video IN.mp4 --srt SUB.srt --soft-mux` runs this path.
## Hardcoded burn-in (always visible, libass)
Required for WeChat/抖音/朋友圈 etc. where the player will not honor embedded subtitle tracks.
### Verify libass is available BEFORE promising burn-in
```bash ffmpeg -filters 2>&1 | grep -E "subtitles|^.. ass " ```
If neither `subtitles` nor `ass` shows up, the build lacks libass. Homebrew's default `ffmpeg` formula is often stripped (no `--enable-libass`, no `--enable-libfreetype`, no `drawtext`). Don't waste time fighting the comma-escaping inside `force_style` — it will fail with `No such filter: 'subtitles'` no matter how the shell quotes it.
### Fastest fix on macOS — drop in a static build, no system changes
```bash curl -fsSL -o /tmp/ff.zip https://evermeet.cx/ffmpeg/getrelease/zip unzip -o /tmp/ff.zip -d /tmp/ff_bin >/dev/null FF=/tmp/ff_bin/ffmpeg $FF -version | grep -oE -- "--enable-(libass|libfreetype)" ```
Then use `$FF` instead of `ffmpeg` for the render. The brew binary is fine for everything else (probe, audio extraction, soft-mux). `render.py` does this auto-fallback if its default ffmpeg lacks libass.
### Burn-in render with style overrides
🛑 **Checkpoint — confirm before full-render.** Burn-in re-encodes the entire video (minutes of CPU on a 5-min clip). Before kicking it off:
1. Render only the first 30s with `-t 30` for a fast preview. 2. Extract a frame from the longest-line cue (see Fontsize calibration below) and Read it. 3. Show the user the preview frame + the cue text, ask: "字号/字体/边距 OK 吗?OK 才跑全片。" Wait for explicit confirmation.
Skip the checkpoint only if the user has already approved a full render of this exact video at this exact font config in the same conversation.
```bash $FF -i input.mp4 \ -vf "subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a copy output.mp4 ```
Inside `force_style`, escape every comma as `\,` (the filter graph parser eats the bare comma as a chain separator). All other special chars are fine.
### Fontsize calibration — critical
libass scales its internal PlayRes up to the actual video resolution. The number you pass is **not pixels** in the output. As a starting calibration on a 544×960 vertical phone video, `Fontsize=22` rendered each Chinese character at ~55px wide and overflowed the frame, while `Fontsize=12` rendered at ~30–35px wide and fit cleanly with 15-char lines.
Rule of thumb: start at `Fontsize=12`, render, then **always** extract a frame and look:
```bash $FF -ss 30 -i output.mp4 -frames:v 1 /tmp/frame.png -y # then Read /tmp/frame.png to verify the longest-line cue fits ```
Pick a timestamp that lands on the cue with the most characters per line — short lines won't expose overflow. Add `MarginL=20 MarginR=20` as a safety inset; never trust default left/right margins.
### Style cheatsheet
Keys that matter (libass `force_style`):
- `Fontname=PingFang SC` — macOS default CJK; alternates: `Songti SC`, `Heiti SC`, `STHeiti`, `Hiragino Sans GB`. - `Fontsize=12` — start small, scale up only after frame check. - `PrimaryColour=&H00FFFFFF` — white text (BBGGRR + alpha). - `OutlineColour=&H00000000` — black outline. - `BorderStyle=1` — outline only (clean over varied backgrounds). Use `BorderStyle=3` for an opaque box behind text when the background is busy. - `Outline=2` — 2px outline thickness. - `Shadow=1` — subtle drop shadow. - `MarginL=20 MarginR=20` — keep text inside the frame. - `MarginV=40` — vertical distance from the bottom edge.
### SRT line-length discipline for burn-in
Even with correct `Fontsize`, lines that are too long will wrap or overflow. Keep each on-screen line ≤ ~15 Chinese characters (~42 Latin chars). Use explicit `\n` line breaks inside the SRT block — do not rely on auto-wrapping. Two short lines beat one long one every time. (This is upstream discipline — `/wjs-translating-subtitles` should already cap cues at these limits.)
## Audio mixing — keep the original as a low-volume bed
A pure dub-only track sounds dubbed (because it is). Mixing the original audio at low volume under the dub gives the "professional translation" feel — you still hear the speaker's breath, emphasis, and laughter, just under the new voice.
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:a]volume=0.18[orig];\ [1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map 0:v -map "[a]" \ -c:v copy -c:a aac -b:a 192k mixed.mp4 ```
Reasonable starting volumes:
- Original bed at `0.15`–`0.25` (≈ −16 to −12 dB) - Dub at `1.0` - Use `normalize=0` so amix doesn't auto-attenuate when both are active.
To drop the original entirely: `--no-original-audio` (equivalent to `--bed-volume 0`).
## Combining dub + burn-in + bed (the full job)
One ffmpeg call does all three — burn the target subtitle onto the video stream and mix the two audio tracks:
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:v]subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'[v];\ [0:a]volume=0.18[orig];[1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map "[v]" -map "[a]" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a aac -b:a 192k final.mp4 ```
This is the "ship to social media" final cut. `render.py --video original.mp4 --dub dub.mp4 --srt input.zh-CN.srt` runs this exact pipeline.
## Running `render.py`
```bash # Subtitles only (burn): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --out OUT.mp4
# Dub only (replace audio, no subs): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --dub IN_zh_dub.mp4 --out OUT.mp4
# Full localized cut (burn + dub + original bed): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt IN.zh-CN.srt --dub IN_zh_dub.mp4 --out OUT.mp4
# Soft-mux (no re-encode): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --soft-mux --out OUT.mp4 ```
See `render.py --help` for the full style/audio flag list (`--font`, `--fontsize`, `--color`, `--outline-color`, `--margin-v`, `--bed-volume`, `--no-original-audio`).
## Output
- Burn mode: `<source>_burned.mp4` (re-encoded, libass-rendered subs) - Soft-mux mode: `<source>_softsub.mp4` (stream-copy, `mov_text` track) - Full cut: `<source>_final.mp4` (re-encoded video with burned subs + mixed audio)
## Anti-patterns
- ❌ **Promising burn-in without verifying libass.** Check `ffmpeg -filters | grep subtitles` first; auto-fall back to evermeet static build if missing. - ❌ **Committing a burn render without a frame check.** Always extract a frame at the longest-line cue and Read it before kicking off the full render. - ❌ **Bare commas inside `force_style`.** The filter graph parser eats them. Escape every internal comma as `\,`. - ❌ **Mixing libass burn-in with HyperFrames captions.** Pick ONE caption system per output video. If you're using HTML/CSS captions in `/wjs-overlaying-video`, don't burn here too. - ❌ **Using period milliseconds in the SRT.** Whisper local writes `.mmm`; libass tolerates it but other downstream tools choke. Normalize to `,mmm`. - ❌ **Defaulting to `BorderStyle=3` (opaque box).** Use `BorderStyle=1` (outline only) unless the background is genuinely busy — the box looks heavy and dated.
## Upstream
- **`/wjs-transcribing-audio`** + **`/wjs-translating-subtitles`** — produce the SRT input. - **`/wjs-dubbing-video`** — produces the `*_<lang>_dub.mp4` input for full-localized-cut mode. The dub-only file is technically a finished video; this skill is what mixes the original underneath and burns the subs to make it shippable.
## Common pitfalls
- **Fontsize that worked on one video looks tiny / huge on another.** libass scales by PlayRes ratio, not pixels. Recalibrate per video resolution; don't trust a hardcoded value. - **Margin defaults clip text on vertical phone videos.** Always set `MarginL=20 MarginR=20` and `MarginV=40` (or higher) explicitly. - **`mov_text` track shows up in QuickTime but not in some Android players.** If the target audience is mobile-Chinese, soft-mux is unreliable; burn instead. - **Background-bus busy / contrast issues.** Increase `Outline=2` → `Outline=3`, or switch to `BorderStyle=3` for a translucent box (`BackColour=&H80000000` for 50% black).
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for wjs-burning-subtitles, ready for a manual X post.
wjs-burning-subtitles: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels... 129 stars https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x
Listing + install path for wjs-burning-subtitles: https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x Install: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to jianshuo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles/audit)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)jianshuo
@jianshuo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsSandbox only
Install targets
Codex install prompt
Install the "wjs-burning-subtitles" agent skill from https://github.com/jianshuo/claude-skills/tree/main/wjs-burning-subtitles. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"jianshuo-wjs-burning-subtitles","task":"Install wjs-burning-subtitles","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Design assets, images, video, audio, multimodal media, presentation, and creative production skills.
Scenario
Multimodal media
I need my agent to process images, video, or audio and extract useful information.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Maintenance
fresh
18d since push
Risk
Needs review
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised.
GitHub quality
129
68/100 Quality · 70/100 Trust
Coverage tags
Review notes
The skill auto-downloads a static ffmpeg build from a third-party source (evermeet.cx) without explicit user consent, which could be a supply-chain risk if the source is compromised. · The full content of render.py was not reviewed; only an excerpt was provided, so there may be unverified edge cases or error handling gaps.
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
129 GitHub stars
Repo activity
129 stars, 20 forks
Maintenance
18d since push
License
MIT
Install
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
Agent should check
Copy prompt
Task: Use wjs-burning-subtitles in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20wjs-burning-subtitles%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install
Install command: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/jianshuo-wjs-burning-subtitles/install
LLM text format
/api/skills/jianshuo-wjs-burning-subtitles/install?format=text
Find alternatives
/api/skills/search?q=wjs-burning-subtitles&limit=3
Agent prompt
Use wjs-burning-subtitles for this task. Review https://www.openagentskill.com/api/skills/jianshuo-wjs-burning-subtitles/install, then install with: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitlesRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/jianshuo-wjs-burning-subtitles
LLM text
/api/registry/manifest/jianshuo-wjs-burning-subtitles?format=text
Install alias
/api/registry/install/jianshuo-wjs-burning-subtitles
Recommend
/api/registry/recommend?task=Use%20wjs-burning-subtitles%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
GitHub automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO129 GitHub stars
Stars/forks activity
CHECK129 stars, 20 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Process rich media
I need my agent to process images, video, or audio and extract useful information.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: wjs-burning-subtitles description: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track. Also handles the final composite step for the localization pipeline — burn subs, mix a dub track, and keep the original audio as a low-volume bed, all in ONE ffmpeg encode (no cascade). Verifies libass availability and auto-downloads a static evermeet ffmpeg build when Homebrew's stripped binary lacks it. Triggers — "烧字幕", "硬字幕", "burn subtitles", "burn-in subs", "embed subtitle", "soft mux SRT", "把字幕烧进视频", "做最终合成". ---
# wjs-burning-subtitles
Video + SRT → video with subtitles. Also the final-encode stage for the localization pipeline: takes a video, an optional dub track from `/wjs-dubbing-video`, and an optional SRT to burn, and produces the upload-ready MP4 in **one** ffmpeg pass. No cascade of decodes/re-encodes.
## When to use
- User has an SRT and wants it always-visible on the video (burn-in for 微信视频号 / 抖音 / WeChat — players that won't honor embedded subtitle tracks). - User wants a togglable subtitle track (soft-mux) for QuickTime / VLC / IINA / mobile players that support `mov_text`. - Final composite after `/wjs-dubbing-video`: burn target-language subs + mix dub over original-as-bed in one encode.
## When NOT to use
- No SRT yet → run `/wjs-transcribing-audio` then `/wjs-translating-subtitles` first. - HTML/CSS captions (kinetic, per-word highlights, custom fonts) on a clip composed in HyperFrames → use `/wjs-overlaying-video` instead. Don't mix libass burn-in with HyperFrames captions on the same output. - The "subtitles" are actually motion graphics (animated callouts, lower-thirds with logos, kinetic typography) → that's `/wjs-overlaying-video`, not this skill.
## The 3 modes of `render.py`
`scripts/render.py` auto-detects mode from flags:
1. **Subtitles only** — `--video + --srt` → re-encodes video with burned subs, original audio passes through. 2. **Dub only** — `--video + --dub` → keeps original video stream; replaces or mixes the audio track. 3. **Full localized cut** — `--video + --srt + --dub` → burns subs AND mixes dub. By default keeps original audio at low volume as a "bed" under the dub (set `--bed-volume 0` or `--no-original-audio` to drop it).
Burn-in requires an ffmpeg built with libass. The script auto-downloads a static libass-enabled build from evermeet.cx into `/tmp/ff_bin/` on first use if needed.
## Soft-mux (togglable subtitle track)
Player apps can show/hide. Works with any `ffmpeg` build — does **not** need libass:
```bash ffmpeg -i input.mp4 -i input.zh-CN.srt \ -map 0:v -map 0:a -map 1:0 \ -c:v copy -c:a copy -c:s mov_text \ -metadata:s:s:0 language=zho -metadata:s:s:0 title="中文" \ output.mp4 ```
This is fast (stream-copy) and reversible. Use it when:
- Target platform supports embedded subs (YouTube auto-detects; VLC/QuickTime honors). - User wants viewers to be able to toggle off. - You don't want to re-encode the video.
`render.py --video IN.mp4 --srt SUB.srt --soft-mux` runs this path.
## Hardcoded burn-in (always visible, libass)
Required for WeChat/抖音/朋友圈 etc. where the player will not honor embedded subtitle tracks.
### Verify libass is available BEFORE promising burn-in
```bash ffmpeg -filters 2>&1 | grep -E "subtitles|^.. ass " ```
If neither `subtitles` nor `ass` shows up, the build lacks libass. Homebrew's default `ffmpeg` formula is often stripped (no `--enable-libass`, no `--enable-libfreetype`, no `drawtext`). Don't waste time fighting the comma-escaping inside `force_style` — it will fail with `No such filter: 'subtitles'` no matter how the shell quotes it.
### Fastest fix on macOS — drop in a static build, no system changes
```bash curl -fsSL -o /tmp/ff.zip https://evermeet.cx/ffmpeg/getrelease/zip unzip -o /tmp/ff.zip -d /tmp/ff_bin >/dev/null FF=/tmp/ff_bin/ffmpeg $FF -version | grep -oE -- "--enable-(libass|libfreetype)" ```
Then use `$FF` instead of `ffmpeg` for the render. The brew binary is fine for everything else (probe, audio extraction, soft-mux). `render.py` does this auto-fallback if its default ffmpeg lacks libass.
### Burn-in render with style overrides
🛑 **Checkpoint — confirm before full-render.** Burn-in re-encodes the entire video (minutes of CPU on a 5-min clip). Before kicking it off:
1. Render only the first 30s with `-t 30` for a fast preview. 2. Extract a frame from the longest-line cue (see Fontsize calibration below) and Read it. 3. Show the user the preview frame + the cue text, ask: "字号/字体/边距 OK 吗?OK 才跑全片。" Wait for explicit confirmation.
Skip the checkpoint only if the user has already approved a full render of this exact video at this exact font config in the same conversation.
```bash $FF -i input.mp4 \ -vf "subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a copy output.mp4 ```
Inside `force_style`, escape every comma as `\,` (the filter graph parser eats the bare comma as a chain separator). All other special chars are fine.
### Fontsize calibration — critical
libass scales its internal PlayRes up to the actual video resolution. The number you pass is **not pixels** in the output. As a starting calibration on a 544×960 vertical phone video, `Fontsize=22` rendered each Chinese character at ~55px wide and overflowed the frame, while `Fontsize=12` rendered at ~30–35px wide and fit cleanly with 15-char lines.
Rule of thumb: start at `Fontsize=12`, render, then **always** extract a frame and look:
```bash $FF -ss 30 -i output.mp4 -frames:v 1 /tmp/frame.png -y # then Read /tmp/frame.png to verify the longest-line cue fits ```
Pick a timestamp that lands on the cue with the most characters per line — short lines won't expose overflow. Add `MarginL=20 MarginR=20` as a safety inset; never trust default left/right margins.
### Style cheatsheet
Keys that matter (libass `force_style`):
- `Fontname=PingFang SC` — macOS default CJK; alternates: `Songti SC`, `Heiti SC`, `STHeiti`, `Hiragino Sans GB`. - `Fontsize=12` — start small, scale up only after frame check. - `PrimaryColour=&H00FFFFFF` — white text (BBGGRR + alpha). - `OutlineColour=&H00000000` — black outline. - `BorderStyle=1` — outline only (clean over varied backgrounds). Use `BorderStyle=3` for an opaque box behind text when the background is busy. - `Outline=2` — 2px outline thickness. - `Shadow=1` — subtle drop shadow. - `MarginL=20 MarginR=20` — keep text inside the frame. - `MarginV=40` — vertical distance from the bottom edge.
### SRT line-length discipline for burn-in
Even with correct `Fontsize`, lines that are too long will wrap or overflow. Keep each on-screen line ≤ ~15 Chinese characters (~42 Latin chars). Use explicit `\n` line breaks inside the SRT block — do not rely on auto-wrapping. Two short lines beat one long one every time. (This is upstream discipline — `/wjs-translating-subtitles` should already cap cues at these limits.)
## Audio mixing — keep the original as a low-volume bed
A pure dub-only track sounds dubbed (because it is). Mixing the original audio at low volume under the dub gives the "professional translation" feel — you still hear the speaker's breath, emphasis, and laughter, just under the new voice.
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:a]volume=0.18[orig];\ [1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map 0:v -map "[a]" \ -c:v copy -c:a aac -b:a 192k mixed.mp4 ```
Reasonable starting volumes:
- Original bed at `0.15`–`0.25` (≈ −16 to −12 dB) - Dub at `1.0` - Use `normalize=0` so amix doesn't auto-attenuate when both are active.
To drop the original entirely: `--no-original-audio` (equivalent to `--bed-volume 0`).
## Combining dub + burn-in + bed (the full job)
One ffmpeg call does all three — burn the target subtitle onto the video stream and mix the two audio tracks:
```bash $FF -i original.mp4 -i dub.mp4 \ -filter_complex "[0:v]subtitles=input.zh-CN.srt:force_style='Fontname=PingFang SC\,Fontsize=12\,PrimaryColour=&H00FFFFFF\,OutlineColour=&H00000000\,BorderStyle=1\,Outline=2\,Shadow=1\,MarginL=20\,MarginR=20\,MarginV=40'[v];\ [0:a]volume=0.18[orig];[1:a]volume=1.0[dub];\ [orig][dub]amix=inputs=2:duration=longest:normalize=0[a]" \ -map "[v]" -map "[a]" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a aac -b:a 192k final.mp4 ```
This is the "ship to social media" final cut. `render.py --video original.mp4 --dub dub.mp4 --srt input.zh-CN.srt` runs this exact pipeline.
## Running `render.py`
```bash # Subtitles only (burn): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --out OUT.mp4
# Dub only (replace audio, no subs): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --dub IN_zh_dub.mp4 --out OUT.mp4
# Full localized cut (burn + dub + original bed): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt IN.zh-CN.srt --dub IN_zh_dub.mp4 --out OUT.mp4
# Soft-mux (no re-encode): python3 ~/.claude/skills/wjs-burning-subtitles/scripts/render.py \ --video IN.mp4 --srt SUB.srt --soft-mux --out OUT.mp4 ```
See `render.py --help` for the full style/audio flag list (`--font`, `--fontsize`, `--color`, `--outline-color`, `--margin-v`, `--bed-volume`, `--no-original-audio`).
## Output
- Burn mode: `<source>_burned.mp4` (re-encoded, libass-rendered subs) - Soft-mux mode: `<source>_softsub.mp4` (stream-copy, `mov_text` track) - Full cut: `<source>_final.mp4` (re-encoded video with burned subs + mixed audio)
## Anti-patterns
- ❌ **Promising burn-in without verifying libass.** Check `ffmpeg -filters | grep subtitles` first; auto-fall back to evermeet static build if missing. - ❌ **Committing a burn render without a frame check.** Always extract a frame at the longest-line cue and Read it before kicking off the full render. - ❌ **Bare commas inside `force_style`.** The filter graph parser eats them. Escape every internal comma as `\,`. - ❌ **Mixing libass burn-in with HyperFrames captions.** Pick ONE caption system per output video. If you're using HTML/CSS captions in `/wjs-overlaying-video`, don't burn here too. - ❌ **Using period milliseconds in the SRT.** Whisper local writes `.mmm`; libass tolerates it but other downstream tools choke. Normalize to `,mmm`. - ❌ **Defaulting to `BorderStyle=3` (opaque box).** Use `BorderStyle=1` (outline only) unless the background is genuinely busy — the box looks heavy and dated.
## Upstream
- **`/wjs-transcribing-audio`** + **`/wjs-translating-subtitles`** — produce the SRT input. - **`/wjs-dubbing-video`** — produces the `*_<lang>_dub.mp4` input for full-localized-cut mode. The dub-only file is technically a finished video; this skill is what mixes the original underneath and burns the subs to make it shippable.
## Common pitfalls
- **Fontsize that worked on one video looks tiny / huge on another.** libass scales by PlayRes ratio, not pixels. Recalibrate per video resolution; don't trust a hardcoded value. - **Margin defaults clip text on vertical phone videos.** Always set `MarginL=20 MarginR=20` and `MarginV=40` (or higher) explicitly. - **`mov_text` track shows up in QuickTime but not in some Android players.** If the target audience is mobile-Chinese, soft-mux is unreliable; burn instead. - **Background-bus busy / contrast issues.** Increase `Outline=2` → `Outline=3`, or switch to `BorderStyle=3` for a translucent box (`BackColour=&H80000000` for 50% black).
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for wjs-burning-subtitles, ready for a manual X post.
wjs-burning-subtitles: Use when the user has a video + an SRT and wants the subtitles either burned into the pixels... 129 stars https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x
Listing + install path for wjs-burning-subtitles: https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=x Install: npx skills add jianshuo/claude-skills --skill wjs-burning-subtitles
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to jianshuo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles/audit)
[](https://www.openagentskill.com/skills/jianshuo-wjs-burning-subtitles?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)jianshuo
@jianshuo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness