Test log, Koldflux, 2026-11-19. Files: gen.py makes test.srt (60 cues, seeded). tools.mts runs src/lib/subtitles.ts; control.py and vttcmp.py redo it independently; mut.py makes 10 hand-edited copies; mut.mts and ffmpeg read them; shot.cjs drives the live shifter. == control.py (independent Python vs tool output) == { "shift+2500 identical": true, "shift-3000 identical": true, "roundtrip identical": true, "roundtrip vs original bytes": true, "merge identical": true, "stats": { "chars": [ 2903, 2903 ], "avg_cps": [ 18.088, 18.088 ], "fast": [ 25, 25 ], "duration_ms": [ 183191, 183191 ] }, "ffmpeg reads tool vtt as srt: cues": [ 60, 60 ], "ffmpeg own srt->vtt cue times equal tool vtt": [ false ] } ffmpeg vs tool VTT cue times (ms) equal: True 60 60 == vttcmp.py (ffmpeg VTT vs tool VTT) == ffmpeg vs tool VTT cue times (ms) equal: True 60 60 == hand edits, Koldflux parser == {"f":"a-control.srt","toolCues":60,"warn":0,"firstWarn":"","problems":0} {"f":"b-word-edit.srt","toolCues":60,"warn":0,"firstWarn":"","problems":0} {"f":"c-blank-line-deleted.srt","toolCues":59,"warn":1,"firstWarn":"A cue block has unexpected lines or a missing blank separator. Check the original text.","problems":0} {"f":"d-dot-ms.srt","toolCues":60,"warn":0,"firstWarn":"","problems":1} {"f":"e-arrow-typo.srt","toolCues":59,"warn":1,"firstWarn":"Skipped a block without a timestamp: \"2\"","problems":0} {"f":"f-crlf.srt","toolCues":60,"warn":0,"firstWarn":"","problems":0} {"f":"g-bom.srt","toolCues":60,"warn":0,"firstWarn":"","problems":0} {"f":"h-cp1252.srt","toolCues":60,"warn":0,"firstWarn":"","problems":0} {"f":"i-number-gone.srt","toolCues":60,"warn":0,"firstWarn":"","problems":0} {"f":"j-extra-blank-in-cue.srt","toolCues":60,"warn":1,"firstWarn":"Skipped a block without a timestamp: \"stack camera and a bread the on.\"","problems":0} == hand edits, ffmpeg 6.1.1 (cues with -->) == mut/a-control.srt ffmpeg_cues=60 err= mut/b-word-edit.srt ffmpeg_cues=60 err= mut/c-blank-line-deleted.srt ffmpeg_cues=60 err= mut/d-dot-ms.srt ffmpeg_cues=60 err= mut/e-arrow-typo.srt ffmpeg_cues=59 err= mut/f-crlf.srt ffmpeg_cues=60 err= mut/g-bom.srt ffmpeg_cues=60 err= mut/h-cp1252.srt ffmpeg_cues=59 err=[srt @ 0x5cea32bdb0c0] Invalid UTF-8 in decoded subtitles text; maybe missing -s mut/i-number-gone.srt ffmpeg_cues=0 err=[in#0 @ 0x5abda625bd80] Error opening input: Invalid data found when processing mut/j-extra-blank-in-cue.srt ffmpeg_cues=60 err= == live shifter, +2.5 s: download compared with library output == identical (cmp exit 0)