Skip to content

MultiplexM2tsSettings

Source code in docs_src/capo_medialive/types/multiplex_m2ts_settings.py
class MultiplexM2tsSettings(TypedDict, closed=True):
    absent_input_audio_behavior: NotRequired[
        "capo_medialive.types.m2ts_absent_input_audio_behavior.M2tsAbsentInputAudioBehavior"
    ]
    """When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream."""
    arib: NotRequired["capo_medialive.types.m2ts_arib.M2tsArib"]
    """When set to enabled, uses ARIB-compliant field muxing and removes video descriptor."""
    audio_buffer_model: NotRequired[
        "capo_medialive.types.m2ts_audio_buffer_model.M2tsAudioBufferModel"
    ]
    """When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used."""
    audio_frames_per_pes: NotRequired[
        "capo_medialive.types.__integer_min0.__integerMin0"
    ]
    """The number of audio frames to insert for each PES packet."""
    audio_stream_type: NotRequired[
        "capo_medialive.types.m2ts_audio_stream_type.M2tsAudioStreamType"
    ]
    """When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06."""
    cc_descriptor: NotRequired[
        "capo_medialive.types.m2ts_cc_descriptor.M2tsCcDescriptor"
    ]
    """When set to enabled, generates captionServiceDescriptor in PMT."""
    ebif: NotRequired["capo_medialive.types.m2ts_ebif_control.M2tsEbifControl"]
    """If set to passthrough, passes any EBIF data from the input source to this output."""
    es_rate_in_pes: NotRequired[
        "capo_medialive.types.m2ts_es_rate_in_pes.M2tsEsRateInPes"
    ]
    """Include or exclude the ES Rate field in the PES header."""
    klv: NotRequired["capo_medialive.types.m2ts_klv.M2tsKlv"]
    """If set to passthrough, passes any KLV data from the input source to this output."""
    nielsen_id3_behavior: NotRequired[
        "capo_medialive.types.m2ts_nielsen_id3_behavior.M2tsNielsenId3Behavior"
    ]
    """If set to passthrough, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output."""
    pcr_control: NotRequired["capo_medialive.types.m2ts_pcr_control.M2tsPcrControl"]
    """When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream."""
    pcr_period: NotRequired[
        "capo_medialive.types.__integer_min0_max500.__integerMin0Max500"
    ]
    """Maximum time in milliseconds between Program Clock Reference (PCRs) inserted into the transport stream."""
    scte35_control: NotRequired[
        "capo_medialive.types.m2ts_scte35_control.M2tsScte35Control"
    ]
    """SCTE-35 control. Option "none" indicates that a SCTE-35 marker will not be inserted, nor will an IDR be inserted at the SCTE-35 cue point, nor will the segment be segmented. Option "scte35WithoutIdr" indicates that a SCTE-35 marker will be inserted to indicate the cue point, but MediaLive will not insert an IDR on that frame nor will it introduce a new segment boundary there if it wasn't already going to be one (this option is required for use with downstream multiview bitstream stitching workflows). Option "passthrough" indicates that a SCTE-35 marker will be inserted to indicate the cue point, and an IDR will be inserted on that frame, and MediaLive itself will introduce a new segment boundary there."""
    scte35_preroll_pullup_milliseconds: NotRequired[
        "capo_medialive.types.__double_min0_max5000.__doubleMin0Max5000"
    ]
    """Defines the amount SCTE-35 preroll will be increased (in milliseconds) on the output. Preroll is the amount of time between the presence of a SCTE-35 indication in a transport stream and the PTS of the video frame it references. Zero means don't add pullup (it doesn't mean set the preroll to zero). Negative pullup is not supported, which means that you can't make the preroll shorter. Be aware that latency in the output will increase by the pullup amount."""

absent_input_audio_behavior instance-attribute

absent_input_audio_behavior: NotRequired[M2tsAbsentInputAudioBehavior]

When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream.

arib instance-attribute

arib: NotRequired[M2tsArib]

When set to enabled, uses ARIB-compliant field muxing and removes video descriptor.

audio_buffer_model instance-attribute

audio_buffer_model: NotRequired[M2tsAudioBufferModel]

When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used.

audio_frames_per_pes instance-attribute

audio_frames_per_pes: NotRequired[__integerMin0]

The number of audio frames to insert for each PES packet.

audio_stream_type instance-attribute

audio_stream_type: NotRequired[M2tsAudioStreamType]

When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06.

cc_descriptor instance-attribute

cc_descriptor: NotRequired[M2tsCcDescriptor]

When set to enabled, generates captionServiceDescriptor in PMT.

ebif instance-attribute

ebif: NotRequired[M2tsEbifControl]

If set to passthrough, passes any EBIF data from the input source to this output.

es_rate_in_pes instance-attribute

es_rate_in_pes: NotRequired[M2tsEsRateInPes]

Include or exclude the ES Rate field in the PES header.

klv instance-attribute

klv: NotRequired[M2tsKlv]

If set to passthrough, passes any KLV data from the input source to this output.

nielsen_id3_behavior instance-attribute

nielsen_id3_behavior: NotRequired[M2tsNielsenId3Behavior]

If set to passthrough, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.

pcr_control instance-attribute

pcr_control: NotRequired[M2tsPcrControl]

When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream.

pcr_period instance-attribute

pcr_period: NotRequired[__integerMin0Max500]

Maximum time in milliseconds between Program Clock Reference (PCRs) inserted into the transport stream.

scte35_control instance-attribute

scte35_control: NotRequired[M2tsScte35Control]

SCTE-35 control. Option "none" indicates that a SCTE-35 marker will not be inserted, nor will an IDR be inserted at the SCTE-35 cue point, nor will the segment be segmented. Option "scte35WithoutIdr" indicates that a SCTE-35 marker will be inserted to indicate the cue point, but MediaLive will not insert an IDR on that frame nor will it introduce a new segment boundary there if it wasn't already going to be one (this option is required for use with downstream multiview bitstream stitching workflows). Option "passthrough" indicates that a SCTE-35 marker will be inserted to indicate the cue point, and an IDR will be inserted on that frame, and MediaLive itself will introduce a new segment boundary there.

scte35_preroll_pullup_milliseconds instance-attribute

scte35_preroll_pullup_milliseconds: NotRequired[__doubleMin0Max5000]

Defines the amount SCTE-35 preroll will be increased (in milliseconds) on the output. Preroll is the amount of time between the presence of a SCTE-35 indication in a transport stream and the PTS of the video frame it references. Zero means don't add pullup (it doesn't mean set the preroll to zero). Negative pullup is not supported, which means that you can't make the preroll shorter. Be aware that latency in the output will increase by the pullup amount.