Video / Transcripts

A Video Transcript and Subtitle Workflow: Fixing SRT / VTT Timelines, Making Them Searchable, and Archiving in Three Files

Turn videos into searchable, citable text: SRT versus VTT, the four timeline checks (overlaps, negative duration, line length, reading speed), structuring transcripts with KNOWHY Parse, and a three-file archive convention.

Video is nearly unsearchable by itself. A week after an hour-long tutorial you remember “it covered some setting” and cannot find the minute. Turning a video into a searchable, citable text asset is the real point of the work; not downloading, but converting. This is the process we use: fix the timeline first, produce two text editions, then archive under a fixed structure.

What differs between the two subtitle formats

  • SRT is the most portable format. A cue is a sequence number, a timing line, one or more text lines, and a blank line. The timing line uses start --> end with comma-separated milliseconds (00:01:23,456). There is no header and no styling.
  • VTT (WebVTT) is the web standard. The first line must be WEBVTT; milliseconds use a period (00:01:23.456); styling, positioning, and chapters are optional extras. Browsers support it natively.

The most common real-world error is copying a timing line between the two and forgetting the separator. Check it once with a regex: a period-separated millisecond field in an SRT, or a comma in a VTT, is a hard error.

The four timeline checks

Timeline problems hurt viewing more than typos do. These four cover nearly everything; the first three are hard errors, the fourth is a comfort issue.

  1. Overlaps: a cue starts before the previous one ends. Players disagree about what to do; some show both, some drop one.
  2. Negative or zero duration: the end time is at or before the start. Usually a typo during manual editing.
  3. Line length and line count: the Netflix Timed Text style guide is a widely adopted reference: at most 42 characters per line and no more than two lines.
  4. Reading speed: the same reference suggests no more than 17 characters per second for adult programming and 13 for children. Faster than that and viewers cannot finish.

How to check: open the file in any subtitle editor that shows timecodes and filter on each rule. If you prefer a spreadsheet, split the timing line into two columns, convert to seconds, and overlaps and negative durations become one subtraction.

Structure the transcript with KNOWHY Parse

Once the timeline is clean, the next step is turning it into something usable. KNOWHY Parse (Video Insight) accepts public Bilibili, YouTube, and Douyin links, and also pasted text or TXT, SRT, and VTT files, and converts them into structured understanding such as topic segmentation and key points. It works on transcripts rather than downloading video, which makes it a fit for this step:

  • Import the corrected SRT and get a timestamp-free version segmented by topic.
  • For long videos, generate a chapter-level overview first, then decide which sections deserve a close read.
  • When it will not all fit in one pass, import by chapter so each batch stays on one theme.

Be clear about sourcing. Bilibili and YouTube go through real metadata and transcript import/export; Douyin works through third-party parsing of the work’s information. Before you reorganize a transcript, confirm you have the right to use the content.

Produce two editions: one for search, one for citation

The same transcript should yield two editions, each with its own job:

  • Search edition: plain text with every timestamp and cue number removed, organized by paragraph. This is the version for full-text search, feeding a summarizer, or running through NoAITell to strip invisible characters.
  • Citation edition: Markdown that keeps time points, with each paragraph headed by its start time in the form [12:34]. This is the version for notes, quotations, and jumping back into the video.

Generate both from the same corrected subtitle file so the content stays identical. The Node.js snippet below turns an SRT into the citation edition and flags any gap longer than two minutes, which is usually an intro, a demo, or an outro worth confirming separately:

import { readFileSync } from "node:fs";

const src = readFileSync(process.argv[2], "utf8").replace(/\r/g, "");
const toSec = (t) => { const [h, m, s] = t.split(":"); return +h * 3600 + +m * 60 + parseFloat(s.replace(",", ".")); };
const fmt = (sec) => `${String(Math.floor(sec / 60)).padStart(2, "0")}:${String(Math.floor(sec % 60)).padStart(2, "0")}`;

const cues = src.split(/\n\n+/).map((b) => b.split("\n")).filter((l) => l.length >= 2 && l[1].includes("-->"))
  .map((l) => ({ start: toSec(l[1].split("-->")[0].trim()), text: l.slice(2).join(" ") }));

let last = 0;
for (const c of cues) {
  if (c.start - last > 120) console.log(`\n<!-- gap ${(c.start - last) / 60 | 0} min -->\n`);
  console.log(`[${fmt(c.start)}] ${c.text}`);
  last = c.start;
}

The archive convention: three files

One folder per video, containing exactly three things:

  • The original subtitle: the .srt or .vtt exactly as corrected, never modified afterwards. It is the basis for every derived edition.
  • The cleaned transcript: search edition .txt and citation edition .md, UTF-8 throughout, no BOM, LF line endings. A BOM makes many tools see an invisible extra character on line one.
  • Metadata: a small YAML file recording the source link, author, publish date, the date you processed it, and the license. With it, you will still know six months from now whether the transcript may be quoted.

Name folders YYYY-MM-DD-source-title, without spaces or special characters. The structure is simple enough to maintain with no tooling and sturdy enough to back a personal library of several hundred videos.

Checklist

  • SRT uses commas, VTT uses periods for milliseconds
  • No overlaps, no negative durations
  • At most 42 characters per line, at most two lines
  • Reading speed no higher than 17 characters per second
  • Both editions generated from the same corrected file
  • Original, cleaned transcript, and metadata all present; UTF-8 without BOM

Processing transcripts is slow work, but the return compounds: every video you process makes your searchable library one layer thicker, while the video itself stays exactly where it was.

KNOWHY Project

  • KNOWHY Parse
  • NoAITell