Captions logo

Captions

Community
edotheDev
captions

Burn clean, readable captions into recorded video (talking head, vlogs, interviews, demos) in any language, including speech that switches languages mid sentence. Measured pauses, local Whisper word timings, phrase aware line breaks, per script fonts, libass shaping. Use for "add subtitles", "caption this", "burn captions", "transcribe and caption", or fixing broken caption text.

Overview

PublisheredotheDev
Repositoryclaude-video-kit
Skill namecaptions
Stars
31
Forks
6
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by edotheDev on GitHub. Read the source before you install it.

Installation

Install the Captions AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/edotheDev/claude-video-kit/tree/main/.claude/skills/captions
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/edotheDev/claude-video-kit.git /tmp/claude-video-kit
mkdir -p .claude/skills
cp -r /tmp/claude-video-kit/.claude/skills/captions .claude/skills/captions
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Captions in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Captions on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Captions is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Captions

Scripts are in scripts/ (Node 20+). Install once: cd .claude/skills/captions/scripts && npm install. Every step writes JSON into a work folder, so any stage can be redone alone.

node prep.mjs <video> work                         -> work/meta.json, audio.wav, pauses.json, runs.json
node words.mjs <video> work/words.json             -> word timings from local Whisper (English: .en models)
node cues.mjs work/words.json work                 -> work/chunks.json (caption cues)
node ass.mjs work/chunks.json work/meta.json work/captions.ass [--font "Name"]
cd work && ffmpeg -i <video> -vf "ass=captions.ass:shaping=complex" -c:v libx264 -crf 18 -preset medium \
           -pix_fmt yuv420p -c:a copy -movflags +faststart <out>-captioned.mp4
  • prep.mjs measures the noise floor and sets the silence gate from it. Quiet recordings sit near -40 dB on average, so a fixed -30 dB gate finds no pauses at all. Never hard code the gate.
  • words.mjs downloads the model once into scripts/models/ (--model small is the default and the one to trust for on screen words; base is faster). It runs on the CPU and uploads nothing.
  • cues.mjs scores every possible break and picks the cheapest set for the whole video: sentence ends are free, a break after "the" or "to" is expensive, a phrasal verb ("lock in") is never split, a real pause always ends a cue, and a cue is charged for reading faster than about 21 characters a second. --max-chars 42 suits vertical video; use 60 for 16:9. --drop-fillers removes standalone um and uh.
  • ass.mjs wraps to the safe width, centres the block at 64.5 percent of the height, and prints OVERFLOWING_LINES, which must be 0.

When Whisper is the wrong tool

Whisper models are single language by design. Speech that switches language inside a sentence comes back as phonetic mush in one of the two scripts, and some languages (Burmese among them) were barely in its training data. For those:

  1. Get an anchored transcript from a model that handles the mix (Gemini does this well), in this shape, with an anchor every 10 to 20 seconds:
    [00:00] first sentence as spoken ...
    [00:15] next sentence ...
  2. node parse-anchored.mjs transcript.md work lays the lines out inside each anchor window by how long they take to say and snaps every boundary to a measured pause. It prints an integrity block: lossless must be true, or something ate text.
  3. node ass.mjs ... --font "Latin Face" --font2 "Script Face" --script2 myanmar (or cjk) gives each script its own font, run by run.

ElevenLabs Scribe (through its connector) also returns word timings for many languages and is a good second opinion on timing; keep the text from whichever source you can vouch for.

The caption law

  • Position: the block's centre at about 64.5 percent of the height. Higher sits on the chin; lower runs into the platform's own UI.
  • Size: about 4.2 percent of the frame height (54 px on 1280, 81 on 1920). 3.6 percent was too small to read on a phone.
  • Two lines at most, broken on meaning. A break like "I'm / feeling stuck in one" is a failure even when it fits.
  • White, thin dark outline (about 0.28 percent of the height, at least 3 px), no box. A box reads as an amateur burn in; an outline holds over a patterned shirt where a shadow alone does not.
  • One font per script, never one font for both. Set the size explicitly on every run, because an ASS override persists for the rest of the line. Latin often needs to be set a touch smaller (about 0.9) to look the same size as another script.
  • No karaoke word highlighting, no coloured keywords. Both are platform defaults and read as generated.
  • Fix names in work/corrections.json, never by hand editing later. Every edit carries a reason.
  • Skip what you cannot vouch for. A missing word is better than a wrong one.

Traps that have already cost time

  • Use the ass filter with shaping=complex, never the subtitles filter or drawtext. subtitles= silently uses simple shaping, which does not reorder complex scripts: in Burmese a vowel sign stored after its consonant must render before it, and without reordering it comes out wrong while still looking plausible. drawtext does no complex shaping at all.
  • Run ffmpeg from inside the work folder with a relative .ass name. A Windows absolute path puts a colon into the filter graph and it will not parse.
  • Check shaping zoomed. Crop the caption band and scale it 2x before judging; misordered marks are invisible at full frame size.
  • Write scripts with a file editor, never through a shell heredoc. Backslashes get eaten: /\s+/ silently became /s+/, which split on the letter s and deleted it from every word.
  • Keep the source resolution and frame rate. Never upscale.
  • Transcripts stay in files. Do not print a whole transcript into the chat; quote only the line you need.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Captions AI skill do?

Burn clean, readable captions into recorded video (talking head, vlogs, interviews, demos) in any language, including speech that switches languages mid sentence. Measured pauses, local Whisper word timings, phrase aware line breaks, per script fonts, libass shaping. Use for "add subtitles", "caption this", "burn captions", "transcribe and caption", or fixing broken caption text.

Why use Captions on TypingMind?

Because you install it once and use it with any model. Captions is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Captions in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/edotheDev/claude-video-kit/tree/main/.claude/skills/captions. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Captions?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Captions?

As many as you like. As long as a model supports skills, you can use Captions with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Captions AI skill free?

Yes. It is published on GitHub by edotheDev under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇