EXT-X-DISCONTINUITY

Marks a break between two segments, such as a change of format, tracks or timestamps, so players reset before reading on.

Media segment tagAny protocol versionIn: Media playlistRFC 8216, section 4.3.2.3

Syntax

#EXT-X-DISCONTINUITY

What EXT-X-DISCONTINUITY means

EXT-X-DISCONTINUITY marks a break between the segment that follows it and the one before it. Normally each segment continues exactly where the last one ended, with timestamps counting up without a jump. A discontinuity tells the player that this is not the case here, so it must reset before reading on.

The tag has no value and no attributes.

When it is needed

Section 4.3.2.3 of RFC 8216 says the tag must be present when any of these change between two segments:

It should be present when the encoding parameters, such as the resolution, or the encoding sequence change. Typical causes are an ad or a slate inserted between parts of a program, an encoder that restarts during a live stream, and recordings stitched together from separate files.

Where it goes

Media playlists only, on its own line before the first segment after the break. It applies to that one segment. A playlist can contain as many as it needs.

Common mistakes

How players treat it

At a discontinuity, players flush their decoders and treat the new segment's timestamps as a fresh start that continues the same timeline. Done well, viewers see a clean cut from one part to the next.

Example

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXTINF:6.000,
meeting/seg100.ts
#EXTINF:6.000,
meeting/seg101.ts
#EXT-X-DISCONTINUITY
#EXTINF:6.000,
slate/recess0.ts
#EXTINF:6.000,
slate/recess1.ts
#EXT-X-ENDLIST

The stream switches from the meeting camera to a recess slate made by a different encoder, so the switch is marked with EXT-X-DISCONTINUITY.

How m3u8.cloud handles it

Supported. When building the MP4, m3u8.cloud keeps the timeline continuous across each break, so the saved video plays straight through.

The m3u8 inspector marks where each discontinuity falls.

Check the tags in any playlist

Open the m3u8 inspector