Zylcut
Download

Broadcast Subtitles

TV-standard SRT, VTT and burned-in subtitles, checked line by line by a linter

by @zylcut · By ZylcutVerifiedFounding creatorNewv1.0.0Reviewed by Zylcut 25 Nov 2026

Before: A 60 s cut of a two-person podcast (10:50-11:50 of the episode).. After: the result made by the skill from that input. The prompt and the steps the skill follows are written out below the player.

BeforeA 60 s cut of a two-person podcast (10:50-11:50 of the episode).1:00
AfterWhat the skill made1:00
0:00
Prompt used

Use the broadcast-subtitles skill on interview.mp4. I need proper TV-style subtitles: an SRT I can upload and a burned-in copy. Just do it.

Recipe

  1. 1Transcribe with word times and fix misheard names
  2. 2Label who speaks when there are two or more people
  3. 3Find camera cuts and segment the words into timed subtitles
  4. 4Lint every subtitle against the broadcast rules
  5. 5Burn in with a plate or outline and check frames

About

Turns a video's speech into sentence subtitles that follow the rules streaming services and broadcasters give their subtitlers, then checks every subtitle with a linter before delivery. You get an SRT to upload, a VTT, and a burned-in copy.

The rules are numbers, not taste: at most 2 lines of 42 characters, 20 characters per second (up to 22 on at most 1 subtitle in 10 to keep a clause whole), 5/6 s to 7 s on screen, 2-frame gaps, in and out times snapped to camera cuts, and line breaks that never strand "the" or "of". Two speakers get Netflix-style dashes with aligned lines. Text is sized to the BBC's 7% line height, and a dark plate is used automatically when the background behind the text is bright. The targets were checked against 3,820 professional subtitles from 17 talks.

Limits: on very fast speech (over about 200 words a minute) verbatim subtitles still split a few clauses and run fuller than a human subtitler's. Speaker turns and misheard names should be checked by you; the agent lists the ones it could not confirm.

Proof footage: We Wrote Letters to Our Younger Selves, Episode 6 by Two Peas In A Pod, CC BY, https://youtu.be/eproyMMv5QI.

Generic and Zylcut edition

One install. With Zylcut connected to your agent, the same skill uses Zylcut's tools instead of rendering files.

GenericWith Zylcut
ResultRendered video filesAn editable timeline in Zylcut, plus the export
Changing itAsk the agent to run it againRe-cut on the timeline or ask the agent; no full re-render to preview
Checking itWatch the fileZylcut's check finds cuts inside words, black frames and loudness problems
FeedbackDescribe changes in chatLeave review notes on the frame; the agent fixes each one
How Zylcut works

Instructions

The SKILL.md your agent reads, exactly as reviewed.

Broadcast subtitles

Sentence subtitles that a viewer reads without effort: the rules streaming services and broadcasters give their subtitlers, applied by a script and then checked by a linter, so the result passes a timed-text review. The numbers are in "Final values" and the reasons and sources in references/standard.md.

Which backend. If Zylcut MCP tools are available (for example context, media_transcribe, capture, check), follow references/zylcut.md; otherwise follow references/ffmpeg.md. Both use the same scripts and the same rules; only transcription, preview and burn-in differ.

When to use

  • Long-form, interviews, talks, tutorials, documentaries, client deliveries, accessibility.
  • Any request for an SRT or VTT file, or for subtitles that look like TV or streaming.
  • Not for 1-3 word "pop" captions on a fast short: that is a different style with different numbers (a word-pop caption skill).

Inputs

  • A video (landscape or vertical). Its speech should be in one language the transcriber reads.
  • Optional: a transcript or script (spellings of names), the speakers' names, the target (YouTube upload only, burned-in, or both), a font or a plate preference.

Approval gate

Before writing files, tell the user in five lines or fewer: the video and its size and frame rate, the language, what you will deliver (SRT, VTT, burned-in MP4), the style (white text with a thin outline, or a dark plate), the position, and any names you will spell a special way. Wait for a yes. Skip the wait only when the user said "just do it" or equivalent.

Pipeline

Every step ends with its check. Do not go on with a failed check.

  1. Probe. Size, frame rate and duration (ffprobe or media_probe). Check: the frame rate is the file's real rate (29.97 is not 30); every frame-based rule uses it.
  2. Transcribe with word times (scripts/words.py transcribe, or media_transcribe then scripts/words.py import). Check: read the transcript (words.py show). Fix misheard names and terms in words.json by editing the word text only, never the times. Never invent words: subtitles say what was said, minus fillers (um, uh) which the script drops if you remove them from words.json.
  3. Label speakers when two or more people talk (an interview, a podcast). Read words.py show: a question and its answer, "yeah", "no, no" and a change of topic mark the turns. For each turn you are unsure of, grab a frame a moment after it (ffmpeg -ss T -i VIDEO -frames:v 1 t.jpg) and see whose mouth moves. Then scripts/words.py label words.json 0=A 21=B 57=A (word numbers from show). Check: show prints <B w21> at each turn, and no turn sits inside a sentence unless someone really interrupts. A single speaker needs no labels.
  4. Find shot changes (scripts/subtitles.py shots VIDEO -o shots.json). Check: the count is plausible for the footage (a single-camera talk can have 0).
  5. Make the subtitles (scripts/subtitles.py make words.json --video VIDEO --shots shots.json -o subs). It segments at sentence and clause ends, balances the lines, times every subtitle by the rules and writes subs.srt, subs.vtt, subs.ass and subs.tsx. For vertical video it sets the line length from the safe width (about 32 characters).
  6. Lint (scripts/subtitles.py check subs.srt --fps FPS --shots shots.json --max-chars N). Check: 0 errors. Read every warning; fix the ones the text can fix (a line break, a cue that should split) by editing words.json punctuation and re-running step 5, never by hand-editing times in the SRT.
  7. Read it as a viewer. Read the SRT top to bottom. Fix punctuation the transcriber got wrong in words.json (a line said as a question ends in "?", a run-on gets its full stop). Each subtitle is a whole phrase, lines do not end on "the", "of", "to", "and" or a first name, and nothing is missing. Fix and repeat steps 5-6.
  8. Burn in if asked (scripts/subtitles.py burn VIDEO subs.ass OUT.mp4, or the Zylcut component). Check: the font line in the log names the font you chose, not a fallback. If make printed "the subtitle band is bright", remake with --plate before burning.
  9. Look at frames (see QA). Then deliver.

Final values

Rule Value
Lines per subtitle 2 at most (1 when it fits)
Characters per line 42 landscape; vertical: what fits the safe width at the chosen size (about 32)
Reading speed at most 20 characters per second (spaces and punctuation count); aim for 17. Up to 22 on at most 1 subtitle in 10, only to keep a clause whole (7.7% of the measured professional subtitles go over 20)
Duration at least 5/6 s (20 frames at 24 fps), at most 7 s
Gap between subtitles 2 frames, or 12 frames and more; gaps of 3-11 frames are closed to 2
Lead-out up to 0.5 s after the last word, if nothing follows sooner
Shot change, in-time moved back onto a shot change up to 12 frames before the first word (forward at most 4 frames)
Shot change, out-time within 12 frames of a shot change after speech ends: 2 frames before the change. Never 1-11 frames over a new shot: when speech runs up to 6 frames past a cut the subtitle ends 2 frames before it (the next one comes in on the cut), otherwise it stays 12 frames or more into the new shot
Line breaks after punctuation; never after an article, preposition, conjunction or first name; balanced, bottom-heavy when equal
Speakers at most one change of speaker per subtitle, at its line break; each line starts with "-" and no space (Netflix English); each speaker's line is a whole sentence; the two lines start at one x so the dashes align
Text sentence case as spoken, with punctuation; numbers as the transcript has them
Look off-white #F2F2F2, semibold sans (Arial class), dark outline about 12% of the capital height plus a soft shadow; or a 75% black plate
Size BBC line height 7% of frame height on landscape, 4% on vertical: capitals 4.3% (46 px at 1080) and 2.5% (48 px on 1920)
Position bottom centre; landscape 7.5% of height above the bottom edge, inside 90% title safe; vertical above the bottom 420 px of 1920 and inside x 60-900

Measured on 17 professionally subtitled talks (3,820 subtitles): longest line 42 characters, 0% three-line subtitles, 46% two-line, durations 1.17-5.38 s (2nd-98th percentile), never under 5/6 s or over 7 s, reading speed median 14.4 and 98th percentile 20.8 characters per second.

QA before delivery

  • check shows 0 errors on the final SRT.
  • Light walls, skies or tables behind the text: make says "the subtitle band is bright" (more than 10% near-white pixels) and the plate is then the default look; remake with --plate.
  • Frames: grab the first subtitle, the longest two-line subtitle, and one over the busiest background (ffmpeg -ss T -i OUT.mp4 -frames:v 1 f.jpg, or capture in Zylcut). Text is whole, inside the safe area, readable at phone size, and never sits on burned-in text or a lower third (move it to the top for that stretch if it does: add {\an8} to those cues in the ASS).
  • Duration: the burned-in file's duration equals the source's, and the audio is untouched.
  • Deliver the SRT (and VTT) even when the user only asked for burned-in video, unless they said not to: platforms use it for accessibility and search.

Gotchas

  • Transcribers drop punctuation on slow or unscripted speech. Segmentation leans on full stops and commas. If words.py show prints one huge sentence, add the missing full stops and commas to the word text in words.json (where the speaker clearly ends a thought), then remake.
  • Wrong language gives fluent nonsense. An English-only model on a Welsh or Spanish passage writes confident English garbage. Read the transcript before anything else; use a multilingual model or the Zylcut language option for other languages.
  • Frame rate. Gaps and shot snapping are counted in frames of the video's real rate. Pass --fps 29.97, not 30, to check for NTSC footage.
  • ffmpeg sizes SRT styles on a 288-line grid. Burn the ASS file the script writes (its PlayResX/PlayResY equal the video, so sizes are pixels), not the SRT with force_style.
  • Fonts fail silently. libass picks a fallback without an error; the burn step prints the font it used. Fonts also differ in how big a "size" looks, so the script sizes by capital height, measured from a rendered test of the chosen font.
  • A plate with inline colour. Do not add colour tags to plate cues; the plate is its own layer for that reason (see references/ffmpeg.md).
  • Fast speech forces a few mid-clause splits. Above about 180 words a minute, some phrases cannot fit one subtitle even at the 22 cps tolerance, so the script ends a subtitle at the least bad word (often at a short pause). Accept it, name it in the report, and offer condensed subtitles; do not raise --max-cps, and do not drop or reword words unless the user asks for condensed subtitles.
  • Do not patch the scripts. If a rule seems wrong for this video, say so in the report; the scripts are shared by every run of this skill.
  • Shot-change snapping cuts at most 6 frames of a word's tail. A subtitle over a cut in mid-sentence stays, as broadcast practice allows; one that would hang 1-11 frames over a new shot is trimmed to the cut or held 12 frames past it. A remaining linter warning means neither fit (the subtitle would go under 5/6 s); leave it and mention it.

Limits

Tested cold on a fast two-person interview (about 185 words a minute, 230 at its fastest). A separate judge scored the last run 7-9 out of 10 per area, not 8 everywhere:

  • Very fast speech, verbatim. Some subtitles still split mid-clause or start a new sentence partway through a line, and about 3 in 4 subtitles use two lines (professional talks: under half). Condensed subtitles fix this, but only when the user asks for them.
  • Who speaks comes from reading the transcript and frames. On a wide shot with both people in view, a short reply can go to the wrong person. Ask the user to check dialogue subtitles.
  • Words the transcriber mishears (names, places) stay as heard unless the user gives the spelling. The report lists the ones to check.

Credit

Adapted from the caption-styling skill in the vidmoat/skills repository by Vidmoat Skills contributors (text CC-BY-4.0, scripts Apache-2.0); see NOTICE. Changed by Zylcut: broadcast values (20 cps, 42 characters, 5/6-7 s, frame gaps, shot changes), automatic segmentation and timing, a Zylcut path, and measured references.

Files

9 files, 101 KB. Nothing in a skill runs until your agent runs it.

SKILL.md12 KB
1---
2name: broadcast-subtitles
3description: Make broadcast-standard sentence subtitles for a video from its speech - at most 2 lines of 42 characters, at most 20 characters per second, 5/6 s to 7 s per subtitle, 2-frame gaps, in and out times snapped to shot changes, balanced line breaks - delivered as SRT, VTT and a burned-in copy, and checked by a linter. Use when the user wants subtitles or closed captions that read like TV or streaming subtitles, accessibility-grade captions, an SRT for YouTube or a client, captions that pass a reading-speed or line-length review, or says "subtitle this", "add subtitles", "make an SRT", "proper subtitles, not TikTok captions", or "my captions flash by too fast". Works on landscape and vertical video. Not for word-by-word pop captions on shorts.
4license: Apache-2.0
5compatibility: Generic path needs Python 3.8+, ffmpeg and ffprobe (with libass for burn-in) and a word-timed transcriber (whisper.cpp whisper-cli, or any that writes word times). Zylcut path uses the Zylcut MCP tools. Scripts are standard library only.
6metadata:
7  version: "1.0.0"
8  author: Zylcut
9  outcome: captions
10  adapted-from: caption-styling by Vidmoat Skills contributors (vidmoat/skills, CC-BY-4.0 text, Apache-2.0 scripts)
11---
12
13# Broadcast subtitles
14
15Sentence subtitles that a viewer reads without effort: the rules streaming services and
16broadcasters give their subtitlers, applied by a script and then checked by a linter, so the
17result passes a timed-text review. The numbers are in "Final values" and the reasons and sources
18in [references/standard.md](references/standard.md).
19
20**Which backend.** If Zylcut MCP tools are available (for example `context`,
21`media_transcribe`, `capture`, `check`), follow [references/zylcut.md](references/zylcut.md);
22otherwise follow [references/ffmpeg.md](references/ffmpeg.md). Both use the same scripts and the
23same rules; only transcription, preview and burn-in differ.
24
25## When to use
26
27- Long-form, interviews, talks, tutorials, documentaries, client deliveries, accessibility.
28- Any request for an SRT or VTT file, or for subtitles that look like TV or streaming.
29- Not for 1-3 word "pop" captions on a fast short: that is a different style with different
30  numbers (a word-pop caption skill).
31
32## Inputs
33
34- A video (landscape or vertical). Its speech should be in one language the transcriber reads.
35- Optional: a transcript or script (spellings of names), the speakers' names, the target
36  (YouTube upload only, burned-in, or both), a font or a plate preference.
37
38## Approval gate
39
40Before writing files, tell the user in five lines or fewer: the video and its size and frame
41rate, the language, what you will deliver (SRT, VTT, burned-in MP4), the style (white text with a
42thin outline, or a dark plate), the position, and any names you will spell a special way. Wait for
43a yes. Skip the wait only when the user said "just do it" or equivalent.
44
45## Pipeline
46
47Every step ends with its check. Do not go on with a failed check.
48
491. **Probe.** Size, frame rate and duration (`ffprobe` or `media_probe`). Check: the frame rate
50   is the file's real rate (29.97 is not 30); every frame-based rule uses it.
512. **Transcribe with word times** (`scripts/words.py transcribe`, or `media_transcribe` then
52   `scripts/words.py import`). Check: read the transcript (`words.py show`). Fix misheard names
53   and terms in `words.json` by editing the word text only, never the times. Never invent words:
54   subtitles say what was said, minus fillers (um, uh) which the script drops if you remove them
55   from `words.json`.
563. **Label speakers** when two or more people talk (an interview, a podcast). Read `words.py
57   show`: a question and its answer, "yeah", "no, no" and a change of topic mark the turns. For
58   each turn you are unsure of, grab a frame a moment after it (`ffmpeg -ss T -i VIDEO -frames:v 1
59   t.jpg`) and see whose mouth moves. Then `scripts/words.py label words.json 0=A 21=B 57=A`
60   (word numbers from `show`). Check: `show` prints `<B w21>` at each turn, and no turn sits
61   inside a sentence unless someone really interrupts. A single speaker needs no labels.
624. **Find shot changes** (`scripts/subtitles.py shots VIDEO -o shots.json`). Check: the count is
63   plausible for the footage (a single-camera talk can have 0).
645. **Make the subtitles** (`scripts/subtitles.py make words.json --video VIDEO --shots
65   shots.json -o subs`). It segments at sentence and clause ends, balances the lines, times every
66   subtitle by the rules and writes `subs.srt`, `subs.vtt`, `subs.ass` and `subs.tsx`.
67   For vertical video it sets the line length from the safe width (about 32 characters).
686. **Lint** (`scripts/subtitles.py check subs.srt --fps FPS --shots shots.json --max-chars N`).
69   Check: 0 errors. Read every warning; fix the ones the text can fix (a line break, a cue that
70   should split) by editing `words.json` punctuation and re-running step 5, never by hand-editing
71   times in the SRT.
727. **Read it as a viewer.** Read the SRT top to bottom. Fix punctuation the transcriber got
73   wrong in `words.json` (a line said as a question ends in "?", a run-on gets its full stop). Each subtitle is a whole phrase, lines
74   do not end on "the", "of", "to", "and" or a first name, and nothing is missing. Fix and repeat
75   steps 5-6.
768. **Burn in** if asked (`scripts/subtitles.py burn VIDEO subs.ass OUT.mp4`, or the Zylcut
77   component). Check: the font line in the log names the font you chose, not a fallback.
78   If `make` printed "the subtitle band is bright", remake with `--plate` before burning.
799. **Look at frames** (see QA). Then deliver.
80
81## Final values
82
83| Rule | Value |
84|---|---|
85| Lines per subtitle | 2 at most (1 when it fits) |
86| Characters per line | 42 landscape; vertical: what fits the safe width at the chosen size (about 32) |
87| Reading speed | at most 20 characters per second (spaces and punctuation count); aim for 17. Up to 22 on at most 1 subtitle in 10, only to keep a clause whole (7.7% of the measured professional subtitles go over 20) |
88| Duration | at least 5/6 s (20 frames at 24 fps), at most 7 s |
89| Gap between subtitles | 2 frames, or 12 frames and more; gaps of 3-11 frames are closed to 2 |
90| Lead-out | up to 0.5 s after the last word, if nothing follows sooner |
91| Shot change, in-time | moved back onto a shot change up to 12 frames before the first word (forward at most 4 frames) |
92| Shot change, out-time | within 12 frames of a shot change after speech ends: 2 frames before the change. Never 1-11 frames over a new shot: when speech runs up to 6 frames past a cut the subtitle ends 2 frames before it (the next one comes in on the cut), otherwise it stays 12 frames or more into the new shot |
93| Line breaks | after punctuation; never after an article, preposition, conjunction or first name; balanced, bottom-heavy when equal |
94| Speakers | at most one change of speaker per subtitle, at its line break; each line starts with "-" and no space (Netflix English); each speaker's line is a whole sentence; the two lines start at one x so the dashes align |
95| Text | sentence case as spoken, with punctuation; numbers as the transcript has them |
96| Look | off-white #F2F2F2, semibold sans (Arial class), dark outline about 12% of the capital height plus a soft shadow; or a 75% black plate |
97| Size | BBC line height 7% of frame height on landscape, 4% on vertical: capitals 4.3% (46 px at 1080) and 2.5% (48 px on 1920) |
98| Position | bottom centre; landscape 7.5% of height above the bottom edge, inside 90% title safe; vertical above the bottom 420 px of 1920 and inside x 60-900 |
99
100Measured on 17 professionally subtitled talks (3,820 subtitles): longest line 42 characters,
1010% three-line subtitles, 46% two-line, durations 1.17-5.38 s (2nd-98th percentile), never under
1025/6 s or over 7 s, reading speed median 14.4 and 98th percentile 20.8 characters per second.
103
104## QA before delivery
105
106- `check` shows 0 errors on the final SRT.
107- Light walls, skies or tables behind the text: `make` says "the subtitle band is bright" (more
108  than 10% near-white pixels) and the plate is then the default look; remake with `--plate`.
109- Frames: grab the first subtitle, the longest two-line subtitle, and one over the busiest
110  background (`ffmpeg -ss T -i OUT.mp4 -frames:v 1 f.jpg`, or `capture` in Zylcut). Text is whole,
111  inside the safe area, readable at phone size, and never sits on burned-in text or a lower third
112  (move it to the top for that stretch if it does: add `{\an8}` to those cues in the ASS).
113- Duration: the burned-in file's duration equals the source's, and the audio is untouched.
114- Deliver the SRT (and VTT) even when the user only asked for burned-in video, unless they said
115  not to: platforms use it for accessibility and search.
116
117## Gotchas
118
119- **Transcribers drop punctuation on slow or unscripted speech.** Segmentation leans on full
120  stops and commas. If `words.py show` prints one huge sentence, add the missing full stops and
121  commas to the word text in `words.json` (where the speaker clearly ends a thought), then remake.
122- **Wrong language gives fluent nonsense.** An English-only model on a Welsh or Spanish passage
123  writes confident English garbage. Read the transcript before anything else; use a multilingual
124  model or the Zylcut `language` option for other languages.
125- **Frame rate.** Gaps and shot snapping are counted in frames of the video's real rate. Pass
126  `--fps 29.97`, not 30, to `check` for NTSC footage.
127- **ffmpeg sizes SRT styles on a 288-line grid.** Burn the ASS file the script writes (its
128  PlayResX/PlayResY equal the video, so sizes are pixels), not the SRT with `force_style`.
129- **Fonts fail silently.** libass picks a fallback without an error; the burn step prints the
130  font it used. Fonts also differ in how big a "size" looks, so the script sizes by capital
131  height, measured from a rendered test of the chosen font.
132- **A plate with inline colour.** Do not add colour tags to plate cues; the plate is its own
133  layer for that reason (see references/ffmpeg.md).
134- **Fast speech forces a few mid-clause splits.** Above about 180 words a minute, some phrases
135  cannot fit one subtitle even at the 22 cps tolerance, so the script ends a subtitle at the
136  least bad word (often at a short pause). Accept it, name it in the report, and offer condensed
137  subtitles; do not raise `--max-cps`, and do not drop or reword words unless the user asks for
138  condensed subtitles.
139- **Do not patch the scripts.** If a rule seems wrong for this video, say so in the report;
140  the scripts are shared by every run of this skill.
141- **Shot-change snapping cuts at most 6 frames of a word's tail.** A subtitle over a cut in
142  mid-sentence stays, as broadcast practice allows; one that would hang 1-11 frames over a new
143  shot is trimmed to the cut or held 12 frames past it. A remaining linter warning means
144  neither fit (the subtitle would go under 5/6 s); leave it and mention it.
145
146## Limits
147
148Tested cold on a fast two-person interview (about 185 words a minute, 230 at its fastest). A
149separate judge scored the last run 7-9 out of 10 per area, not 8 everywhere:
150- **Very fast speech, verbatim.** Some subtitles still split mid-clause or start a new sentence
151  partway through a line, and about 3 in 4 subtitles use two lines (professional talks: under
152  half). Condensed subtitles fix this, but only when the user asks for them.
153- **Who speaks** comes from reading the transcript and frames. On a wide shot with both people
154  in view, a short reply can go to the wrong person. Ask the user to check dialogue subtitles.
155- **Words the transcriber mishears** (names, places) stay as heard unless the user gives the
156  spelling. The report lists the ones to check.
157
158## Credit
159
160Adapted from the caption-styling skill in the vidmoat/skills repository by Vidmoat Skills
161contributors (text CC-BY-4.0, scripts Apache-2.0); see NOTICE. Changed by Zylcut: broadcast
162values (20 cps, 42 characters, 5/6-7 s, frame gaps, shot changes), automatic segmentation and
163timing, a Zylcut path, and measured references.
164

Reviews

No reviews yet. Installed it? Tell others how it went.

Report

Zylcut reads every report. Reports are private: the person you report is not told who sent it.

What is wrong?

Versions

  1. v1.0.0First version25 Nov 2026
All versions and digests

More for captions