Why Raw YouTube Auto-Captions Repeat Every Line—and How to Clean Them
Anyone who has downloaded auto-generated YouTube subtitles using yt-dlp --write-auto-sub, browser extensions, or YouTube Studio has encountered the dreaded "triple-echo" problem: every spoken phrase appears two to three times in a row, littered with inline <00:01:14.320><c> karaoke tags, align:start position:0% attributes, and [Music] brackets. YouTube's Automatic Speech Recognition (ASR) engine formats captions for a live two-line roll-up television display, where Line 2 of Cue N scrolls upward to become Line 1 of Cue N+1, separated by a 10-millisecond static transition block.
YouTube VTT Token Bloat Math & 2026 AI Summarization Savings
Feeding uncleaned YouTube .en.vtt files into RAG pipelines, Notion AI, Claude, or OpenAI models wastes massive token budgets and causes LLMs to hallucinate repeated quotes:
Raw_VTT_Tokens ÷ Clean_Prose_Tokens ≈ 5.8× to 6.8×Token Compression Ratio:
Savings_% = (1 − ((Clean_Words × 1.33) ÷ Raw_VTT_Tokens)) × 10010ms Freeze-Cue Filter: Merges transition blocks where
(End_ms − Start_ms) ≤ 20 ms and normalized text matches
Worked Numerical Example (30-Minute Tech Channel Archive): A typical 30-minute YouTube deep-dive downloaded via yt-dlp as video.en.vtt contains 1,860 raw cues and 41,200 tokens (~168 KB) because every single word carries a 17-character inline timestamp plus duplicated roll-up prefixes. Processing that file here strips all inline <c> tags, drops 910 freeze/noise cues, deduplicates rolling overlaps, and merges the output into 4,650 unique spoken words (~6,185 tokens)—an 85.0% token reduction. At 2026 frontier LLM API rates of $2.50 to $3.00 per 1M input tokens (or compared against commercial YouTube transcript scraper SaaS APIs charging $12–$29/month per 1,000 videos), batch-cleaning 500 channel transcripts locally slashes vector-embedding and summarization token spend by more than 6.5x at $0 software cost.
2026 YouTube Caption Export Formats & Recommended Cleaning Settings
| YouTube Caption Source | Raw File Artifacts Present | Recommended Checkboxes | Best Output Tab |
|---|---|---|---|
yt-dlp Auto-Sub (.en.vtt) |
Inline <c> word times, 10ms freeze cues, 2-line overlaps |
All 3 Toggles ON | Clean Plain Text (Paragraph) or SRT |
YouTube Studio ASR Download (.srt) |
Overlapping cue end/start times, unpunctuated lowercase lines | Remove SDH + Dedupe Overlaps ON | Clean Plain Text or Standard SRT |
| YouTube "Show Transcript" Copy-Paste | Alternating 0:14 timestamp lines + 5-word fragments |
Remove SDH ON | Clean Plain Text (Paragraph Flow) |
Creator-Uploaded Manual CC (.vtt/.srt) |
[Music], speaker hyphens, occasional <i> tags |
Strip HTML + Remove SDH ON | Paragraph Flow for blog repurposing |
Four-Stage Deduplication Pipeline Under the Hood
- Stage 1 — Inline Karaoke Tag Stripping: Removes sub-cue timestamps (
<00:00:02.140>) and<c>...</c>wrappers before comparing lines so identical phrases match accurately. - Stage 2 — 10-Millisecond Freeze Frame Collapse: Detects stationary snapshot cues (e.g.,
00:00:02.890 --> 00:00:02.900) and extends the preceding cue's end timestamp seamlessly. - Stage 3 — Suffix-to-Prefix Line & Phrase Matching: Checks whether the bottom line (or trailing 3–10 words) of Cue N reappears at the start of Cue N+1, trimming only the repeated prefix so zero unique words are lost.
- Stage 4 — Acoustic Bracket Purge: Strips
[Music],[Applause], and♪blocks generated during intro songs and B-roll montages.