How Video Streaming Works

How Netflix gets a movie to your screen in seconds.

1

Frames Per Second

Video is just a series of still images shown rapidly. The more frames per second (fps), the smoother the motion appears.

12 fps
Choppy
24 fps
Movies
30 fps
TV/Streaming
60 fps
Games/Sports

Why 24fps for Movies?

In the 1920s, 24fps was the minimum for smooth audio. Hollywood kept it for the "cinematic look" - motion blur makes it feel dreamlike.

Higher = More Data

60fps video has 2.5x more frames than 24fps, meaning 2.5x more data to download - that's why streaming services often use 30fps.

Fun Fact

Your eyes can perceive differences up to about 150fps, but most people notice diminishing returns above 60fps!

2

Video Compression

Sending every pixel of every frame would require impossibly fast internet. Instead, video compression only sends what changes between frames.

I 100KB
P 15KB
B 8KB
B 8KB
P 15KB
B 8KB
B 8KB
I 100KB

95% Compression

A 2-hour 4K movie uncompressed would be ~2TB. With compression, it's about 15-30GB - that's 98% smaller!

Seeking = I-frames

When you skip ahead in a video, it must find the nearest I-frame first. That's why seeking isn't always instant!

Fun Fact

A scene with lots of action (explosions, fast movement) needs more I-frames, which is why action movies have larger file sizes!

3

Codecs: The Compression Algorithms

A codec (coder-decoder) is the algorithm that compresses and decompresses video. Better codecs = same quality at smaller file sizes.

H.264
2003 - Universal
File Size
100%
H.265/HEVC
2013 - Modern
File Size
50%
AV1
2018 - Future
File Size
30%

Click a codec to learn more about it

Why So Many?

Newer codecs are more efficient but require more processing power. Your device must support the codec to play the video!

Netflix Uses All Three

Netflix encodes every video in multiple codecs and picks the best one your device can handle.

Fun Fact

YouTube saves millions of dollars by using AV1 - the bandwidth savings are enormous at their scale of 1 billion hours watched daily!

4

Adaptive Bitrate Streaming

Ever notice video quality changing during a stream? That's adaptive bitrate - automatically adjusting quality based on your internet speed.

1080p HD
40 Mbps

Multiple Versions

Netflix stores each video in ~10 different quality levels, from 240p to 4K, ready to switch instantly.

Chunks, Not Files

Video is split into 2-10 second chunks. Each chunk can be a different quality - you might not even notice the switch!

Fun Fact

4K streaming needs about 25 Mbps. That's why Netflix recommends faster internet for 4K - it's not just marketing!

5

Buffering: Racing Against Playback

Buffering downloads video ahead of what you're watching. If the buffer runs out before more data arrives... you get the dreaded loading spinner.

3s
Buffer Ahead
12 Mbps
Download Speed
Ready
Status

Pre-buffering

That initial loading when you start a video? It's building a safety buffer so small speed drops don't interrupt playback.

Buffer Size Varies

Live streams have tiny buffers (low latency). Movies can buffer minutes ahead since real-time doesn't matter.

Fun Fact

Twitch streams are only 2-5 seconds behind real-time. YouTube Live can be 20-60 seconds behind - trading latency for reliability!

6

CDNs: Servers Everywhere

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.

180ms
Without CDN
15ms
With CDN

Netflix Open Connect

Netflix puts servers directly inside ISPs! Your video might travel just a few miles instead of across the country.

Cache the Popular Stuff

A new blockbuster gets cached everywhere. Obscure documentaries might only be on central servers.

Fun Fact

During peak hours, Netflix accounts for over 15% of all internet traffic in the US. Without CDNs, the internet would grind to a halt!

Streaming Expert!

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.

0
Frames Simulated
0
Quality Switches
0
Time Exploring

Frames Per Second

Movies use 24fps, games target 60fps - more frames = smoother motion.

Video Compression

Only changes between frames are sent, reducing data by up to 95%.

Adaptive Bitrate

Streaming quality automatically adjusts based on your internet speed.

CDN Networks

Servers worldwide cache content close to you for faster delivery.

Ready to Create?

Put your new knowledge into practice!

Suggest a Correction