burn-subtitles
Generate subtitles (whisper.cpp / faster-whisper) for a video and either save the SRT alongside or burn them into the picture.
Skill by danielrosehill
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/danielrosehill-burn-subtitles
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/burn-subtitles
Tools it pre-approves 16
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(test*),Bash(mkdirBash(jqBash(realpathBash(basenameBash(dirnameBash(ffmpegBash(ffprobeBash(*/whisper-cliBash(whisper-cliBash(whisper
Show 4 more
Bash(*/mainBash(uvRead,Write
What's inside
- Skill name
burn-subtitles- Description
- Generate subtitles (whisper.cpp / faster-whisper) for a video and either save the SRT alongside or burn them into the picture. Use when the user says "subtitle this", "add captions", "burn subtitles", "transcribe and caption this video", "generate SRT for this". Accepts an existing SRT instead of regenerating. Picks the user's preferred whisper backend from preferences.json (set via onboard).
- License
- MIT
- Allowed tools
- Bash(test, *),, Bash(mkdir, *),, Bash(jq, *),, Bash(realpath, *),, Bash(basename, *),, Bash(dirname, *),, Bash(ffmpeg, *),, Bash(ffprobe, *),, Bash(*/whisper-cli, *),, Bash(whisper-cli, *),, Bash(whisper, *),, Bash(*/main, *),, Bash(uv, *),, Read,, Write
- Instructions
- 132 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (1)
- SKILL.md
SKILL.md (first lines)
# Burn Subtitles
Two related operations gated on a single flag:
1. **Generate** — transcribe a video to SRT (saved alongside as `<basename>.srt`).
2. **Burn** — composite the SRT into the picture as styled subtitles.
Default behaviour: generate the SRT and ask the user whether to also burn it. SRT-only is the safer default — burned subtitles are unrecoverable without the source.
## Procedure
### 1. Resolve backend
```bash
DATA_DIR="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/video-editing"
PREFS="$DATA_DIR/preferences.json"
VENV=$(jq -r '.python_venv // empty' "$PREFS" 2>/dev/null)
BACKEND=$(jq -r '.subtitle_backend // empty' "$PREFS" 2>/dev/null)
MODEL=$(jq -r '.subtitle_model // "base"' "$PREFS" 2>/dev/null)
case "$BACKEND" in
faster-whisper)
if [ -x "$VENV/bin/faster-whisper-cli" ]; then
WHISPER="$VENV/bin/faster-whisper-cli"
elif [ -x "$VENV/bin/python" ]; then
WHISPER="$VENV/bin/python -m faster_whisper"
fi
;;
whisper.cpp)
WHISPER=$(command -v whisper-cli || command -v main)
;;
*)
# Auto-detect
if [ -x "$VENV/bin/faster-whisper-cli" ]; then WHISPER="$VENV/bin/faster-whisper-cli"; BACKEND=faster-whisper
elif command -v whisper-cli >/dev/null; then WHISPER=whisper-cli; BACKEND=whisper.cpp
else
echo "No whisper backend found. Run deps-setup and choose faster-whisper or whisper.cpp, then onboard."
exit 1
fi
;;
esac
```
### 2. Inputs
| Field | Default |
|-------|---------|
| Source | required (video) |
| SRT mode | `generate` (default) / `existing <path>` |
| Burn? | `false` (default — save SRT alongside; ask before burning) |
| Model | from `preferences.subtitle_model` (default `base` for whisper.cpp, `small` for faster-whisper) |
| Language | auto-detect; user can force (`en`, `he`, etc.) |
| Style | from `preferences.subtitle_style` (font, size, primary colour, outline, position); else ffmpeg `subtitles` defaults |
| Output | `<basename>.subs.<ext>` if burning; SRT always saved as `<basename>.srt` |
### 3. Generate the SRT (if mode == generate)
#### faster-whisper
```bash
"$VENV/bin/python" -m faster_whisper \
--model "$MODEL" \
--output_format srt \
--output_dir "$(dirname "$SRC")" \
${LANG:+--language "$LANG"} \
"$SRC"
```
#### whisper.cpp
whisper.cpp wants 16 kHz mono WAV. Extract first:
```bash
WAV=$(mktemp --suffix=.wav)
ffmpeg -hide_banner -y -i "$SRC" -ac 1 -ar 16000 -vn "$WAV"
"$WHISPER" -m "$MODEL_PATH" -f "$WAV" --output-srt --output-file "${SRC%.*}"
rm "$WAV"
```
`$MODEL_PATH` is the GGML model file path recorded in `preferences.subtitle_model_path` by `onboard` (whisper.cpp ships models as files, not names).
### 4. Burn (only if requested)
ffmpeg's `subtitles` filter renders SRT styling via libass. Style is passed inline via `force_style`:
```bash
STYLE="${SUB_STYLE:-FontName=Inter,FontSize=24,PrimaryColour=&HFFFFFF,OutlineColour=&H000000,BorderStyle=1,Outline=2,Shadow=0,Alignment=2,MarginV=40}"
# Escape the SRT path for filtergraph (single-quote, escape colons & backslashes)
ESC_SRT=$(printf %s "$SRT" | sed -e 's/\\/\\\\/g' -e "s/'/\\\\'/g" -e 's/:/\\:/g')
ffmpeg -hide_banner -y -i "$SRC" \
-vf "subtitles='${ESC_SRT}':force_style='${STYLE}'" \
-c:v libx264 -crf 18 -preset medium \
-c:a copy \
-movflags +faststart \
"$OUT"
```
Re-encoding video is required (subtitles modify pixels). If the user has a render profile selected, prefer the GPU encoder from `system-profile.json` — but burned subtitles need libass-compatible YUV, and VAAPI hwupload chains complicate things. For a first pass, libx264 at CRF 18 is the safe choice. Mention this to the user.
### 5. Soft-subtitle alternative (no burn)
If the user wants embedded but selectable subtitles (recommended), mux the SRT as a track:
```bash
ffmpeg -hide_banner -y -i "$SRC" -i "$SRT" \
-map 0 -map 1 \
-c copy -c:s mov_text \
-metadata:s:s:0 language="${LANG:-eng}" \
"${SRC%.*}.subbed.mp4"
```
This is reversible, smaller, and works on most players. Prefer this unless the user explicitly wants burned-in.
### 6. Report
```
Source : path/to/in.mp4From danielrosehill/Claude-Video-Editor-Plugin, MIT.
More from danielrosehill/Claude-Video-Editor-Plugin
- 0.418score
mkv-strip-tracks
danielrosehill
Remove unwanted tracks (audio, subtitle, video) from a Matroska container and save a new, smaller file.
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
agentic-edit
danielrosehill
Run an agentic / LLM-driven cut-down on a long video — "make a 60-second highlight reel of this hour-long stream", "cut the boring parts from this lecture"…
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
audio-analysis
danielrosehill
Extract audio from a video (or analyze a standalone audio file) and report loudness — integrated LUFS, true peak (dBTP), loudness range — against a target…
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
audio-to-music-video
danielrosehill
Turn an audio file into a music video by compositing a waveform / spectrum / circular-CQT animation over cover art or a background.
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
auto-cut-silences
danielrosehill
Remove silent / dead-air segments from a video or audio file using auto-editor.
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
burn-graphics
danielrosehill
Overlay graphics onto a video — lower thirds, watermarks/logos, image overlays, or text titles — at specified timestamps.
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
clean-transcription
danielrosehill
Clean up a raw whisper transcript (SRT or TXT) — strip filler words, fix recurring mistranscriptions via a per-project glossary, and (optionally) re-flow line…
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
create-render-profile
danielrosehill
Build a named, reusable render profile (codec + resolution + bitrate/QP + container) by iterating on a 30-second test clip until file size and quality are…
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
cut-segment
danielrosehill
Extract one or more time-range segments from a video.
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
dedupe-clips
danielrosehill
Find duplicate or near-duplicate clips in a folder.
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
delete-render-profile
danielrosehill
Delete a saved render profile by name.
SkillCFreshness: C★ 6Claude Code +9 - 0.418score
deps-setup
danielrosehill
Install optional video-editing tools (moviepy, auto-editor, video-use, VideoAgent, vit, LosslessCut, editly) plus media-inspection helpers (exiftool…
SkillCFreshness: C★ 6Claude Code +9
Signals
- Stars
- 6
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 30, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from danielrosehill
- 0.470score
plugin-data-storage
danielrosehill
Canonical reference for where Claude Code plugins should persist user data.
SkillAFreshness: A★ 2Claude Code +9 - 0.470score
save-plan
danielrosehill
Save a Claude Code plan (from ExitPlanMode, design discussion, or multi-step task) to persistent storage.
SkillAFreshness: A★ 2Claude Code +9 - 0.470score
onboard
danielrosehill
First-run onboarding for the adb-ops plugin.
SkillAFreshness: A★ 2Claude Code +9 - 0.470score
context-gate
danielrosehill
One-shot context-checkpoint workflow — when the current session is getting cluttered, write a structured handover plan capturing what's done and what's…
SkillAFreshness: A★ 2Claude Code +9 - 0.470score
context-workflow-reference
danielrosehill
Reference and worked example for the CONTEXT.md / CLAUDE.md two-file workflow.
SkillAFreshness: A★ 2Claude Code +9 - 0.470score
scaffold-planning
danielrosehill
Create a lightweight `planning/` folder in the current repo with leftover-tasks.md, blockers.md, session-logs/, and handovers/.
SkillAFreshness: A★ 2Claude Code +9
Cite this page
burn-subtitles skill. Agent Mart. https://agentmart.dev/skills/danielrosehill-burn-subtitles (last updated 2026-10-24)