Syntax
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:
- The tag must not appear more than once in a playlist. A player that finds it twice must refuse the playlist.
- If it appears in a master playlist, it should not also appear in the media playlists that master playlist lists.
- There is no protocol version requirement.
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
- Adding the tag when it is not true. If a packager adds it while segments do not start on key frames, players can show glitches, such as gray or smeared pictures, after a switch or seek.
- Leaving it out when it is true. This is harmless, but players may do extra work around switches.
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.m3u8Placed 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.
Related tags
Check the tags in any playlist
Open the m3u8 inspector