SCTE-35 in HLS: DATERANGE and CUE Tags
How SCTE-35 ad markers appear in HLS playlists: EXT-X-DATERANGE from RFC 8216, and the widely used EXT-X-CUE-OUT and EXT-X-CUE-IN tags.
HLS carries SCTE-35 ad markers in two common ways. EXT-X-DATERANGE is the standard one, defined in RFC 8216. EXT-X-CUE-OUT and EXT-X-CUE-IN are widely used but aren’t in that RFC, so what is accepted depends on your vendor.
EXT-X-DATERANGE
The tag has three SCTE-35 attributes, each holding the splice_info_section() as a hexadecimal sequence:
SCTE35-OUT: the splice out, where the ad break startsSCTE35-IN: the splice in, where the program returnsSCTE35-CMD: any other command
The RFC’s example is an out and in pair sharing one ID (values shortened here):
#EXT-X-DATERANGE:ID="splice-6FFFFFF0",START-DATE="2014-03-05T11:15:00Z",PLANNED-DURATION=59.993,SCTE35-OUT=0xFC002F...
#EXT-X-DATERANGE:ID="splice-6FFFFFF0",DURATION=59.993,SCTE35-IN=0xFC002A...The rules that matter
- A playlist with any
EXT-X-DATERANGEmust also contain at least oneEXT-X-PROGRAM-DATE-TIMEtag. A missing one is worth checking first. - An out and in pair should use tags with the same ID, unique to that pair.
- The
START-DATEof an out tag must be the program time of the splice. - An out tag may carry
PLANNED-DURATION. The in tag’sDURATIONmust be the actual duration. - If the real end isn’t known yet, leave the duration out and signal the end later with another tag using the same ID.
- A cancelled splice should not appear.
splice_insert and time_signal
splice_insert carries its own direction through out_of_network_indicator: 1 goes in SCTE35-OUT, and 0 goes in SCTE35-IN.
time_signal gets its meaning from the segmentation descriptors attached to it. Those that signal a splice out or in map to SCTE35-OUT and SCTE35-IN. Other time signals should use SCTE35-CMD.
EXT-X-CUE-OUT and EXT-X-CUE-IN
These tags don’t appear in RFC 8216, and we couldn’t find a standard that defines them. Google’s documentation describes the common usage: #EXT-X-CUE-OUT:DURATION=30 starts the break, and #EXT-X-CUE-IN ends it. Google also documents #EXT-OATCLS-SCTE35, which carries a base64 payload rather than hex. Check your own stitcher’s documentation for what it accepts.
Try it
Fetch or paste a playlist into the HLS Parser to see its cues decoded. For what happens next, see debugging VAST on a FAST channel.
Try it
Sources
- RFC 8216: HTTP Live Streaming
- Google Ad Manager: HLS ad markers
- Google Cloud Video Stitcher: ad markers
Last checked 2026-11-07.