EXT-X-MAP

Tells the player where to find the initialization section it needs before it can read the segments, as used by fMP4 and CMAF.

Media segment tagNeeds protocol version 5In: Media playlistRFC 8216, section 4.3.2.5

Syntax

#EXT-X-MAP:<attribute-list>

Attributes

AttributeValueRequiredWhat it means
URIURI of the file holding the init sectionYesWhere to get the Media Initialization Section. A relative URI is resolved against the address of the playlist.
BYTERANGE"length@offset" in bytes, such as "720@0"
Default: The whole resource
NoThe part of the file at URI that holds the initialization section, in the same format as EXT-X-BYTERANGE. It should contain only the initialization section. The RFC 8216bis draft makes the @offset part required.

What EXT-X-MAP means

EXT-X-MAP tells the player where to find the Media Initialization Section: the header data it needs before it can read the segments. For fragmented MP4 (fMP4) and CMAF segments, this is usually a small file, often named init.mp4, that holds the ftyp and moov boxes describing the tracks and codecs. The segments then hold only the media.

The tag applies to every segment after it until the next EXT-X-MAP or the end of the playlist. Its attributes are URI, which is required, and BYTERANGE, which is optional.

Where it goes

Media playlists only, before the first segment it applies to. Most fMP4 playlists have one EXT-X-MAP near the top. A new one is needed when the initialization data changes, for example after a discontinuity where the codec or resolution changes.

Rules from RFC 8216

Common mistakes

How players treat it

Players download the initialization section once, pass it to the decoder, and reuse it for every segment until the map changes. In browsers, Media Source Extensions need it appended before any media segment.

Example

#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:4
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MAP:URI="init.mp4"
#EXTINF:4.000,
segment0.m4s
#EXTINF:4.000,
segment1.m4s
#EXTINF:2.500,
segment2.m4s
#EXT-X-ENDLIST

All three fMP4 segments share the initialization section in init.mp4, which a player loads once before the first segment.

How m3u8.cloud handles it

Supported. m3u8.cloud handles fMP4 and CMAF pieces described by EXT-X-MAP and downloads the initialization section once, not once per piece.

If you save the original pieces of an fMP4 stream, the result is a fragmented .mp4 file rather than a .ts file.

Check the tags in any playlist

Open the m3u8 inspector