Style BibleGitHub

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

KindWhat it isWhere it belongs
Subtitles (a file)The words spoken, in an SRT or VTT file, turned on by the viewerEvery long video: search reads them, deaf viewers need them, other languages start from them
Burned-in captionsThe words drawn into the pictureVertical video, where most people watch muted and autoplay starts silent
Titles and labelsNames, places, dates, numbers, chapter cardsAny video; they carry facts, not speech
CalloutsAn arrow, a circle or a word pointing at one thingExplainers, 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

  1. Transcribe with whisper (free, on your machine): whisper-cli -m ggml-small.en.bin -f voice.wav -osrt for subtitles, or add -ml 1 for one word per line, which gives exact word timings for short-form and karaoke captions.
  2. 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.
  3. Keep the speaker's words, but cut "um" and false starts. Never change the meaning.

Choosing a caption style

StyleUse it forNever for
filmFilms, stories, interviews, long videos: classic subtitlesA loud Short that must grab in a second
docDocumentaries, news, explainers: white on a soft box, readable over anythingClean minimal brand films
boldShorts, Reels, TikTok talking heads: two or three words, heavy, high in the safe areaFilms and long videos
karaokePodcast clips and fast talk: the word being said lights upCalm stories; anything without exact word timings
boxedHooks and key lines: dark words on an accent barEvery line of a video
quietCalm vlogs, personal and aesthetic films: small, lowercase, lowAnything 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:

The six caption styles on a vertical frame, in the safe band above the bottom third

The six caption styles on a wide frame

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

RuleSubtitlesShort-form captions
LinesTwo at most; one when it fitsOne or two short lines
Line length42 characters at most (about 22 on a vertical video)Two to four words
On screenAt least 0.83 s, at most 7 sWith the words as they are said
Reading speedUnder 17 characters a second, never over 20Follows the voice
Line breakAfter punctuation, never after "the", "a", "to", "of", "and"Never split a name or a number
GapsJoin captions less than 2 frames apart, or the text flickersSame
CaseNormal sentence caseCapitals 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 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

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:

PlatformSizeLongestNotes
YouTube1920x1080 (4K from a 4K master is sharper)none worth worrying aboutSRT, chapters, end screen
Shorts1080x19203 minutesWords out of the bottom third and the right edge
Reels1080x19203 minutesThe feed crops to 4:5 and the grid to 3:4: keep the subject in the middle
TikTok1080x192010 minutes in the appWords out of the right-hand buttons and the bottom caption area
Facebook1080x1920 (or 4:5, 1:1)none worth worrying aboutMost 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:

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

Check before upload

  1. node scripts/captions.mjs --check caps.srt shows no problems, and every name and number is right.
  2. Watch the vertical version on a phone, in the app's preview: nothing important is under the buttons.
  3. Watch once with the sound off: the story still makes sense.
  4. node scripts/export.mjs --check file.mp4 --for <platform> says ready.
  5. 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.

Browse the styles