烧死在画面上的字幕(抖音、录屏、老片源)没有字幕轨可抽,只能一帧一帧认。这里做的是:框出字幕所在的那一条、把亮字二值化、连续相同的帧合并成一条,导出 SRT。视频不上传。
把视频丢进来,框出字幕所在的那一条,工具逐帧认字,再把连续相同的帧合并成一条带时间码的字幕。
烧死在画面上的字幕没有轨道可抽,只能看画面。字幕有三个可以利用的特点:它是画面里最亮的一批像素,位置固定在下方一条带子里,一句台词会停留一到三秒。所以先把这条带子裁出来、按亮度二值化,背景的花花绿绿就全没了,识别器只需要认形状;同一段文字出现在连续几帧里,合并成一条字幕,时间取第一帧到最后一帧。裁得越准、阈值调得越对,认错的字越少。得到的是一份初稿:形近字、漏笔画、把标点认成字这类错误一定会有,接着用清洗和质检过一遍比一条条手改快。
要搬运外语短视频的字幕组、要把老片源重新做字幕的人,以及手上只有成片、拿不到原始字幕文件的剪辑。
Drop in a video, mark the strip the subtitles sit in, and the tool reads frame by frame, merging identical consecutive frames into one cue with timing.
Subtitles baked into the picture have no track to pull. They do have three useful properties: they are the brightest pixels on screen, they stay in a fixed strip near the bottom, and one line stays for one to three seconds. So the strip is cropped out and binarised by brightness — the background disappears and the recogniser only has shapes to read. The same text appearing across consecutive frames becomes one cue, timed from the first frame to the last. A tighter crop and a better threshold mean fewer misread characters. What you get is a draft: lookalike characters, missing strokes and punctuation read as text will happen, and running the cleaner and the checker afterwards beats fixing cue by cue.
Subtitle teams localising short foreign videos, anyone re-subtitling an old release, and editors who only have the finished video and no original subtitle file.