# FFmpeg burn-in SRT checklist (ToolBrivio) Pasteable gate: copy the corrected English SRT to a simple path, burn with `-vf subtitles=...:force_style=...`, re-encode video with libx264, `-c:a copy`, prove with empty `ffprobe -select_streams s` and a cue frame, then FAIL the colon/comma path traps and the soft-mux lookalike once on a copy. Purpose: hardsub / open captions for social or client delivery. Not a soft track. Not a whisper first draft. Not loudnorm. Test basis: ToolBrivio Guide dated 2026-10-31 (Debian 13; FFmpeg/ffprobe 7.1.5-0+deb13u1 with `--enable-libass`; libass 0.17.3). One synthetic 18.021 s / 1280x720 / 342,411 B fixture plus corrected English SRT. **Not a client recording.** Numbers: `/articles/ffmpeg-burn-in-subtitles-review.html`. Source MP4 (duration / bytes / WxH): SRT simple path used: Burn output bytes: `ffprobe -select_streams s` empty (Y / N): Cue frame timestamp + burn JPG bytes: Colon/comma pitfalls checked (Y / N): Soft mux MD5 trap checked (Y / N): PASS / FAIL / HOLD: ## 1. Confirm FFmpeg and libass ```bash ffmpeg -version | head -n 5 ffmpeg -buildconf 2>&1 | tr ' ' '\n' | grep -E 'libass|libfreetype|fontconfig' ffmpeg -filters 2>/dev/null | grep -E 'subtitles|ass' ``` Lab: FFmpeg 7.1.5-0+deb13u1; `--enable-libass`; libass 0.17.3; `subtitles` + `ass` listed. HOLD: Windows / macOS builds. - [ ] Version and libass written down - [ ] `subtitles` filter present ## 2. Probe the source MP4 ```bash ffprobe -v error -show_entries format=duration,size \ -show_entries stream=codec_type,width,height -of default=nw=1 input.mp4 stat -c '%s bytes' input.mp4 ``` Lab: 18.021333 s, 342,411 B, 1280x720, H.264 + AAC. - [ ] Duration, bytes, WxH recorded - [ ] Working on a copy ## 3. Copy the SRT to a simple path ```bash cp -f corrected_en.srt ./corrected_en.srt # or: cp -f "messy:name,en.srt" ./simple_en.srt ls -l corrected_en.srt ``` Lab: burn used relative `corrected_en.srt` / `simple_en.srt`. Colon and comma break `subtitles=`. - [ ] No colon or comma in the burn path ## 4. Burn-in: subtitles filter, libx264, copy audio ```bash ffmpeg -y -i input.mp4 \ -vf "subtitles=corrected_en.srt:force_style='FontName=DejaVu Sans,FontSize=22,PrimaryColour=&H00FFFFFF&,OutlineColour=&H00000000&,BorderStyle=1,Outline=2,Shadow=0,MarginV=28'" \ -c:v libx264 -preset veryfast -crf 23 -pix_fmt yuv420p \ -c:a copy burn_corrected.mp4 stat -c '%s' burn_corrected.mp4 ``` Lab: 421,677 B. **FontSize=22, MarginV=28, CRF 23, veryfast are ours.** HOLD: GPU / NVENC. - [ ] Exit 0; non-empty output - [ ] Thresholds labeled as ours ## 5. Prove no soft subtitle stream ```bash ffprobe -v error -select_streams s \ -show_entries stream=index,codec_name -of csv=p=0 burn_corrected.mp4 # empty -> subtitle_streams=0 ffprobe -v error -show_entries stream=index,codec_type,codec_name \ -of csv=p=0 burn_corrected.mp4 ``` Lab: `BURN_SUB_STREAMS EMPTY`; `0,h264,video` / `1,aac,audio`. - [ ] Subtitle stream list empty ## 6. Grab a cue frame and compare to source ```bash ffmpeg -y -ss 6.0 -i input.mp4 -frames:v 1 -q:v 2 src_t6s.jpg ffmpeg -y -ss 6.0 -i burn_corrected.mp4 -frames:v 1 -q:v 2 burn_t6s.jpg ffmpeg -y -ss 14.5 -i burn_corrected.mp4 -frames:v 1 -q:v 2 burn_t14p5s.jpg md5sum src_t6s.jpg burn_t6s.jpg stat -c '%n %s' src_t6s.jpg burn_t6s.jpg burn_t14p5s.jpg ``` Lab: t=6.0 s burn JPG 46,002 B; bottom-band mean_abs_rgb 15.078; changed 45,163/258,560; t=14.5 s 39,874 B. HOLD: platform uploads. - [ ] Cue timestamp written down - [ ] Burn frame differs from source ## 7. Pitfall: colon in the SRT path ```bash ffmpeg -y -i input.mp4 \ -vf "subtitles=/path/to/seattle:captions.srt" \ -c:v libx264 -preset ultrafast -crf 28 -t 2 -c:a copy pitfall_colon.mp4 echo exit=$? ls pitfall_colon.mp4 ``` Lab FAIL: exit 234; Unable to parse option value "captions.srt" as image size; no output. - [ ] Recognized on a throwaway run ## 8. Pitfall: comma in the filename ```bash ffmpeg -y -i input.mp4 \ -vf "subtitles=seattle_captions_comma,en.srt" \ -c:v libx264 -preset ultrafast -crf 28 -t 2 -c:a copy pitfall_comma.mp4 echo exit=$? ``` Lab FAIL: exit 8; No such filter: 'en.srt'. - [ ] Recognized on a copy ## 9. Soft mux control (pixels unchanged) ```bash ffmpeg -y -i input.mp4 -i corrected_en.srt \ -map 0 -map 1 -c:v copy -c:a copy -c:s mov_text \ -metadata:s:s:0 language=eng soft_mux.mp4 ffprobe -v error -show_entries stream=index,codec_type,codec_name \ -of csv=p=0 soft_mux.mp4 ffmpeg -y -ss 6.0 -i soft_mux.mp4 -frames:v 1 -q:v 2 soft_t6s.jpg md5sum src_t6s.jpg soft_t6s.jpg ``` Lab: soft_mux 343,287 B + mov_text; t=6 s JPG MD5 d36d803b77ea362d7b80febe608d017b equals source. Empty fontsdir tofu Not reproduced (fontconfig -> Noto Sans). - [ ] Soft stream present; pixels unchanged - [ ] Delivery still uses step 4 hardsub when required | Step | PASS | FAIL (our lab) | |------|------|----------------| | 4. Burn-in | 421,677 B; exit 0 | Non-zero / no file | | 5. Empty s streams | subtitle_streams=0 | mov_text remains | | 6. Cue frame | mean_abs_rgb 15.078; 46,002 B | MD5 = source | | 7. Colon path | Recognized exit 234 | Shipping path with : | | 8. Comma name | Recognized exit 8 | Shipping name with , | | 9. Soft mux | Caught MD5 match | Treating soft as burn | Untested: GPU/NVENC burn-in; TikTok/YouTube/Instagram upload; Windows/macOS font paths. Empty fontsdir tofu Not reproduced on this box. Sources (same archive set as the review): FFmpeg Filters subtitles + filtergraph escaping; Stack Overflow 45916331, 71597897, 43005432. Evidence: `evidence/ffmpeg-burn-in-subtitles/` (commands.log, NOTES, outputs, frames, probes). Companion review: `/articles/ffmpeg-burn-in-subtitles-review.html`. Prior draft gates: `/articles/whispercpp-first-draft-srt-checklist.html` and `/articles/whispercpp-offline-captions-review.html`. Timing polish: `/articles/subtitle-edit-review.html`.