How Video Streaming Works
How Netflix gets a movie to your screen in seconds.
How Netflix gets a movie to your screen in seconds.
Video is just a series of still images shown rapidly. The more frames per second (fps), the smoother the motion appears.
In the 1920s, 24fps was the minimum for smooth audio. Hollywood kept it for the "cinematic look" - motion blur makes it feel dreamlike.
60fps video has 2.5x more frames than 24fps, meaning 2.5x more data to download - that's why streaming services often use 30fps.
Your eyes can perceive differences up to about 150fps, but most people notice diminishing returns above 60fps!
Sending every pixel of every frame would require impossibly fast internet. Instead, video compression only sends what changes between frames.
A 2-hour 4K movie uncompressed would be ~2TB. With compression, it's about 15-30GB - that's 98% smaller!
When you skip ahead in a video, it must find the nearest I-frame first. That's why seeking isn't always instant!
A scene with lots of action (explosions, fast movement) needs more I-frames, which is why action movies have larger file sizes!
A codec (coder-decoder) is the algorithm that compresses and decompresses video. Better codecs = same quality at smaller file sizes.
Click a codec to learn more about it
Newer codecs are more efficient but require more processing power. Your device must support the codec to play the video!
Netflix encodes every video in multiple codecs and picks the best one your device can handle.
YouTube saves millions of dollars by using AV1 - the bandwidth savings are enormous at their scale of 1 billion hours watched daily!
Ever notice video quality changing during a stream? That's adaptive bitrate - automatically adjusting quality based on your internet speed.
Netflix stores each video in ~10 different quality levels, from 240p to 4K, ready to switch instantly.
Video is split into 2-10 second chunks. Each chunk can be a different quality - you might not even notice the switch!
4K streaming needs about 25 Mbps. That's why Netflix recommends faster internet for 4K - it's not just marketing!
Buffering downloads video ahead of what you're watching. If the buffer runs out before more data arrives... you get the dreaded loading spinner.
That initial loading when you start a video? It's building a safety buffer so small speed drops don't interrupt playback.
Live streams have tiny buffers (low latency). Movies can buffer minutes ahead since real-time doesn't matter.
Twitch streams are only 2-5 seconds behind real-time. YouTube Live can be 20-60 seconds behind - trading latency for reliability!
Content Delivery Networks place copies of popular videos on servers worldwide. Instead of fetching from one central location, you get data from a server near you.
Netflix puts servers directly inside ISPs! Your video might travel just a few miles instead of across the country.
A new blockbuster gets cached everywhere. Obscure documentaries might only be on central servers.
During peak hours, Netflix accounts for over 15% of all internet traffic in the US. Without CDNs, the internet would grind to a halt!
You now understand the incredible technology that delivers video to billions of screens instantly - from frame rates to compression to the global network of servers making it all possible.
Movies use 24fps, games target 60fps - more frames = smoother motion.
Only changes between frames are sent, reducing data by up to 95%.
Streaming quality automatically adjusts based on your internet speed.
Servers worldwide cache content close to you for faster delivery.
Put your new knowledge into practice!