Ever wondered why a 2GB video doesnโt consume all your data while streaming on YouTube? ๐ค In this video, we break down the exact technology behind video streaming in the simplest way possible. Learn how YouTube uses: ๐ Video compression (VP9, AV1) ๐ Chunk-based streaming ๐ DASH protocol ๐ Smart buffering โฆto deliver high-quality video without exhausting your data. Perfect for system design interviews, backend engineers, and curious developers. โธป ๐ Topics Covered: * How YouTube streaming works * DASH protocol explained * Video compression VP9 vs AV1 * Buffering and chunking * System design interview question โธป Refined & Simple : In company interviews, you might be asked: ๐ If a 1080p video file is around 2โ2.5 GB, why doesnโt your data get exhausted when you watch it online (like on YouTube)? Letโs understand this simply. โธป ๐น Step 1: Video Compression When you upload a video to YouTube, it gets compressed using advanced codecs like: * VP9 * AV1 These formats reduce file size significantly while maintaining quality. โธป ๐น Step 2: Streaming (Not Full Download) YouTube does NOT download the entire video at once. Instead, it uses chunk-based streaming. ๐ Example: * 15โ30 seconds of video is loaded at a time * Then the next chunk loads * And so onโฆ This is called the DASH protocol (Dynamic Adaptive Streaming over HTTP). โธป ๐น Step 3: Smart Buffering * When you watch a video, only a small part is buffered * If you skip to the middle, it loads only that section first * Then continues loading nearby chunks ๐ Thatโs why you see buffering when you jump ahead โธป ๐น Step 4: Thumbnail Preview When you hover over the timeline: * You see previews (thumbnails) * But the full video is NOT downloaded This uses a separate lightweight preview system โธป ๐ Final Insight ๐ Videos are compressed ๐ Only small chunks are streamed ๐ Smart buffering saves data โ ๏ธ Thatโs why your data doesnโt get exhausted even with large videos _____ how youtub
Original Description
Ever wondered why a 2GB video doesnโt consume all your data while streaming on YouTube? ๐ค
In this video, we break down the exact technology behind video streaming in the simplest way possible.
Learn how YouTube uses:
๐ Video compression (VP9, AV1)
๐ Chunk-based streaming
๐ DASH protocol
๐ Smart buffering
โฆto deliver high-quality video without exhausting your data.
Perfect for system design interviews, backend engineers, and curious developers.
โธป
๐ Topics Covered:
* How YouTube streaming works
* DASH protocol explained
* Video compression VP9 vs AV1
* Buffering and chunking
* System design interview question
โธป
Refined & Simple :
In company interviews, you might be asked:
๐ If a 1080p video file is around 2โ2.5 GB, why doesnโt your data get exhausted when you watch it online (like on YouTube)?
Letโs understand this simply.
โธป
๐น Step 1: Video Compression
When you upload a video to YouTube, it gets compressed using advanced codecs like:
* VP9
* AV1
These formats reduce file size significantly while maintaining quality.
โธป
๐น Step 2: Streaming (Not Full Download)
YouTube does NOT download the entire video at once.
Instead, it uses chunk-based streaming.
๐ Example:
* 15โ30 seconds of video is loaded at a time
* Then the next chunk loads
* And so onโฆ
This is called the DASH protocol (Dynamic Adaptive Streaming over HTTP).
โธป
๐น Step 3: Smart Buffering
* When you watch a video, only a small part is buffered
* If you skip to the middle, it loads only that section first
* Then continues loading nearby chunks
๐ Thatโs why you see buffering when you jump ahead
โธป
๐น Step 4: Thumbnail Preview
When you hover over the timeline:
* You see previews (thumbnails)
* But the full video is NOT downloaded
This uses a separate lightweight preview system
โธป
๐ Final Insight
๐ Videos are compressed
๐ Only small chunks are streamed
๐ Smart buffering saves data
โ ๏ธ Thatโs why your data doesnโt get exhausted even with large videos
_____
how youtub