How HLS streaming works — and how to save a stream as one file
Updated 28 October 2026 · 6-minute read
You click play, the video starts instantly, and the quality quietly adjusts to your connection. That magic is usually HLS — HTTP Live Streaming — and it's also the reason there's no "Save video as…" when you right-click. This guide explains what's actually happening, in plain English.
A stream is not a file. It's a recipe plus a thousand pieces.
When a site streams video over HLS, your browser never receives a video file. It receives a small text file called a playlist (a .m3u8 file) that says, roughly: "this video comes in 112 pieces; here is the address of each piece, in order." The pieces — called segments — are short chunks of video, typically 2–10 seconds each. The player downloads them one after another and plays them back-to-back so smoothly you never notice the seams.
Most streams actually start with a master playlist: a menu listing the same video at several quality levels (1080p at 5 Mbps, 720p at 2.4 Mbps, and so on), each with its own segment list. That's how a player switches quality mid-video — it just starts asking for pieces from a different list.
Why right-click can't save it
There is nothing to save. The address bar of the player points at a playlist, not a video; the video exists as hundreds of short files scattered across a CDN. Saving the playlist gets you a text file of URLs. Saving one segment gets you six seconds of video. To keep the stream, something has to fetch every segment, in order, and join them back into one continuous file.
What a capture tool actually does
A stream capture tool automates exactly that:
- Reads the master playlist and shows you the quality menu, so you pick 1080p or 720p deliberately instead of getting whatever the player happened to be on.
- Downloads every segment — good tools fetch several in parallel and retry the ones that fail, because CDNs drop requests all the time.
- Decrypts, when needed. Many streams encrypt segments with a scheme called AES-128, where the key is served openly alongside the playlist so any viewer's player can decrypt. That's transport protection, not DRM — a capture tool uses the same key the player uses. (True DRM is a different story; see below.)
- Joins the pieces in order into one file: streams of MPEG-TS segments become a
.tsfile, and fragmented-MP4 streams become a standard.mp4. Both play in VLC, QuickTime and most modern players.
Done well, this writes to disk as it goes — so a 2 GB webinar doesn't have to fit in memory — and runs faster than real time, since it downloads as fast as the CDN allows rather than at playback speed.
The hard limit: DRM
Some platforms — Netflix, Prime Video, Disney+ and most paid studio content — wrap their streams in genuine DRM (Widevine, FairPlay, PlayReady). There, segments are encrypted with keys that are never given to you; they're negotiated by a locked-down decryption module inside the browser and released only under license. No honest tool can capture those streams, and circumventing DRM is illegal in most jurisdictions. A trustworthy capture tool detects DRM and says so plainly instead of failing halfway or pretending. We wrote a separate guide on this: why DRM videos can't be downloaded.
Saving a stream with Vidtuck
Vidtuck is a Chrome extension that does all of the above in one click: play the video, click the toolbar icon, pick a quality, and the assembled file lands in your Downloads. Detection, segment fetching with retries, AES-128 decryption and disk-streamed assembly are built in — and everything runs locally in your browser, with no servers and no tracking. It's free for everyday use.
One principle applies regardless of tool: only save streams you have the right to keep — your own content, openly licensed material, or recordings your access terms let you retain.