Captions and export guide
Words on screen and the file you upload are the last two steps, and both are easy to get wrong in a way that costs views: captions under the app's buttons, subtitles too fast to read, a file that plays dark, soft or cropped. This guide covers on-screen captions, subtitle files, titles and labels, and export settings for every platform, at three levels.
node scripts/captions.mjs --styles # the caption styles and what each is for node scripts/captions.mjs --demo demo.jpg --pic frame.jpg --shape 9:16 # all of them on your own frame node scripts/captions.mjs words.srt caps --style bold --shape 9:16 --video film.mp4 # styled, burned in, plus an SRT to upload node scripts/captions.mjs --check caps.srt # reading speed, line length, timing, line breaks node scripts/export.mjs film.mp4 out --for youtube,shorts,reels,tiktok,facebook --subs words.srt --style bold node scripts/export.mjs --check out/reels.mp4 --for reels node scripts/export.mjs --specs # sizes, lengths and bitrates per platform
Captions, subtitles and titles
| Kind | What it is | Where it belongs |
|---|---|---|
| Subtitles (a file) | The words spoken, in an SRT or VTT file, turned on by the viewer | Every long video: search reads them, deaf viewers need them, other languages start from them |
| Burned-in captions | The words drawn into the picture | Vertical video, where most people watch muted and autoplay starts silent |
| Titles and labels | Names, places, dates, numbers, chapter cards | Any video; they carry facts, not speech |
| Callouts | An arrow, a circle or a word pointing at one thing | Explainers, tutorials, reviews |
Make the subtitle file for every video, even when you burn captions in. captions.mjs always writes a clean .srt beside the styled .ass.
Getting the words
- Transcribe with whisper (free, on your machine):
whisper-cli -m ggml-small.en.bin -f voice.wav -osrtfor subtitles, or add-ml 1for one word per line, which gives exact word timings for short-form and karaoke captions. - Correct every name, number and technical word against the script. Automatic captions get them wrong, and a wrong name in big letters is the first thing commenters point out.
- Keep the speaker's words, but cut "um" and false starts. Never change the meaning.
Choosing a caption style
| Style | Use it for | Never for |
|---|---|---|
film | Films, stories, interviews, long videos: classic subtitles | A loud Short that must grab in a second |
doc | Documentaries, news, explainers: white on a soft box, readable over anything | Clean minimal brand films |
bold | Shorts, Reels, TikTok talking heads: two or three words, heavy, high in the safe area | Films and long videos |
karaoke | Podcast clips and fast talk: the word being said lights up | Calm stories; anything without exact word timings |
boxed | Hooks and key lines: dark words on an accent bar | Every line of a video |
quiet | Calm vlogs, personal and aesthetic films: small, lowercase, low | Anything watched on a busy feed |
Each style is also in the library with a picture, so it can be found and ranked like any other look: Subtitles (film), Documentary box captions (doc), Bold short-form captions (bold), Kinetic caption / karaoke (karaoke), Label bar captions (boxed) and Quiet lowercase captions (quiet). Try node scripts/find.mjs captions.
Pick by the kind of video (see guides/editing.md) and the style of the film, not by what is trending. A cartoon story with karaoke captions, or a podcast clip with film subtitles, both look wrong. Use the brand's font and colour with --font and --accent. --demo shows every style on a real frame of your video before you choose:


Styles that come from the film
The best captions look like they belong to the film's world: chalk words in a chalkboard film, stamped letters in a risograph, handwritten notes in a sketchbook, a typewriter in a noir. In code films draw them with the kit's text, in the style's own marks. Use captions.mjs for speech; draw titles and labels in the style.
Reading rules
| Rule | Subtitles | Short-form captions |
|---|---|---|
| Lines | Two at most; one when it fits | One or two short lines |
| Line length | 42 characters at most (about 22 on a vertical video) | Two to four words |
| On screen | At least 0.83 s, at most 7 s | With the words as they are said |
| Reading speed | Under 17 characters a second, never over 20 | Follows the voice |
| Line break | After punctuation, never after "the", "a", "to", "of", "and" | Never split a name or a number |
| Gaps | Join captions less than 2 frames apart, or the text flickers | Same |
| Case | Normal sentence case | Capitals are fine when short |
captions.mjs --check tests all of these, and --for shorts uses the vertical line length.
Where captions go
Vertical video (Shorts, Reels, TikTok, Facebook): the app puts buttons down the right side and the caption, name and music across the bottom. Keep words out of:
- the bottom third (about 35%),
- the right edge (about 14%),
- the top 12% (the app's header and search).
The safe place is the middle band, a little above centre or a little below the subject's chin. captions.mjs puts them there. Never put them in the dead centre over the face, and never in the bottom where the app covers them.
Horizontal video (YouTube): captions sit low, about a tenth of the height from the bottom; the subtitle file is drawn by the player and moves up when the controls show.
Every format: never cover the subject's mouth or the thing being explained. Move a caption up for one shot rather than hide what matters.
Titles, labels and callouts
- One idea per title, on screen long enough to read twice.
- Lower thirds (name and role): left side, the lower third of the frame, inside the safe area on vertical video.
- Numbers and facts big and simple; say the source on screen when it matters ("Source: WHO, 2024").
- Callouts point at one thing at a time and leave when the voice moves on.
- Animate on purpose: the text arrives when the voice says it, in the film's own motion (see
guides/no-slop.md), and leaves cleanly.
Export
The finished film needs one file for each platform: its own shape, length, frame rate and loudness. export.mjs makes them all from one master:
| Platform | Size | Longest | Notes |
|---|---|---|---|
| YouTube | 1920x1080 (4K from a 4K master is sharper) | none worth worrying about | SRT, chapters, end screen |
| Shorts | 1080x1920 | 3 minutes | Words out of the bottom third and the right edge |
| Reels | 1080x1920 | 3 minutes | The feed crops to 4:5 and the grid to 3:4: keep the subject in the middle |
| TikTok | 1080x1920 | 10 minutes in the app | Words out of the right-hand buttons and the bottom caption area |
| 1080x1920 (or 4:5, 1:1) | none worth worrying about | Most people watch muted: captions burned in or an SRT |
Platform limits change: check the platform's own help page before a big launch.
What every export gets, and why:
- H.264, high profile, yuv420p: plays everywhere. Other pixel formats can play wrong or be refused.
- Rec. 709 colour tags, TV range: without tags, players guess, and the video looks darker or washed out than it did in the editor.
- The frame rate you made it at, up to 60. Never convert 24 to 30 or the motion stutters.
- A high bitrate (8 to 12 Mbps at 1080p): the platform compresses again, and a better source survives it.
- AAC, 48 kHz, -14 LUFS: the platforms' loudness. For the best result, mix and set loudness with
mix.mjsfirst. - Fast start: the video plays before the whole file has downloaded.
Changing the shape
A 16:9 film made into 9:16 loses two thirds of the picture. export.mjs crops around --focus (0 is the left edge, 1 the right), or with --fit pad puts the whole frame on a blurred copy of itself. Both are second best: a real vertical edit (reframed shot by shot, words placed for the vertical safe area) always wins. Watch every cropped export from start to end.
Captions per shape
Give export.mjs the .srt (or whisper JSON) with --subs, and it makes captions for each shape: bold on vertical, film on horizontal, or the --style you choose. A ready .ass file is burned as it is, so make one for each shape.
No slop in captions and titles
- No word-by-word pop captions in the middle of the frame on every video. That is the default AI-video look.
- No captions under the app's buttons, or over the speaker's mouth.
- No highlighter box swiping behind a keyword on every line, no word in a red pill, no emoji in captions.
- No captions that do not match the words said, and no wrong names.
- No subtitles faster than people can read.
- No title that fades in, scales up and glows: the stock template move.
- No export with the wrong shape, a black border, a stretched picture or another app's watermark.
Check before upload
node scripts/captions.mjs --check caps.srtshows no problems, and every name and number is right.- Watch the vertical version on a phone, in the app's preview: nothing important is under the buttons.
- Watch once with the sound off: the story still makes sense.
node scripts/export.mjs --check file.mp4 --for <platform>says ready.- The subtitle file is uploaded with the video (YouTube, Facebook).
Levels
First video. Transcribe with whisper, fix the names, then run captions.mjs with the style that fits your kind of video. Then export.mjs for each platform you post on, and watch each export on a phone.
Getting good. Word timings (-ml 1) for short-form, your brand font and colour, titles and labels drawn in the film's style, a real vertical edit instead of a crop, and a check of every export. Upload SRTs everywhere they are accepted, and translate them for your biggest other-language audiences.
Pro. Caption design as part of the film's look, from the storyboard on. Subtitles made to broadcast rules (timing to shot changes, speaker labels, sound descriptions for the deaf and hard of hearing), versions per language and platform from one master and stems, and every export checked before it goes out.