You can freely drag the progress bar in videos, but in 10 minutes, it actually gets cut into 64 clips

On Friday night, I watched cartoons with my child. The little one wouldn't let me fast-forward, so I took advantage of his time to wash his hands and drag the progress bar to the middle. The scene flashed out. Ten years ago, when you used download software, this was unimaginable—a video file of several hundred MB would have to wait from where you dragged it out. At that moment, I wondered, how on earth is this video being sent to me? Last time, I wrote about CDN, and I clearly explained which server the video comes from. This time, I've clarified an upstream matter: video sites never intended to send you a complete file.
Let me clarify first: the "one video" you see is actually a basket of fragments
I found a public test video source and pulled out its list as is. A 10 minute 34 second 720p video—guess what shape it looks like? 64 small files, each about 10 seconds long, numbered from 462 to 525, not missing a single one. I downloaded three of these clips to check their size: the first was 1.92MB, the middle one was 1.65MB, the last one was only 0.63MB—and the last one was short, only 4.584 seconds, just a fraction of the leftovers.
This cutting method
has an industry standard called HLS, which Apple invented for the iPhone back then. The list file file has the .m3u8 extension, which was originally an old format for player plugins and was used as a "goods list"; The suffix for slices is .ts. Most of the video apps and web players you see are running this set or its variants behind the scenes. Bilibili and YouTube use a DASH system, which uses exactly the same approach but has different manifest formats. Bilibili splits the video and audio into two separate tracks and sends them separately. So some downloaders get a pure video and a pure audio file, which you have to merge once before viewing.
The more I think about this method, the more sophisticated it seems. Why not just send the entire file? Do the math: a 45-minute episode at 720p at this bitrate is over 400MB. If you click to read for 3 minutes and find it unpleasant, close it, and the server uploads 400MB for free; You drag it out until the 40th minute, and the first 39 minutes were all empty balls. After slicing into 10-second pieces, it ships wherever you see it, with each slice shipped on demand.
Two menus: one for tube clarity, one for each piece
The
list you pull down actually has two layers, similar to a restaurant's ordering system. The first layer is called the master list. The one I pulled is only 752 bytes, not even a short text message long. It only does one thing: set up the stalls. I counted five resolutions, each with a line of text — 240p says 246440, meaning this mode can max out at 246,000 bits per second; the 1080p level says 6221600, 6.2 Mbits per second, which translates to about 0.78MB per second.
The second layer is the real cargo list. After selecting the 720p file, the file files are 3606 bytes, honestly listing 64 lines, each line with the file name of a segment, and the number of segments indicated before the name. I counted: out of 64 frames, 57 are marked with exactly 10.000 seconds, while the remaining numbers are 9.95 or 10.05—when cutting, you can't cut a keyframe in the middle; you have to cut at the keyframe boundary, so sometimes there's a half-second difference.
| What's written in | thelist layer | volume— | who reads |
|---|---|---|---|
| Main list: m3u8 | 752 bytes | , 5 resolution settings + each bit rate | . Theplayer needs it first, select the file |
| Media list: m3u8 | 3606 bytes | ,64 segments, file names and durations | , player |
| each 0.6~1.9MB | ,10 seconds video + audio | , pullback and play directly |
By the way, this list itself is a URL, just like the article on URL, with no question mark, parameters, or paths missing. So the m3u8 file you download from the internet is almost certainly not a video, but a menu—the menu is only a few KB, the video is a few hundred MB, and opening the wrong item is obviously empty.
At the moment of dragging the progress bar, the player did three things
Now you can understand why dragging the progress bar is so fast. If you drag the progress bar to the 7th minute, the player pulls out the list and calculates: 7 minutes equals 420 seconds, each film is 10 seconds, so that's the 43rd film. Then it only does one thing—starting from the 43rd slab, it doesn't touch the first 42 slabs. You need to get back 1.9MB, and in just over a second, the screen appears. By the way, these clips use the HTTP protocol, running properly on TCP, just like opening a webpage, so firewalls and routers treat it like regular downloads; Why do video calls go through UDP? I mentioned in the article on TCP and UDP. For live calls, you can't wait to retransmit, but for watching videos, you can afford to wait.
Players will also stock up on hand. When playing, it doesn't just play one clip at a time; usually, it pulls three to five extra clips to cushion it, so even a slight shake won't cause it to freeze immediately. If you browse your web page while doing something else, and then keep streaming and it doesn't lag, it's probably because your stock hasn't been fully digested—this is similar to browser cache is a two-layer cache: the browser stores web files, while the video app stockpiles clips. The same principle: having stock on hand means no worries.
So why do some videos just spin around when dragged over? I've stepped on it twice. The first time was a wild site, with the slice cut to a very large size—almost 30 seconds or 7 to 8MB per slice. After dragging it out, you have to wait for a big pile of stuff to arrive, and the experience instantly collapses; There was also one time when the clips didn't match up—the player didn't match the actual time, the image was in the wrong position, and I had to reshoot. How well you cut it directly determines the feel of a source.
Why doesn't it lag when changing the resolution? Just changing the menu
Halfway through the show, I manually switched from 720p to 1080p, and after half a second the screen paused, the show resumed, with the progress still in place. How did they do it? The player just swapped out the second layer of the list—from the 720p one to the 1080p one, and swapped the next clip for a high bitrate version. You just saw film 43, so continue from the 43rd film on the 1080p list; the progress bar hasn't changed at all.
Auto downshifting follows the same logic. During peak evening hours, if your network can't handle 1080p at 0.78MB per second purchase speed, the player calculates: 'Pulled out timed out, stockpile runs low, automatically returns to 480p and continues with the list.' So "the image quality itself is blurry" doesn't mean the phone is broken, but that it uses lowering the graphics to replace the stuttering. The 480p level only costs just over 100,000 bits per second, so it can feed you all kinds of networks. If you think it's dropping too frequently, first click broadband megameter to calculate your own plan, then check if it's time to check WiFi.
My TV used to drop image quality during evening rush hours. At first, I suspected the TV network was stuck but later realized that during that period, uploads were fully backed up by cloud drives, causing downstream issues—this issue was discussed in the article TV networking. The act of lowering image quality is actually the player's way of protecting your viewing experience—the direction is sound.
If the live stream is half a minute slower, it's also the fault of the slices
At
the end of the on-demand list, there was an ENDLIST, meaning "All 64 discs are available, not a single one missing." The livestream list doesn't have this line, and the list itself is alive—refreshing every few seconds, with one or two new sheets added at the end, moving up like a rolling shutter. The streamer produces a small clip every 10 seconds and pushes it to the server. The server adds a line to the list, you refresh the list and pull the latest one. The whole chain rolls down like this.
So live streaming is naturally slow. When the host says something, you have to wait for it to be cut into a whole slice, uploaded to the server, distributed on the CDN, and then pulled down by you. Twenty to thirty seconds for this loop is normal. Some people seriously say, "Watching a live match is half a minute slower than my neighbor's cable TV," and the neighbor cheers for a goal, but you're still struggling—this really can't be blamed on your router; it's the inherent cost of slicing live streams, unless the platform cuts the clips very short, but the list refreshes too frequently and the server can't handle it. Latency and smoothness—live streaming platforms always find a balance between these two.
Downloaders, NAS, and it are two different worlds
Once you understand this principle, a few things become clear. First, those "m3u8 downloaders" online work by pulling down 64 clips from a list one by one and piecing them into a file, so they're slow. Plus, the addresses in the list are time-limited, so if you download an expired list, it's a waste. Second, the movies stored on my NAS are complete files. The TV plays the entire file directly via SMB, which is a different approach from slicing—the advantage of a full file is that whatever you want is stored on your own hard drive. The downside is that a 4K original disc is 80GB per disc, In the NAS playback article, I wrote about the TV 100Mbps network card getting stuck by it.
Third, when you actually encounter video lag, the troubleshooting approach is completely different: dragging the progress bar in circles, most likely because the source is poorly cut or the server is far away; The entire playback is blurry, indicating the bandwidth isn't enough to feed the current level; During evening rush hour, it always lags during the day. First, check CDN dispatch and outlet, then check your own WiFi. Don't restart the router as soon as it gets stuck—that's the most unfortunate step.
| Most of the symptoms | : Who's to | blame first? |
|---|---|---|
| Dragging the progress bar in circles for ages, | slicing the source too large or the server is far away | and trying a different resolution mode, or changing the source |
| image quality will become blurry on its own | ,bandwidth won't fill the current setting | Measure downlink speed, check who is competing for bandwidth |
| evening rush hour, it must be blocked during normal | CDN nodes or congested traffic at community exits | during the day. Compare withtime-slot evidence for repairs |
| Live streaming is half a minute slower than others. | Clip livestreaming inherently latency | and don't mess with it. Switch to cable TV to watch the game |
Here's the order at the end: next time the video card drops, first check whether it's a drag card or a playback card, then check if the video quality is secretly downgraded, then < a href="https://www.shunot.com/en/lybk/985.html"> according to the delay method, determine whether it's a matter at home or outside, and finally it's time to reboot. As for those 64 clips, I deleted them after counting them — knowing what they look like is more useful than keeping them.
