Logo vun Captions

Captions

Communautéit
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.

Iwwersiicht

EditeuredotheDev
Repositoryclaude-video-kit
Skill-Nummcaptions
Stären
31
Forks
6
Matgeliwwert Fichieren
7
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum edotheDev op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Captions an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/edotheDev/claude-video-kit/tree/main/.claude/skills/captions
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Captions an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Captions automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Captions net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Captions op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Captions besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Captions an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/edotheDev/claude-video-kit/tree/main/.claude/skills/captions an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Captions benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Captions benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Captions domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Captions gratis?

Jo. De Skill gëtt vum edotheDev ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇