/video-editing:burn-subtitlesfrom video-editing
Transcribes video to SRT using whisper.cpp or faster-whisper, then optionally burns styled subtitles into the video. Accepts existing SRT files.
Ships in video-editing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two related operations gated on a single flag:
<basename>.srt).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.
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
| 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 |
"$VENV/bin/python" -m faster_whisper \
--model "$MODEL" \
--output_format srt \
--output_dir "$(dirname "$SRC")" \
${LANG:+--language "$LANG"} \
"$SRC"
whisper.cpp wants 16 kHz mono WAV. Extract first:
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).
ffmpeg's subtitles filter renders SRT styling via libass. Style is passed inline via force_style:
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.
If the user wants embedded but selectable subtitles (recommended), mux the SRT as a track:
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.
Source : path/to/in.mp4
SRT : path/to/in.srt (12.4 KB, 142 cues)
Mode : burned | soft-muxed | srt-only
Output : path/to/in.subs.mp4
Backend: faster-whisper / small / en
karaoke-video.clean-transcription pairs with this skill: run after generation to strip filler words and fix recurring mistranscriptions before burning.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
41 skills in this plugin
/agentic-editRun 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", "find the best moments in this footage". Wraps `video-use` (browser-use) by default; falls back to `VideoAgent` (HKU) for research-grade understanding. Both come from the shared uv venv set up by `deps-setup`. Outputs a cut-list (timestamps + reasons) and an optional rendered preview./audio-analysisExtract audio from a video (or analyze a standalone audio file) and report loudness — integrated LUFS, true peak (dBTP), loudness range — against a target like YouTube (-14 LUFS) or broadcast (-23 LUFS). Use when the user says "check loudness", "is this normalized", "extract the audio", "audio analysis", or "what LUFS is this". Read-only on the source — does not normalize./audio-to-music-videoTurn an audio file into a music video by compositing a waveform / spectrum / circular-CQT animation over cover art or a background. Templates (waveform-bottom, spectrum-bars, circular-cqt-cover, etc.) are saved in preferences.json so the user can pick by name. Use when the user says "make a music video from this audio", "audio to video with waveform", "render this song with a visualizer", "spectrum animation over cover art"./auto-cut-silencesRemove silent / dead-air segments from a video or audio file using auto-editor. Use when the user says "cut the silences", "remove dead air", "tighten this up", "auto-edit this", "trim the gaps". Requires auto-editor installed via deps-setup (lives in the plugin's shared uv venv). Outputs a tightened copy alongside the source; original is preserved./burn-graphicsOverlay graphics onto a video — lower thirds, watermarks/logos, image overlays, or text titles — at specified timestamps. Use when the user says "add a watermark", "put my logo in the corner", "burn in a lower third", "add a title card", "overlay this PNG at 0:30". Multiple overlays in one pass; each can have its own time range and position./clean-transcriptionClean up a raw whisper transcript (SRT or TXT) — strip filler words, fix recurring mistranscriptions via a per-project glossary, and (optionally) re-flow line breaks. Use when the user says "clean this transcript", "remove the ums", "fix the transcription", "tidy up the SRT before burning". Pairs with burn-subtitles (run before burning) and generate-deliverables.video-editing@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin video-editing