In practice4 min read

Simulator: see why video buffers, even on good internet

Adjust internet speed, video quality and network stability and watch the player's buffer fill and drain in real time. After a minute of playing with it, buffering stops being a mystery.

By the Nineplay TeamPublished
Article cover: Simulator: see why video buffers, even on good internet

In 30 seconds

  • The player keeps a few seconds of video in reserve, the buffer. As long as it has a reserve, the picture doesn't stop.
  • The buffer fills when the internet delivers faster than the video uses, and drains when it delivers slower.
  • A high average speed isn't enough: quick, repeated drops drain the buffer all the same.
  • Moving the TV to a cable or 5 GHz usually fixes more than upgrading your internet plan.

Try it

The simulator below reproduces, in simplified form, what happens inside any video player. The green bar is the buffer, the reserve of video already downloaded. When it hits zero, the picture stops and the loading spinner appears.

Buffer simulator

Each half second here equals one second of video

Nineplay's movies screen used in the simulator
Buffer0 s
Internet now20 MbpsStalls0
Loading the buffer…
Figure 1. Simplified simulation. Real players also switch quality when the playlist offers more than one, which this simulator doesn't do.

Try three scenarios: 10 Mbps internet with Full HD video (the buffer slowly drops until it stalls), steady 30 Mbps internet (the buffer fills and stays full) and 30 Mbps internet with strong fluctuation (even with a high average, the buffer gets scares).

The math behind the simulator

Every second, the video uses the amount of data set by its bitrate, and the internet delivers what it can in that second. The difference goes into the buffer:

Buffer added per second = internet speed ÷ video bitrate − 1

How much the buffer grows each second

Speed ÷ bitrate − 1

30 Mbps internet, 8 Mbps video+2.75 s of buffer per second
12 Mbps internet, 8 Mbps video+0.5 s per second
8 Mbps internet, 8 Mbps video0: the buffer doesn't grow
6 Mbps internet, 8 Mbps video−0.25 s per second: it will stall
00,751,52,253 s
Figure 2. With internet below the bitrate, the buffer only shrinks, and the picture stops when it runs out.

That's why there's headroom in the internet recommendations we use on this blog (15 Mbps for a Full HD video that uses about 8): it's not for the video, it's for the moments when the internet delivers less than average.

Why the average is misleading

Speed tests show an average over a few seconds. Video, however, feels every drop. A network that swings between 40 and 3 Mbps can read “20 Mbps” on a test and still drain the buffer during the drops, especially on 2.4 GHz Wi-Fi, with the microwave running or neighbors on the same channel.

One minute of “20 Mbps” Wi-Fi up close

Share of time in each speed range, on a fluctuating network

fastborderlinedrops
Above 15 MbpsBetween 8 and 15 MbpsBelow 8 Mbps
Figure 3. Illustrative example. The average is good, but a fifth of the time the network is below what Full HD needs.

What to do, in order

To keep the buffer from draining

If it still buffers on every device at once, the bottleneck is before your home: at your internet provider or the playlist's server. The IPTV buffering guide has a quick test to tell the cases apart.

Quick quiz

3 questions to check what stuck. Tap an answer.

The buffer fills when…

The speed test says 20 Mbps and Full HD still buffers. The most likely cause is…

Which change usually helps the most?

Frequently asked questions

Why does video buffer if my internet is fast?

Because what counts is the speed reaching the device every second, not your plan's average. Quick Wi-Fi drops drain the player's buffer and the picture stops.

What is a buffer?

It's the reserve of video the player downloads ahead of what's on screen. As long as it has content, internet drops don't show.

Try Nineplay for 7 days.

Create your account now and use it on iPhone, iPad, Mac, Apple TV, Android, Windows and Xbox. The other platforms join the same subscription.

Nineplay is a player app. We don't sell, provide or recommend channels, movies, series or playlists, and we don't support using content without authorization. Only use playlists from providers who have the right to stream them.