Skip to main content

SpliceInsert

NameTypeDescription
spliceEventIdintegerThe ID for the splice event.
spliceEventCancelIndicatorbooleanIn a broadcast, indicates whether a specific insertion has been cancelled.
outOfNetworkIndicatorbooleanTrue indicates cue-out from the network (the start of an ad). False indicates cue-in from the ad to the network.
programSpliceFlagbooleanSetting this flag to true indicates Program Splice Mode, where setting it to false indicates a Component Splice Mode.
uniqueProgramIdintegerA unique identifier for the viewing event.
availNumintegerAn identification for a specific avail within one Unique Program ID.
availsExpectedintegerThe count for the expected number of individual avails within the current viewing event. If this field is set to zero, then the availNum filed is ignored.
programobjectObject to specify the spliceTime of the Program.

Example spliceInsert

{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_folder"
},
"targets": [
{
"file_pattern": "{source_basename}_scte35.ts",
"existing_files": "replace",
"container": {
"kind": "mpegts",
"scte35": {
"write_scte35_packets": true,
"scte35_sections": [
{
"insertTime": 180000,
"spliceInfoSection": {
"spliceInsert": {
"spliceEventId": 8,
"program": {
"spliceTime": {
"ptsTime": 360000
}
}
}
}
}
]
}
},
"video": {
"codec": "mpeg2",
"width": 720,
"height": 480
},
"audio": [
{
"codec": "ac3",
"channels": 2,
"sample_rate": 48000,
"bitrate_kb": 224
}
]
}
]
}
}