Insert SCTE 35 for Dynamic Ad Replacement

For ad supported delivery of content you can simply include ads in the playlist that you use for your VOD2Live workflow.

If you would like to integrate with a third-party ad service for dynamic ad replacement, then Remix VOD2Live also supports inserting SCTE 35 markers. This works similarly to Unified Remix - AVOD. For Remix VOD2Live the SCTE 35 markers define the content to be replaced in the playlist.

Keep in mind that both the --timed_metadata and --splice_media need to be enabled when creating the Live server manifest from the remixed MP4. Otherwise, Origin will not include the SCTE 35 Timed Metadata in its output and not slice media segments to align segment boundaries with SCTE 35 cue points either:

 #!/bin/bash

 mp4split -o vod2live.isml \
   --vod2live \
   --dvr_window_length=600 \
   --hls.client_manifest_version=4 \
   --hls.no_multiplex \
   --splice_media \
   --timed_metadata \
   remixed.mp4

The SCTE 35 markers are defined in the playlist. Depending on which part of the playlist you would like to mark as a content replacement opportunity there are two ways of specifying the markers.

Marking a full clip for content replacement

If the content you want replaced is a full clip, then the recommended way is to add two SCTE 35 splice_insert() markers. This pair of markers must share the same spliceEventId.

The first marker has the SpliceInsert@outOfNetworkIndicator field set to 1 (CUE-OUT) and is defined in the clip that is replaced (the start of the slate). The optional field BreakDuration is not used. The second marker has the SpliceInsert@outOfNetworkIndicator field set to 0 (CUE-IN) and is defined in the next clip (the return to the main content).

There is no need to specify the Event@presentation_time for either marker, since both default to the beginning of the clip. The Event@duration shouldn't be specified. When the duration field is unspecified, then Remix calculates the duration of the break. This is important, since Remix aligns the clips for concatenating and this may alter the durations slightly.

 1<?xml version='1.0' encoding='UTF-8'?>
 2<smil
 3  xmlns="http://www.w3.org/2001/SMIL20/Language">
 4  <head />
 5  <body>
 6    <seq>
 7      <par>
 8        <video src="asset1.mp4" />
 9      </par>
10      <par>
11        <video src="slate_30_seconds.mp4" />
12        <EventStream
13          xmlns="urn:mpeg:dash:schema:mpd:2011"
14          schemeIdUri="urn:scte:scte35:2013:xml">
15          <Event>
16            <Signal
17              xmlns="http://www.scte.org/schemas/35/2016">
18              <SpliceInfoSection>
19                <SpliceInsert
20                  spliceEventId="4157"
21                  outOfNetworkIndicator="1"
22                  spliceImmediateFlag="1">
23                  <Program />
24                </SpliceInsert>
25              </SpliceInfoSection>
26            </Signal>
27          </Event>
28        </EventStream>
29      </par>
30      <par>
31        <video src="asset2.mp4" />
32        <EventStream
33          xmlns="urn:mpeg:dash:schema:mpd:2011"
34          schemeIdUri="urn:scte:scte35:2013:xml">
35          <Event>
36            <Signal
37              xmlns="http://www.scte.org/schemas/35/2016">
38              <SpliceInfoSection>
39                <SpliceInsert
40                  spliceEventId="4157"
41                  outOfNetworkIndicator="0"
42                  spliceImmediateFlag="1">
43                  <Program />
44                </SpliceInsert>
45              </SpliceInfoSection>
46            </Signal>
47          </Event>
48        </EventStream>
49      </par>
50    </seq>
51  </body>
52</smil>

Marking a part of a clip for content replacement

If the content you want replaced is only a segment of the full clip, then an Auto Return Mode break is signaled using a single SCTE 35 splice_insert() marker.

The marker has the SpliceInsert@outOfNetworkIndicator field set to 1 (CUE-OUT) and the BreakDuration@autoReturn field is set to 1 (CUE-IN).

The Event@presentation_time specifies the start time of the break in the clip. The Event@duration must be set to the duration of the break.

 1<?xml version='1.0' encoding='UTF-8'?>
 2<smil
 3  xmlns="http://www.w3.org/2001/SMIL20/Language">
 4  <head />
 5  <body>
 6    <seq>
 7      <par>
 8        <video src="asset1.mp4" />
 9      </par>
10      <par>
11        <video src="asset2_including_30_second_preroll.mp4" />
12        <EventStream
13          xmlns="urn:mpeg:dash:schema:mpd:2011"
14          schemeIdUri="urn:scte:scte35:2013:xml">
15          <Event
16            presentationTime="0"
17            duration="30">
18            <Signal
19              xmlns="http://www.scte.org/schemas/35/2016">
20              <SpliceInfoSection>
21                <SpliceInsert
22                  spliceEventId="4157"
23                  outOfNetworkIndicator="1"
24                  spliceImmediateFlag="1">
25                  <Program />
26                  <BreakDuration
27                    autoReturn="1"
28                    duration="2700000" />
29                </SpliceInsert>
30              </SpliceInfoSection>
31            </Signal>
32          </Event>
33        </EventStream>
34      </par>
35    </seq>
36  </body>
37</smil>