
421677 B with -c:a copy. Step 5: subtitle_streams=0 and BURN_SUB_STREAMS EMPTY. Step 7: colon path failed with colon_naive_exit=234 and a parse error on captions.srt. Step 9: soft mux left pixels unchanged (src_t6s IDENTICAL soft_t6s). Monospace lines are copied from our lab log. Not a GUI.We have a corrected English SRT and a finished MP4. The client or the social destination wants the words in the picture (hardsub), not a soft track a player can ignore. This Guide is the FFmpeg CLI pass we now run: confirm libass, probe the source, copy the SRT off colon/comma paths, burn with subtitles= + libx264 + -c:a copy, prove with empty -select_streams s and a cue frame, then deliberately FAIL the path traps. About nine steps. Each one has a command and a PASS, FAIL, or HOLD call.
Full soft-vs-burn scoreboard and the longer write-up live in the companion review: FFmpeg review: burn a corrected SRT into the picture (hardsub). We do not repeat that narrative here.
Test note: October 31, 2026, Asia/Shanghai, Debian GNU/Linux 13 (trixie). FFmpeg/ffprobe 7.1.5-0+deb13u1 built with --enable-libass; lab log showed libass 0.17.3. Fixture: our own synthetic 18.021 s, 1280×720@30 title-card MP4 (KEEP HOST / KEEP GUEST / WRAP) at 342,411 B, plus a corrected English SRT. Not a client recording. We did not upload to TikTok, YouTube, or Instagram.
The checklist
Persona: a creator who already fixed names and timing, and who needs open captions baked into the pixels. Run the steps in order. Steps 7 and 8 are deliberate FAIL patterns. Step 9 is the soft-mux control that looks successful until you grab a frame.
| Step | PASS | FAIL | HOLD |
|---|---|---|---|
| 1. FFmpeg + libass | ffmpeg -version cites 7.x; build shows --enable-libass; ffmpeg -filters lists subtitles | Missing binary; no libass / no subtitles filter | Windows / macOS builds (not tested) |
| 2. Probe source | Duration, size, WxH recorded (ours: 18.021 s, 342,411 B, 1280×720) | Guessing length or resolution | |
| 3. Simple SRT path | Working copy has no colon, comma, or awkward spaces (ours: corrected_en.srt / simple_en.srt) | Burning from a path that still contains : or , | |
| 4. Burn-in encode | Exit 0; video re-encoded; audio copied (ours: 421,677 B; CRF 23 / veryfast / FontSize 22 are ours) | Non-zero exit; no output file | GPU / NVENC burn-in (not tested) |
| 5. Empty subtitle streams | ffprobe -select_streams s empty / subtitle_streams=0 | A mov_text (or other) soft stream remains | |
| 6. Cue frame proof | Frame on a cue differs from source (ours: t=6.0 s JPG 46,002 B; bottom-band mean_abs_rgb Δ 15.078; changed 45,163/258,560) | JPG MD5 matches source (pixels unchanged) | Platform upload players (not tested) |
| 7. Pitfall colon path | You recognize FAIL: exit 234; Unable to parse option value "captions.srt" as image size; no output | Shipping a path that still contains : | |
| 8. Pitfall comma name | You recognize FAIL: exit 8; No such filter: 'en.srt' | Shipping a filename that still contains , | |
| 9. Soft mux control | You note soft mux can exit 0 with mov_text while t=6 s JPG MD5 equals source | Treating soft mux as hardsub | Empty fontsdir tofu (Not reproduced here; fontconfig fell back to Noto Sans) |
1. Confirm FFmpeg and libass
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'
PASS when the version line is citeable and --enable-libass is present. Our lab: FFmpeg 7.1.5-0+deb13u1; filters subtitles and ass both listed; burn log later printed libass 0.17.3. HOLD on Windows / macOS builds (not tested).
- [ ] Version and
--enable-libasswritten down - [ ]
subtitlesfilter present
2. Probe the source MP4
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
Our fixture: Duration 18.021 s (ffprobe 18.021333), size 342,411 B, video 1280×720, H.264 + AAC. PASS when those facts are on the page before you re-encode.
- [ ] Duration, bytes, WxH recorded
- [ ] Working on a copy, not the camera card dump
3. Copy the SRT to a simple path
cp -f corrected_en.srt ./corrected_en.srt
# or: cp -f "messy:name,en.srt" ./simple_en.srt
ls -l corrected_en.srt
Filtergraph rules treat : and , as separators inside subtitles= (see FFmpeg filtergraph escaping notes and the Stack Overflow path threads archived in the burn-in review). PASS when the file you will pass to subtitles= has a boring relative name. Spaces alone completed on this Linux box when quoted; we still prefer a simple name.
- [ ] No colon or comma in the burn path
- [ ] Relative name next to the working directory when practical
4. Burn-in: subtitles filter, libx264, copy audio
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
Command order we follow: simple SRT path → -vf subtitles=...:force_style=... → libx264 re-encode → -c:a copy. FontSize=22, MarginV=28, CRF 23, and veryfast are our lab values, not a delivery ladder. Ours wrote 421,677 B. HOLD: GPU / NVENC burn-in (not tested).
- [ ] Exit 0 and a non-empty output file
- [ ] Lab thresholds labeled as ours
5. Prove no soft subtitle stream
ffprobe -v error -select_streams s \
-show_entries stream=index,codec_name -of csv=p=0 burn_corrected.mp4
# empty output → subtitle_streams=0
ffprobe -v error -show_entries stream=index,codec_type,codec_name \
-of csv=p=0 burn_corrected.mp4
# expect: 0,h264,video / 1,aac,audio
PASS when -select_streams s prints nothing. Our burn probe recorded subtitle_streams=0 and streams 0,h264,video / 1,aac,audio. Pattern from the archived Stack Overflow ffprobe note in the review sources.
- [ ] Subtitle stream list empty
- [ ] Video + audio only on the burn file
6. Grab a cue frame and compare to source
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
Pick -ss on a cue that is actually on screen. Ours: t=6.0 s burn JPG 46,002 B vs source 16,790 B; bottom band (y≥518) mean_abs_rgb 15.078, changed pixels 45,163 / 258,560; t=14.5 s burn JPG 39,874 B. PASS when the burn frame is visibly different (or your own band delta is clearly non-zero). HOLD: we did not test TikTok / YouTube / Instagram upload players.
- [ ] Cue timestamp written down
- [ ] Burn frame differs from source
7. Pitfall: colon in the SRT path
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
This is a FAIL pattern to recognize. Ours: exit 234; Unable to parse option value "captions.srt" as image size; no output file. Fix: step 3 (copy to a simple name), then burn again.
- [ ] Ran on a throwaway name; recognized exit 234
- [ ] Delivery path avoids
:insidesubtitles=
8. Pitfall: comma in the filename
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=$?
FAIL pattern. Ours: exit 8; No such filter: 'en.srt'. Rename before burn-in.
- [ ] Recognized on a copy
- [ ] Delivery filename has no comma
9. Soft mux control (pixels unchanged)
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
Soft mux is not burn-in. Ours: 343,287 B; streams h264 + aac + mov_text; t=6.0 s JPG MD5 d36d803b77ea362d7b80febe608d017b matched the source frame. PASS for this step means you caught the trap. Empty-fontsdir tofu was Not reproduced on this box (nonsense FontName fell back via fontconfig to Noto Sans).
- [ ] Soft stream present; pixels unchanged vs source
- [ ] Delivery path still uses step 4 hardsub when open captions are required
What we saw
All from our October 31, 2026 lab log (evidence/ffmpeg-burn-in-subtitles/). Same 18.021 s / 342,411 B fixture unless noted.
| Step | What we saw | Call | Where in the evidence |
|---|---|---|---|
| 1 | FFmpeg 7.1.5-0+deb13u1; --enable-libass; libass 0.17.3 in burn log; subtitles + ass filters | PASS | commands.log version / buildconf / filters; libass source line |
| 2 | duration=18.021333; size=342411; 1280x720 | PASS | commands.log ffprobe source; SRC_BYTES |
| 3 | Burn used relative corrected_en.srt / simple_en.srt after copy | PASS | lab.sh relative path note; outputs/*.srt |
| 4 | burn_corrected.mp4 421,677 B; exit 0; -c:a copy | PASS | commands.log burn line; BURN_BYTES |
| 5 | BURN_SUB_STREAMS EMPTY; streams 0,h264 / 1,aac | PASS | probes/burn_subs*; burn_streams.csv |
| 6 | burn_t6s.jpg 46,002 B; mean_abs_rgb 15.078; changed 45163/258560; burn_t14p5s.jpg 39,874 B | PASS | commands.log src_vs_burn_t6 / t14p5; frames/ |
| 7 | colon_naive_exit=234; Unable to parse ... "captions.srt" as image size; no output | FAIL pattern | pitfall_colon_naive_exit.txt; logs/pitfall_colon_naive.log |
| 8 | comma_naive_exit=8; No such filter: 'en.srt' | FAIL pattern | pitfall_comma_naive_exit.txt; logs/pitfall_comma_naive.log |
| 9 | soft_mux 343,287 B + mov_text; src/soft t6 MD5 d36d803b... | FAIL if treated as burn | SOFT_BYTES; md5sum lines; soft_streams.csv |
For the longer soft-vs-burn notes and the source pages we opened, read the full FFmpeg burn-in review.
Download the checklist
Download the FFmpeg burn-in SRT checklist (Markdown). Paste the commands, mark PASS / FAIL / HOLD, and keep the ffprobe / frame numbers next to each step before the MP4 leaves your machine.
FAQ
Why did subtitles= fail with Unable to parse option value as image size?
A colon in the SRT path split the filtergraph option. On our naive path with seattle:captions.srt, FFmpeg exited 234 with Unable to parse option value "captions.srt" as image size and wrote no output. Copy the SRT to a simple name first, then point subtitles= at that name.
Why did FFmpeg say No such filter: en.srt?
A comma in the filename is another filtergraph separator. Our seattle_captions_comma,en.srt run exited 8 with No such filter: 'en.srt'. Rename before burn-in.
ffprobe shows a subtitle stream. Did burn-in fail?
If -select_streams s is not empty, you likely soft-muxed (mov_text) instead of painting pixels. Our soft_mux.mp4 had h264+aac+mov_text at 343,287 B and a t=6.0 s JPG MD5 identical to the source frame. Our burn file had subtitle_streams=0.
Is CRF 23 / FontSize 22 a delivery standard?
No. veryfast, CRF 23, FontSize=22, Outline=2, and MarginV=28 are our lab force_style and encode choices on this fixture, not a platform rule. Lock your own values after a frame check.
Do I still need the whisper.cpp checklist?
Yes, if you do not yet have a corrected English SRT. This Guide starts after names and timing are fixed. First-draft gates live in the whisper.cpp first-draft SRT checklist; hardsub proof lives here.
Honest limits
- One synthetic 18.021 s title-card fixture. Not a real multi-cam interview.
- GPU / NVENC / Quick Sync burn-in: not tested.
- TikTok / YouTube / Instagram upload and in-player caption behavior: not tested.
- Windows / macOS font paths and DirectWrite vs fontconfig: not tested.
- Empty
fontsdirtofu: Not reproduced on this Debian box (fontconfig fell back to Noto Sans). - CRF 23 / veryfast / FontSize 22 / MarginV 28 are our working values, not platform rules.
- Whisper re-run and Subtitle Edit GUI polish: backlink only; not retested here.
Evidence: evidence/ffmpeg-burn-in-subtitles/ (NOTES, commands.log, outputs, frames, probes), October 31, 2026. Every number on this page appears there.
Sources we opened
- FFmpeg Filters - subtitles
- FFmpeg Filters - Notes on filtergraph escaping
- Stack Overflow: Escape special characters in FFmpeg subtitle filename
- Stack Overflow: Unable to parse option value as image size
- Stack Overflow: Check if a video file has subtitles
- FFmpeg burn-in subtitles review (companion)
- whisper.cpp first-draft SRT checklist
- whisper.cpp offline captions review
- Subtitle Edit review
Next: if the SRT is still a first draft, run the whisper.cpp first-draft SRT checklist (and the whisper.cpp offline captions review for the measured draft), then return here for hardsub. Timing polish in a GUI stays in the Subtitle Edit review; we do not expand those workflows on this page.