How the internet worksExhibit 14

How does Netflix stream without buffering?

A film is not one file. It is cut into chunks a few seconds long, and every chunk is stored at several quality levels. Before each chunk, the player looks at how much video it has waiting and picks a quality it can afford. When the connection slows down, the picture gets blurrier instead of stopping.

Try it: slow the connection for one minute

Two players show the same 3-minute video over the same connection. From second 40 to second 100 the connection slows down. Player A always asks for the best quality. Player B picks the quality from how full its buffer is.

Player A: always top quality
frozen 33.4 s
Player B: follows its buffer
frozen 0 s

A simulation, not a recording of Netflix. Chunks are 4 seconds long. The ten quality levels (235 to 5,800 kbps) are the fixed ladder Netflix published in 2015; today it tunes the ladder per title. The connection is 8,000 kbps outside the slow minute. Red blocks are moments when the picture is frozen.

The video for this exhibit comes out on YouTube on Friday 11 December. Subscribe so you don’t miss it

A film is hundreds of small files

Streaming services cut every title into chunks a few seconds long and encode each chunk several times, from a small, blurry version to a large, sharp one. That list of versions is called a bitrate ladder. Your player downloads the chunks one after another and can switch rungs at every chunk boundary.

The buffer decides

The player keeps a buffer: video that has arrived but has not been shown yet. A simple and well-tested rule is to pick the quality from how full the buffer is: nearly empty means take the smallest version, comfortably full means take the best. In our test with one slow minute, the player that insisted on top quality was frozen for 33.4 seconds; the player that followed its buffer never froze and its buffer never dropped below 11 seconds.

Servers close to you

Speed also depends on distance. Netflix places its own servers, called Open Connect appliances, inside internet providers and at exchange points around the world, so the chunks usually travel a short way to reach you.

Frequently asked questions

Why does my video get blurry and then sharp again?

The player switched to a smaller version of the next chunks because your connection slowed down or the buffer was running low. When the buffer fills up again it moves back to a sharper version.

What is adaptive bitrate streaming?

The video is stored as short chunks at several quality levels, and the player chooses the level for each chunk based on the connection and its buffer. Common formats are MPEG-DASH and Apple's HLS.

Why does a video buffer?

The player ran out of downloaded video: the chunks were arriving more slowly than they were being played. Lower quality chunks are smaller, so switching down is the usual way to avoid it.

Sources

Last updated

Keep exploring