Skip to content

M2tsSettings

Source code in docs_src/capo_medialive/types/m2ts_settings.py
class M2tsSettings(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."""
    arib_captions_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for ARIB Captions in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    arib_captions_pid_control: NotRequired[
        "capo_medialive.types.m2ts_arib_captions_pid_control.M2tsAribCaptionsPidControl"
    ]
    """If set to auto, pid number used for ARIB Captions will be auto-selected from unused pids. If set to useConfigured, ARIB Captions will be on the configured pid number."""
    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_pids: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6)."""
    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."""
    bitrate: NotRequired["capo_medialive.types.__integer_min0.__integerMin0"]
    """The output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate."""
    buffer_model: NotRequired["capo_medialive.types.m2ts_buffer_model.M2tsBufferModel"]
    """Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to ensure accurate network packet timing. Or set to NONE, which might result in lower latency but will result in more variability in output network packet timing. This variability might cause interruptions, jitter, or bursty behavior in your playback or receiving devices."""
    cc_descriptor: NotRequired[
        "capo_medialive.types.m2ts_cc_descriptor.M2tsCcDescriptor"
    ]
    """When set to enabled, generates captionServiceDescriptor in PMT."""
    dvb_nit_settings: NotRequired[
        "capo_medialive.types.dvb_nit_settings.DvbNitSettings"
    ]
    """Inserts DVB Network Information Table (NIT) at the specified table repetition interval."""
    dvb_sdt_settings: NotRequired[
        "capo_medialive.types.dvb_sdt_settings.DvbSdtSettings"
    ]
    """Inserts DVB Service Description Table (SDT) at the specified table repetition interval."""
    dvb_sub_pids: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for input source DVB Subtitle data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6)."""
    dvb_tdt_settings: NotRequired[
        "capo_medialive.types.dvb_tdt_settings.DvbTdtSettings"
    ]
    """Inserts DVB Time and Date Table (TDT) at the specified table repetition interval."""
    dvb_teletext_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for input source DVB Teletext data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    ebif: NotRequired["capo_medialive.types.m2ts_ebif_control.M2tsEbifControl"]
    """If set to passthrough, passes any EBIF data from the input source to this output."""
    ebp_audio_interval: NotRequired[
        "capo_medialive.types.m2ts_audio_interval.M2tsAudioInterval"
    ]
    """When videoAndFixedIntervals is selected, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. Only available when EBP Cablelabs segmentation markers are selected. Partitions 1 and 2 will always follow the video interval."""
    ebp_lookahead_ms: NotRequired[
        "capo_medialive.types.__integer_min0_max10000.__integerMin0Max10000"
    ]
    """When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate."""
    ebp_placement: NotRequired[
        "capo_medialive.types.m2ts_ebp_placement.M2tsEbpPlacement"
    ]
    """Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP markers will be placed on the video PID and all audio PIDs. If set to videoPid, EBP markers will be placed on only the video PID."""
    ecm_pid: NotRequired["capo_medialive.types.__string.__string"]
    """This field is unused and deprecated."""
    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."""
    etv_platform_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for input source ETV Platform data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    etv_signal_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for input source ETV Signal data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    fragment_time: NotRequired["capo_medialive.types.__double_min0.__doubleMin0"]
    """The length in seconds of each fragment. Only used with EBP markers."""
    klv: NotRequired["capo_medialive.types.m2ts_klv.M2tsKlv"]
    """If set to passthrough, passes any KLV data from the input source to this output."""
    klv_data_pids: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for input source KLV data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6)."""
    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."""
    null_packet_bitrate: NotRequired["capo_medialive.types.__double_min0.__doubleMin0"]
    """Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets."""
    pat_interval: NotRequired[
        "capo_medialive.types.__integer_min0_max1000.__integerMin0Max1000"
    ]
    """The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000."""
    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."""
    pcr_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    pmt_interval: NotRequired[
        "capo_medialive.types.__integer_min0_max1000.__integerMin0Max1000"
    ]
    """The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000."""
    pmt_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    program_num: NotRequired[
        "capo_medialive.types.__integer_min0_max65535.__integerMin0Max65535"
    ]
    """The value of the program number field in the Program Map Table."""
    rate_mode: NotRequired["capo_medialive.types.m2ts_rate_mode.M2tsRateMode"]
    """When vbr, does not insert null packets into transport stream to fill specified bitrate. The bitrate setting acts as the maximum bitrate when vbr is set."""
    scte27_pids: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) for input source SCTE-27 data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6)."""
    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_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) of the SCTE-35 stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    segmentation_markers: NotRequired[
        "capo_medialive.types.m2ts_segmentation_markers.M2tsSegmentationMarkers"
    ]
    """Inserts segmentation markers at each segmentationTime period. raiSegstart sets the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI bit and adds the current timecode in the private data bytes. psiSegstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebpLegacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format."""
    segmentation_style: NotRequired[
        "capo_medialive.types.m2ts_segmentation_style.M2tsSegmentationStyle"
    ]
    """The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "resetCadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of $segmentationTime seconds. When a segmentation style of "maintainCadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentationTime seconds. Note that EBP lookahead is a slight exception to this rule."""
    segmentation_time: NotRequired["capo_medialive.types.__double_min1.__doubleMin1"]
    """The length in seconds of each segment. Required unless markers is set to _none_."""
    timed_metadata_behavior: NotRequired[
        "capo_medialive.types.m2ts_timed_metadata_behavior.M2tsTimedMetadataBehavior"
    ]
    """When set to passthrough, timed metadata will be passed through from input to output."""
    timed_metadata_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) of the timed metadata stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    transport_stream_id: NotRequired[
        "capo_medialive.types.__integer_min0_max65535.__integerMin0Max65535"
    ]
    """The value of the transport stream ID field in the Program Map Table."""
    video_pid: NotRequired["capo_medialive.types.__string.__string"]
    """Packet Identifier (PID) of the elementary video stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6)."""
    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.

arib_captions_pid instance-attribute

arib_captions_pid: NotRequired[__string]

Packet Identifier (PID) for ARIB Captions in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

arib_captions_pid_control instance-attribute

arib_captions_pid_control: NotRequired[M2tsAribCaptionsPidControl]

If set to auto, pid number used for ARIB Captions will be auto-selected from unused pids. If set to useConfigured, ARIB Captions will be on the configured pid number.

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_pids instance-attribute

audio_pids: NotRequired[__string]

Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).

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.

bitrate instance-attribute

bitrate: NotRequired[__integerMin0]

The output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate.

buffer_model instance-attribute

buffer_model: NotRequired[M2tsBufferModel]

Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to ensure accurate network packet timing. Or set to NONE, which might result in lower latency but will result in more variability in output network packet timing. This variability might cause interruptions, jitter, or bursty behavior in your playback or receiving devices.

cc_descriptor instance-attribute

cc_descriptor: NotRequired[M2tsCcDescriptor]

When set to enabled, generates captionServiceDescriptor in PMT.

dvb_nit_settings instance-attribute

dvb_nit_settings: NotRequired[DvbNitSettings]

Inserts DVB Network Information Table (NIT) at the specified table repetition interval.

dvb_sdt_settings instance-attribute

dvb_sdt_settings: NotRequired[DvbSdtSettings]

Inserts DVB Service Description Table (SDT) at the specified table repetition interval.

dvb_sub_pids instance-attribute

dvb_sub_pids: NotRequired[__string]

Packet Identifier (PID) for input source DVB Subtitle data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).

dvb_tdt_settings instance-attribute

dvb_tdt_settings: NotRequired[DvbTdtSettings]

Inserts DVB Time and Date Table (TDT) at the specified table repetition interval.

dvb_teletext_pid instance-attribute

dvb_teletext_pid: NotRequired[__string]

Packet Identifier (PID) for input source DVB Teletext data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

ebif instance-attribute

ebif: NotRequired[M2tsEbifControl]

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

ebp_audio_interval instance-attribute

ebp_audio_interval: NotRequired[M2tsAudioInterval]

When videoAndFixedIntervals is selected, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. Only available when EBP Cablelabs segmentation markers are selected. Partitions 1 and 2 will always follow the video interval.

ebp_lookahead_ms instance-attribute

ebp_lookahead_ms: NotRequired[__integerMin0Max10000]

When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate.

ebp_placement instance-attribute

ebp_placement: NotRequired[M2tsEbpPlacement]

Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP markers will be placed on the video PID and all audio PIDs. If set to videoPid, EBP markers will be placed on only the video PID.

ecm_pid instance-attribute

ecm_pid: NotRequired[__string]

This field is unused and deprecated.

es_rate_in_pes instance-attribute

es_rate_in_pes: NotRequired[M2tsEsRateInPes]

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

etv_platform_pid instance-attribute

etv_platform_pid: NotRequired[__string]

Packet Identifier (PID) for input source ETV Platform data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

etv_signal_pid instance-attribute

etv_signal_pid: NotRequired[__string]

Packet Identifier (PID) for input source ETV Signal data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

fragment_time instance-attribute

fragment_time: NotRequired[__doubleMin0]

The length in seconds of each fragment. Only used with EBP markers.

klv instance-attribute

klv: NotRequired[M2tsKlv]

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

klv_data_pids instance-attribute

klv_data_pids: NotRequired[__string]

Packet Identifier (PID) for input source KLV data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).

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.

null_packet_bitrate instance-attribute

null_packet_bitrate: NotRequired[__doubleMin0]

Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets.

pat_interval instance-attribute

pat_interval: NotRequired[__integerMin0Max1000]

The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000.

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.

pcr_pid instance-attribute

pcr_pid: NotRequired[__string]

Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

pmt_interval instance-attribute

pmt_interval: NotRequired[__integerMin0Max1000]

The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000.

pmt_pid instance-attribute

pmt_pid: NotRequired[__string]

Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

program_num instance-attribute

program_num: NotRequired[__integerMin0Max65535]

The value of the program number field in the Program Map Table.

rate_mode instance-attribute

rate_mode: NotRequired[M2tsRateMode]

When vbr, does not insert null packets into transport stream to fill specified bitrate. The bitrate setting acts as the maximum bitrate when vbr is set.

scte27_pids instance-attribute

scte27_pids: NotRequired[__string]

Packet Identifier (PID) for input source SCTE-27 data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).

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_pid instance-attribute

scte35_pid: NotRequired[__string]

Packet Identifier (PID) of the SCTE-35 stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

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.

segmentation_markers instance-attribute

segmentation_markers: NotRequired[M2tsSegmentationMarkers]

Inserts segmentation markers at each segmentationTime period. raiSegstart sets the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI bit and adds the current timecode in the private data bytes. psiSegstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebpLegacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.

segmentation_style instance-attribute

segmentation_style: NotRequired[M2tsSegmentationStyle]

The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "resetCadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of $segmentationTime seconds. When a segmentation style of "maintainCadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentationTime seconds. Note that EBP lookahead is a slight exception to this rule.

segmentation_time instance-attribute

segmentation_time: NotRequired[__doubleMin1]

The length in seconds of each segment. Required unless markers is set to none.

timed_metadata_behavior instance-attribute

timed_metadata_behavior: NotRequired[M2tsTimedMetadataBehavior]

When set to passthrough, timed metadata will be passed through from input to output.

timed_metadata_pid instance-attribute

timed_metadata_pid: NotRequired[__string]

Packet Identifier (PID) of the timed metadata stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).

transport_stream_id instance-attribute

transport_stream_id: NotRequired[__integerMin0Max65535]

The value of the transport stream ID field in the Program Map Table.

video_pid instance-attribute

video_pid: NotRequired[__string]

Packet Identifier (PID) of the elementary video stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).