VionetoVioneto
Back to the magazine

VIONETO MAGAZINE

How HLS delivers video in segments

When streaming with HLS, playback lists and individual media segments combine. A six-second example featuring three actually generated segments illustrates the process and the role of different quality variants.

The own list atlas.m3u8 references atlas-00.ts, atlas-01.ts, and atlas-02.ts, each declared to have a duration of two seconds. Together, they sum to six seconds.
Original locally generated and fully decoded HLS version with exactly one media variant. Schematic, no production or adaptive bitrate testing.Image: Vioneto · original illustration

When you start a video, a text list and several small media files appear in the network view. This is part of the intended playback process. In HTTP Live Streaming, or HLS, a playlist specifies which media segments the player should retrieve.

HLS describes this delivery process. The name alone does not indicate how the video is encoded, how many quality levels are available, or whether a specific device supports playback. These components are closely related but serve different functions.

Lists and media content are separate.

RFC 8216 describes two basic list types: a media list references segments of a version. A master list, known as the "Master Playlist" in the RFC, can reference multiple variants. The player receives this initial description and can then derive appropriate media requests from it.

The lists contain text and references; the actual audio and video data are stored in the referenced media resources. A segment can be described as a separate file or by a specified byte range. Therefore, an HLS presentation is not necessarily a sequence of individually named complete video files.

Apple's current HLS overview categorizes the delivery process under standard web servers and Content Delivery Networks. The term "Live Streaming" does not limit this to ongoing broadcasts—finished videos can also be delivered via HLS.

Our own six-second test

For this article, we generated a local test clip on October 22, 2026, featuring H.264 video and AAC audio track. The clip contains no customer footage. Using the available FFmpeg version 8.0.1, we created an HLS version with two-second segments. The actual output includes:

  • "atlas.m3u8" as a playlist.
  • "atlas-00.ts" with the first specified segment of two seconds.
  • "atlas-01.ts" with the next two seconds specified.
  • "atlas-02.ts" with the last two specified seconds.

In the generated list, each of the three references is preceded by "#EXTINF:2.000000," indicating the duration. "#EXT-X-PLAYLIST-TYPE:VOD" identifies the preloaded playback content; "#EXT-X-ENDLIST" marks the end of the media playlist. The three declared segment durations sum to six seconds. The graphic illustrates this exact scenario.

Then we fully decoded the local playback list using FFmpeg. The process completed successfully with no error messages. This goes beyond simply verifying the presence of four file names: the local decoder was able to process the referenced segments together.

This sample featured exactly one media variant. There was no measured quality change, no provider upload, and no HLS browser test. The generated examples remain local research files; the names in the article are not public download links.

Where do the various quality levels come from?

Segmentation alone does not create a choice between low and high data demand. For that, appropriate quality profiles must be prepared and described in a way that a suitable player can select them. MDN explains the interaction between segments, quality profiles, and playback lists.

A proposed Atlas tutorial could, for example, include two pre-prepared image versions. The player would then not play both sequences completely in sequence, but instead fetch relevant segments from a selected variant and switch between suitable variants as needed. This two-variant scenario is an explanation, not a second attempt.

Which version is actually selected depends on the player, available variants, and playback context. A narrow embedding or slow connection therefore does not reliably indicate which data is being transmitted. To determine the exact outcome, one must observe the actual requests made.

A playlist URL is not a fully functional viewing interface.

To play content, you need a compatible player and a suitable browser path. An address ending in .m3u8 is initially just a description link. Simply copying it into any website block does not automatically create a functional player with a play button, subtitles, or meaningful error messages.

If a video service provides a ready-made embedding code, use their recommended method. For a custom implementation, you must clearly define the supported media formats and playback approach. Native support or a JavaScript player may be relevant depending on the environment; this foundational article does not claim to offer a universal embedding solution.

When a disruption occurs, verify the proper level.

  1. Is the playback playlist accessible and part of the expected published version?
  2. Are the resources referenced there actually reachable at the specified addresses?
  3. Does the player and media formats match the tested browser environment?
  4. Did the disturbance occur before the first frame, or only at a specific later point?
  5. What specific error message or failed playback was observed?

In our local case, the playlist and all three segments must be treated as a single unit. Copying just "atlas.m3u8" to another location would not include the referenced segments. This small dependency explains why an HLS issue might arise in the playlist, the resource, or their relationship.

The sources explain the fundamental HLS structure; RFC 8216, published in 2017, is labeled as "informational." More recent extensions and specialized low-latency methods require additional, up-to-date detailed analysis. To understand our final example, a clear distinction is sufficient: the list specifies the media segments, which contain the content, while the player combines both to enable playback.

RFC 8216: Basic HLS Structure

Apple: current HLS overview and additional documentation

MDN: Prepare adaptive media sources

Why an uploaded video must first be processed

Sources and further reading

  1. https://www.rfc-editor.org/rfc/rfc8216.html
  2. https://developer.apple.com/streaming/
  3. https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Audio_and_video_delivery/Setting_up_adaptive_streaming_media_sources