SCTE-104 XML reference: multiple operation messages
Updated
A multiple operation message is the SCTE-104 message used for cues in SDI. It has a header and a list of
operations; each operation asks the injector (the encoder) to do one thing, for example to start a break or to add a
descriptor to the SCTE-35 cue. This article explains every element of the XML that the SDK reads and writes.
How to send and receive the XML: SCTE-104 on SDI: receiving and sending. Ready XML files for every operation are in the
Commands folder of the Sample ANC (SCTE-104) Transmit sample.
Message structure
<SCTE104 line="12"> <!-- output only: the wrapper and the VANC line -->
<multiple_operation_message>
<protocol_version>0</protocol_version>
<AS_index>0</AS_index>
<message_number>1</message_number>
<DPI_PID_index>0</DPI_PID_index>
<SCTE35_protocol_version>0</SCTE35_protocol_version>
<timestamp>
<time_type>0</time_type>
</timestamp>
<ops>
<op>
<opID>257</opID>
<data>
<splice_request_data> ... </splice_request_data>
</data>
</op>
<!-- more <op> elements -->
</ops>
</multiple_operation_message>
</SCTE104>
Header
Element
Bits
What it means
Usual value
protocol_version
8
Version of the SCTE-104 message format.
0
AS_index
8
Which automation system sent the message, when several feed one injector.
0
message_number
8
Sequence number of the message. Change it for each new message so that the injector can tell messages apart.
0–255, increasing
DPI_PID_index
16
Which SCTE-35 stream (program) of the injector the cue is for. DPI means "digital program insertion".
0
SCTE35_protocol_version
8
Version to write into the resulting SCTE-35 section.
0
timestamp
When the operations take effect, see below.
time_type 0
num_ops
8
Number of operations. On output it can be omitted: the number of <op> elements is used.
messageSize
16
Input only: message size in bytes, as read from the packet.
timestamp
time_type
Meaning
Child elements
0
No time: the operations refer to the frame that carries the message. This is the normal choice in VANC.
—
1
UTC time
UTC_seconds (32 bits), UTC_microseconds (16 bits)
2
SMPTE timecode
hours, minutes, seconds, frames (8 bits each)
3
A GPI trigger
GPI_number, GPI_edge (8 bits each)
op
Element
What it means
opID
The operation, decimal or 0x hexadecimal. See the list below.
data
Either an element with the operation name and its fields, or the operation payload as hexadecimal text.
data_length
Payload size in bytes. Present on input. On output it is optional and is only used to size the message.
General rules
Numbers are decimal; 0x hexadecimal values are accepted. Very large 64-bit values lose precision; give them as hexadecimal payload instead.
Give all fields of an operation in the order shown. Several operations check the number of their fields and are not written otherwise.
Any operation can be given as raw payload: <data>00010203</data>. The SDK adds the opID and length.
The XML read from an input is not ready for output: add the SCTE104 wrapper and use the output names listed under Input and output differences.
Operations
opID
Operation
What it asks for
0x0100 (256)
inject_section_data_request
Send a ready SCTE-35 command
0x0101 (257)
splice_request_data
Start or end a break (SCTE-35 splice_insert). The most used operation.
0x0102 (258)
splice_null_request_data
Send an empty cue (splice_null), used as a heartbeat
0x0103 (259)
start_schedule_download_request_data
Start sending a schedule of breaks
0x0104 (260)
time_signal_request_data
Mark a point in time (SCTE-35 time_signal), usually with a segmentation descriptor
0x0105 (261)
transmit_schedule_request_data
Transmit or cancel the downloaded schedule
0x0106 (262)
component_mode_DPI_request_data
Splice single streams (components) instead of the whole program
0x0107 (263)
encrypted_DPI_request_data
Encrypt the cue
0x0108 (264)
insert_descriptor_request_data
Add ready descriptors to the cue
0x0109 (265)
insert_DTMF_descriptor_request_data
Add a DTMF descriptor (analog cue tones)
0x010A (266)
insert_avail_descriptor_request_data
Add avail descriptors (IDs of ad slots)
0x010B (267)
insert_segmentation_descriptor_request_data
Add a segmentation descriptor: what kind of segment starts or ends
0x010C (268)
proprietary_command_request_data
Vendor-specific command
0x010D (269)
schedule_component_mode_request_data
Component times for a scheduled break
0x010E (270)
schedule_definition_data
One break of a schedule
0x010F (271)
insert_tier_data
Set the tier of the cue
0x0110 (272)
insert_time_descriptor
Add a time descriptor (TAI time)
0x0111 (273)
insert_audio_descriptor
Add an audio descriptor
0x0300 (768)
delete_ControlWord_data
Delete an encryption key
0x0301 (769)
update_ControlWord_data
Load encryption keys
The most common combinations are: splice_request_data alone for a classic break; time_signal_request_data
plus insert_segmentation_descriptor_request_data for segmentation (program start and end, ads, chapters).
0x0100 inject_section_data_request
Sends an SCTE-35 command that you have already encoded. The injector wraps it into a section.
Field
Bits
Meaning
SCTE35_command_length
16
Length of SCTE35_command_contents in bytes. Must match the content.
Asks for a break to start or end. The injector turns it into an SCTE-35 splice_insert.
Field
Bits
Meaning
splice_insert_type
8
1 – start a break after the pre-roll;
2 – start a break now;
3 – end the break (return to the program) after the pre-roll;
4 – end the break now;
5 – cancel the event with this splice_event_id.
splice_event_id
32
ID of the break. Use the same ID for its start and end, and a new ID for the next break.
unique_program_id
16
ID of the program the break belongs to.
pre_roll_time
16
Time from this message to the splice, in milliseconds. Downstream systems usually need 4000 or more. Ignored for types 2 and 4.
break_duration
16
Length of the break in tenths of a second (300 = 30 s). 0 if unknown.
avail_num
8
Number of this ad slot within the break, 0 if not used.
avails_expected
8
Total number of ad slots in the break, 0 if not used.
auto_return_flag
8
1 – return to the program automatically after break_duration; 0 – wait for an end message.
All 8 fields are required on output.
0x0102 splice_null_request_data
No fields. On output give the empty element: <data><splice_null_request_data/></data>.
0x0103 start_schedule_download_request_data
Field
Bits
Meaning
num_provider_avails
8
Number of the following IDs.
provider_avail_id (repeated)
32
ID of an ad slot defined by the program provider.
0x0104 time_signal_request_data
Marks a point in time. On its own it carries no meaning; add a segmentation descriptor to say what happens at that point.
Field
Bits
Meaning
pre-roll_time
16
Time from this message to the marked point, in milliseconds. Note the hyphen in the name.
0x0105 transmit_schedule_request_data
Field
Bits
Meaning
cancel
8
0 – transmit the downloaded schedule; 1 – cancel it.
0x0106 component_mode_DPI_request_data
Splices individual streams, for example only one audio track. On output list the pairs one after another:
Field
Bits
Meaning
component_tag
8
Tag of the stream (as in the stream identifier descriptor of the transport stream).
component_preroll
16
Pre-roll for this stream, in milliseconds.
0x0107 encrypted_DPI_request_data
Field
Bits
Meaning
encryption_algorithm
8
Encryption algorithm as defined in SCTE-35.
CW_index
8
Which control word (key) to use.
0x0108 insert_descriptor_request_data
Field
Bits
Meaning
descriptor_count
8
Number of descriptors.
descriptor_image (repeated)
A complete SCTE-35 splice descriptor as hexadecimal text.
0x0109 insert_DTMF_descriptor_request_data
Field
Bits
Meaning
pre-roll
8
Time before the splice when the tones start, in tenths of a second.
dtmf_length
8
Number of tone characters.
DTMF_char (repeated)
8
One character: 0–9, * or #.
0x010A insert_avail_descriptor_request_data
Field
Bits
Meaning
num_provider_avails
8
Number of the following IDs.
provider_avail_id (repeated)
32
ID of an ad slot, used by the ad server to pick the ads.
Describes a segment of the program: what it is (program, chapter, ad, placement opportunity), whether it starts or ends, and
its ID. Give all 18 fields on output.
Field
Bits
Meaning
segmentation_event_id
32
ID of the segmentation event.
segmentation_event_cancel_indicator
8
1 cancels the event with this ID; 0 otherwise.
duration
16
Length of the segment in seconds; 0 if not known.
segmentation_upid_type
8
Type of the segment ID (UPID), for example 0 – none, 3 – Ad-ID, 8 – TI, 9 – ADI, 12 – MPU, 15 – URI.
segmentation_upid_length
8
Length of the UPID in bytes.
segmentation_upid
The UPID. On output it is text: each character becomes one byte (for example an Ad-ID such as ABCD0001000H). On input it is shown as hexadecimal.
segmentation_type_id
8
What the segment is, for example 16/17 – program start/end, 34/35 – break start/end, 48/49 – provider ad start/end, 52/53 – provider placement opportunity start/end, 54/55 – distributor placement opportunity start/end.
segment_num
8
Number of this segment, starting from 1; 0 if not used.
segments_expected
8
Total number of segments; 0 if not used.
duration_extension_frames
8
Frames to add to duration for an exact length.
delivery_not_restricted_flag
8
1 – no delivery restrictions; the next four fields are then ignored.
web_delivery_allowed_flag
8
1 – the segment may be delivered over the internet.
no_regional_blackout_flag
8
1 – no regional blackout.
archive_allowed_flag
8
1 – the segment may be recorded.
device_restrictions
8
0–3, device groups as defined in SCTE-35; 3 – no restriction.
insert_sub_segment_info
8
1 – the next two fields are used.
sub_segment_num
8
Number of the sub-segment.
sub_segments_expected
8
Total number of sub-segments.
0x010C proprietary_command_request_data
Field
Bits
Meaning
proprietary_id
32
Registered identifier of the vendor.
proprietary_command
8
Vendor command.
proprietary_data
Command data as hexadecimal text.
0x010D schedule_component_mode_request_data
Pairs of the following elements, one after another:
Field
Bits
Meaning
component_tag
8
Tag of the stream.
time / seconds
32
Splice time of this stream, UTC seconds.
0x010E schedule_definition_data
One break of a schedule. All 8 fields are required.
Field
Bits
Meaning
splice_schedule_command
8
Type of the scheduled splice, as splice_insert_type.
splice_event_id
32
ID of the break.
time / seconds
32
Time of the splice, UTC seconds.
unique_program_id
16
ID of the program.
auto_return
8
1 – return automatically after the break.
break_duration
16
Length of the break in tenths of a second.
avail_num, avails_expected
8 each
Ad slot number and count.
0x010F insert_tier_data
Field
Bits
Meaning
tier_data
16
Tier value of the cue (12 bits are used). Receivers that are not authorized for this tier ignore the cue. 4095 means all.
0x0110 insert_time_descriptor
Field
Bits
Meaning
TAI_seconds
48
TAI time, seconds.
TAI_ns
32
TAI time, nanoseconds.
UTC_offset
16
Difference between TAI and UTC in seconds.
On output, add <data_length>12</data_length> to the <op> element so that the message size is correct.
0x0111 insert_audio_descriptor
Fields, repeated for each audio stream after audio_count (8 bits):
Field
Bits
Meaning
component_tag
8
Tag of the audio stream.
ISO_code
24
Language code, three ASCII letters as a number.
Bit_Stream_Mode
8
Audio service type (as in AC-3).
Num_Channels
8
Number of channels.
Full_Srvc_Audio
8
1 – a complete audio service.
On output, send this operation as raw payload (<data>hex</data>): the field form is not encoded correctly.
0x0300 delete_ControlWord_data and 0x0301 update_ControlWord_data
Field
Bits
Meaning
CW_index
8
Number of the control word (key).
CW_A, CW_B, CW_C
64 each
0x0301 only: the key values. Give 0x0301 as raw payload if the values do not fit into 53 bits.
Input and output differences
A few operations are shown differently in the XML read from an input than in the XML the SDK accepts for output:
Operation
Read from input
Write for output
All
No wrapper; messageSize, num_ops, data_length present