# whisper.cpp first-draft SRT checklist (ToolBrivio) Pasteable gate: convert to 16 kHz mono WAV, set `-t` to your cores, run with `--vad`, `--prompt` and `-ml 42 -sow`, then check every cue before handoff. Purpose: a local, offline first-draft SRT to correct in an editor. Not a finished caption file, not a model benchmark. Test basis: ToolBrivio Guide dated 2026-10-29 (Debian 13, KVM guest, 8 CPUs, CPU only; whisper.cpp commit 284029c, `whisper-cli --version` 1.9.5-dev; FFmpeg 7.1.5). One 91.41 s test file we made: 183-word script, text-to-speech voice, synthetic music bed, a 15 s bed-only gap and a 15 s digital-silence gap. **Not real interview audio.** Timings and error counts: `/articles/whispercpp-offline-captions-review.html`. Source file: Audio track used (-map): WAV duration (ffprobe, s): Model / -t: Prompt names: Check script hits (LONG / SHORT / OVER42 / BLANK / PAST_END): PASS / FAIL / HOLD: ## 1. Convert to 16 kHz mono WAV ```bash ffprobe -v error -show_entries stream=index,codec_type,channels -of compact interview.mp4 ffmpeg -i interview.mp4 -map 0:a:0 -vn -ar 16000 -ac 1 -c:a pcm_s16le interview_16k.wav ffprobe -v error -show_entries stream=codec_name,sample_rate,channels:format=duration -of compact interview_16k.wav ``` Lab: MP4 fed directly -> `failed to read audio data`, `error: 1 input file(s) failed`, exit=11, no SRT. Converted WAV: pcm_s16le, 16000 Hz, 1 channel, 91.413313 s, 2,925,304 B. A 48 kHz 24-bit stereo WAV was accepted; `diff -s` said its SRT was identical to the 16 kHz run. Convert anyway. HOLD: multi-track camera files. Our MP4 had one audio track, so `-map 0:a:0` was not really tested. - [ ] 16000 Hz, 1 channel, pcm_s16le - [ ] Duration close to the source audio - [ ] Dialogue track picked and heard ## 2. Model and threads ```bash nproc ./build/bin/whisper-cli -m models/ggml-small.en.bin -t 8 -f interview_16k.wav -osrt -of draft 2>&1 | grep system_info ``` PASS: `n_threads = N / N` with N = your cores. Lab: base.en at the default 4 threads 6.353 s; with `-t 8` 5.585 / 5.667 / 5.200 s. - [ ] `-t` = core count - [ ] `whisper-cli --version` noted ## 3. --vad and --prompt (4. -ml 42 -sow in the same run) ```bash ./build/bin/whisper-cli -m models/ggml-small.en.bin -t 8 -f interview_16k.wav \ --vad -vm models/ggml-silero-v6.2.0.bin \ --prompt "Maya Delgado, Jordan Whitaker, ToolBrivio, Subtitle Edit, SRT." \ -ml 42 -sow -osrt -of draft 2>&1 | grep -E 'Reduced audio|total time' ``` Lab: Silero model 885,098 B. Log: `Reduced audio from 1462613 to 907840 samples (37.9% reduction)`. small.en errors 5 -> 2 with the prompt, 9 of 9 name checks exact case. base.en 12 -> 5, still "Mia". `-ml 42 -sow`: small.en 17 -> 34 cues, longest line 91 -> 46. One line per cue; no two-line captions. HOLD: prompt on files longer than 91 s. - [ ] VAD line in the log - [ ] Listed names spelled right - [ ] Cue count went up after -ml 42 -sow ## 5-8. Check every cue Over-42 lines (whisper-cli writes a leading space on each text line; strip it): ```bash awk '{sub(/^ /,"")} /-->/{next} length($0)>42 {print length($0)": "$0}' draft.srt ``` `srtcheck.py` (pass SRT and WAV duration): ```python import sys dur = float(sys.argv[2]) if len(sys.argv) > 2 else 1e9 def t(s): h, m, x = s.strip().split(':') return int(h) * 3600 + int(m) * 60 + float(x.replace(',', '.')) for b in open(sys.argv[1], encoding='utf-8').read().strip().split('\n\n'): l = b.strip().split('\n') a, z = [t(x) for x in l[1].split('-->')] lines = [x.strip() for x in l[2:]] f = [] if z - a < 0.5: f.append('SHORT %.2fs' % (z - a)) if z - a > 7: f.append('LONG %.2fs' % (z - a)) if any(len(x) > 42 for x in lines): f.append('OVER42') if 'BLANK_AUDIO' in ' '.join(lines): f.append('BLANK') if z > dur: f.append('PAST_END') if f: print(l[0], '%.2f-%.2f' % (a, z), ' '.join(f), '|', ' '.join(lines)) ``` ```bash python3 srtcheck.py draft.srt 91.413 ffmpeg -i interview_16k.wav -af 'highpass=f=300,silencedetect=n=-45dB:d=5' -f null - 2>&1 | grep silence_ ``` LONG (7 s) and SHORT (0.5 s) are our working thresholds, not a standard. | Step | PASS | FAIL (our lab) | |------|------|----------------| | 5. Cue ends | No cue held through a pause | small.en + VAD: "Seattle." 20.36 to 36.13 s; speech resumed at 35.88 s. "it." 56.63 to 71.98 s | | 6. Cue starts | First cue after a pause starts at the speech | base.en + VAD: part 2 cue at 20.25 s (15.63 s early), part 3 at 56.28 s (15.55 s early) | | 7. Length, flashes | No OVER42, no SHORT | 46-char line; "before" 0.36 s, "should" 0.47 s. No zero-duration cue | | 8. Tags, end time | No tag-only cue, last cue before WAV end | small.en, no VAD: `[BLANK_AUDIO]` 90.0 to 98.5 s on a 91.413313 s WAV | silencedetect caveat: on our master it listed only the digital-silence gap (56.917 to 71.851 s), not the gap with music under it. Scrub LONG cues by ear. Use the WAV duration for PAST_END. Our MP4 container said 93.366667 s. - [ ] No LONG cue over a pause - [ ] Section starts line up with speech - [ ] No OVER42 / SHORT left (or accepted on purpose) - [ ] No BLANK / PAST_END ## 9. Names not in the prompt ```bash for n in "Maya Delgado" "Jordan Whitaker" "ToolBrivio" "Subtitle Edit" "DaVinci Resolve"; do printf '%s: %s\n' "$n" "$(grep -c "$n" draft.srt)"; done ``` Lab: "DaVinci Resolve" was not in our prompt. small.en got it; base.en wrote "Da Vinci". base.en also wrote "Mia" for the listed "Maya". A zero can be a name split across two cues: on our small.en prompt run the loop printed 0 for "DaVinci Resolve" because cue 3 ended on "DaVinci". Check zeros by eye. - [ ] Listed names found - [ ] Every other proper noun read and corrected Untested: real voices, accents, crosstalk, files longer than 91 s, GPU, laptops, Windows / macOS, medium / large / turbo / quantized / multilingual models, multi-track camera files. Sources: whisper.cpp GitHub repo and README; issues #909, #1967, #2140, #3744. Evidence: `evidence/whispercpp-offline-captions/` (commands.log, NOTES, outputs). Companion review: `/articles/whispercpp-offline-captions-review.html`. Next: `/articles/subtitle-edit-review.html` and `/articles/subtitle-handoff-checklist.html`.