Design Search Inside YouTube Video Transcripts With Timestamp Jumps
Last updated: November 29, 2026
Quick Overview
Design a feature that lets users search for spoken words across YouTube videos and within a single video, returning matches that jump to the exact moment the phrase is said.
Google
System Design
Software Engineer
Software Engineer
System Design Round
System Design
Medium
0
0
0 solved
Design a feature that lets users search for spoken words across YouTube videos and within a single video, returning matches that jump to the exact moment the phrase is said.
A Google onsite question mixing a media pipeline with search infra. The interviewer checks how transcripts are produced and indexed with time offsets, how phrase queries work, and how the in-video and cross-video cases differ.
What the Interviewer Expects
- Produce timed transcripts from captions or speech recognition
- Index tokens with video id and time offsets for phrase matching
- Separate the small in-video index from the global index
- Rank cross-video results using text match plus video quality signals
- Handle transcript updates and multiple languages
Key Topics to Cover
speech recognition
positional index
phrase queries
time offsets
ranking signals
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you support fuzzy matching for ASR errors?
- How do you keep index size reasonable for 800M+ videos?
- How do you highlight the matched words in the player?
- What changes for live streams?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Cross-video search: "where did someone say 'consistent hashing'" returns videos plus timestamps.
- In-video search: within a 2-hour lecture, find all moments matching a phrase.
- Hundreds of million...
High-Level Design
- Transcript pipeline: after upload, use creator captions if present, else run ASR to produce
(word, start_ms, end_ms, confidence)sequences. - Segmenter groups words into ~10 second segme...
Submit Your Answer
Markdown supported