EXT-X-INDEPENDENT-SEGMENTS

Promises that every media segment can be decoded without data from any other segment.

Master or media playlist tagAny protocol versionIn: Master or media playlistRFC 8216, section 4.3.5.1

Syntax

#EXT-X-INDEPENDENT-SEGMENTS

What EXT-X-INDEPENDENT-SEGMENTS means

EXT-X-INDEPENDENT-SEGMENTS says that every media sample in a segment can be decoded without information from other segments. In practice, each video segment starts with a key frame, a frame that does not depend on earlier frames, and no frame refers back into the previous segment.

The tag has no value and no attributes.

Where it goes

It can appear in a master playlist or a media playlist, at most once. In a media playlist, it covers every segment in that playlist. In a master playlist, it covers every segment of every media playlist the master playlist lists.

Rules from RFC 8216

Section 4.3.5.1 and the introduction to section 4.3.5 set these rules:

Apart from the basic tags EXTM3U and EXT-X-VERSION, it and EXT-X-START are the only tags RFC 8216 allows in both kinds of playlist.

Why it matters

Without this promise, a player cannot assume that the first frames of a segment decode on their own. After a seek or a quality switch, it may have to load extra data, or discard frames until it reaches a key frame. With the promise, it can start decoding at any segment boundary, which makes quality switches cleaner and lets a player join a live stream at any segment.

Common mistakes

How players treat it

Players that read the tag can start decoding at any segment boundary. Players that do not read it behave as if it were missing. Either way, the content itself has to keep the promise.

Example

#EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=5400000,RESOLUTION=1920x1080,CODECS="avc1.640028,mp4a.40.2"
1080p/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2900000,RESOLUTION=1280x720,CODECS="avc1.64001f,mp4a.40.2"
720p/index.m3u8

Placed in the master playlist, the tag covers every segment of both qualities, so the media playlists do not need to repeat it.

How m3u8.cloud handles it

The m3u8 inspector shows whether the tag is present. It does not change how trims work: a trimmed download starts at a key frame either way.

Check the tags in any playlist

Open the m3u8 inspector