Skip to content
v2.273.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

M2tsSettingsProps Struct ​

Properties for MPEG-2 transport stream (M2TS) container settings.

Used by the UDP, Archive, SRT, and MediaConnect Router output groups. All properties are optional; omit them to use MediaLive's service defaults.

PID properties accept a decimal or hexadecimal value (and, where noted, ranges or comma-separated lists). Each PID must be in the range 32 (0x20)..8182 (0x1ff6).

Example ​

ts
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;

medialive.OutputGroupConfiguration.udp({
  name: 'udp_out',
  destinations: [medialive.UdpOutputDestination.udp({ address: '203.0.113.5', port: 5000 })],
  outputs: [{
    encodes: [video, audio],
    outputName: 'ts',
    m2tsSettings: medialive.M2tsSettings.of({
      bitrate: Bitrate.mbps(8),
      rateMode: medialive.M2tsRateMode.VBR,
      programNum: 1,
      patInterval: Duration.millis(100),
      pmtInterval: Duration.millis(100),
      scte35Control: medialive.M2tsScte35Control.PASSTHROUGH,
      dvbSdtSettings: {
        outputSdt: medialive.DvbSdtOutputMode.SDT_MANUAL,
        serviceName: 'My Service',
        repInterval: Duration.millis(2000),
      },
    }),
  }],
});

Properties ​

absentInputAudioBehaviorM2tsAbsentInputAudioBehaviorabsent_input_audio_behaviorM2tsAbsentInputAudioBehaviorabsentInputAudioBehaviorM2tsAbsentInputAudioBehaviorAbsentInputAudioBehaviorM2tsAbsentInputAudioBehaviorAbsentInputAudioBehaviorM2tsAbsentInputAudioBehavior= service default#
Behavior when the selected input audio stream is removed.
aribM2tsAribaribM2tsAribaribM2tsAribAribM2tsAribAribM2tsArib= service default#
ARIB-compliant field muxing.
aribCaptionsPidstringarib_captions_pidstraribCaptionsPidStringAribCaptionsPidstringAribCaptionsPid*string= service default#
The PID for ARIB Captions.
aribCaptionsPidControlM2tsAribCaptionsPidControlarib_captions_pid_controlM2tsAribCaptionsPidControlaribCaptionsPidControlM2tsAribCaptionsPidControlAribCaptionsPidControlM2tsAribCaptionsPidControlAribCaptionsPidControlM2tsAribCaptionsPidControl= service default#
How the ARIB Captions PID is selected.
audioBufferModelM2tsAudioBufferModelaudio_buffer_modelM2tsAudioBufferModelaudioBufferModelM2tsAudioBufferModelAudioBufferModelM2tsAudioBufferModelAudioBufferModelM2tsAudioBufferModel= service default#
The buffer model for Dolby Digital audio.
audioFramesPerPesnumberaudio_frames_per_pesint | floataudioFramesPerPesNumberAudioFramesPerPesdoubleAudioFramesPerPes*float64= service default#
The number of audio frames to insert per PES packet.
audioPidsstringaudio_pidsstraudioPidsStringAudioPidsstringAudioPids*string= service default#
The PID(s) of the elementary audio streams (ranges/comma-separated allowed).
audioStreamTypeM2tsAudioStreamTypeaudio_stream_typeM2tsAudioStreamTypeaudioStreamTypeM2tsAudioStreamTypeAudioStreamTypeM2tsAudioStreamTypeAudioStreamTypeM2tsAudioStreamType= service default#
The stream type used for audio elementary streams.
bitrateBitratebitrateBitratebitrateBitrateBitrateBitrateBitrateBitrate= muxer chooses#
The output bitrate of the transport stream.

Set to 0 bps to let the muxer choose.

bufferModelM2tsBufferModelbuffer_modelM2tsBufferModelbufferModelM2tsBufferModelBufferModelM2tsBufferModelBufferModelM2tsBufferModel= service default#
The transport stream buffer model.
ccDescriptorM2tsCcDescriptorcc_descriptorM2tsCcDescriptorccDescriptorM2tsCcDescriptorCcDescriptorM2tsCcDescriptorCcDescriptorM2tsCcDescriptor= service default#
Whether to generate the captionServiceDescriptor in the PMT.
dvbNitSettingsDvbNitSettingsdvb_nit_settingsDvbNitSettingsdvbNitSettingsDvbNitSettingsDvbNitSettingsDvbNitSettingsDvbNitSettingsDvbNitSettings= no NIT#
DVB Network Information Table (NIT) settings.
dvbSdtSettingsDvbSdtSettingsdvb_sdt_settingsDvbSdtSettingsdvbSdtSettingsDvbSdtSettingsDvbSdtSettingsDvbSdtSettingsDvbSdtSettingsDvbSdtSettings= no SDT#
DVB Service Description Table (SDT) settings.
dvbSubPidsstringdvb_sub_pidsstrdvbSubPidsStringDvbSubPidsstringDvbSubPids*string= service default#
The PID(s) for input source DVB Subtitle data (ranges/comma-separated allowed).
dvbTdtSettingsDvbTdtSettingsdvb_tdt_settingsDvbTdtSettingsdvbTdtSettingsDvbTdtSettingsDvbTdtSettingsDvbTdtSettingsDvbTdtSettingsDvbTdtSettings= no TDT#
DVB Time and Date Table (TDT) settings.
dvbTeletextPidstringdvb_teletext_pidstrdvbTeletextPidStringDvbTeletextPidstringDvbTeletextPid*string= service default#
The PID for input source DVB Teletext data.
ebifM2tsEbifebifM2tsEbifebifM2tsEbifEbifM2tsEbifEbifM2tsEbif= service default#
EBIF data passthrough behavior.
ebpAudioIntervalM2tsEbpAudioIntervalebp_audio_intervalM2tsEbpAudioIntervalebpAudioIntervalM2tsEbpAudioIntervalEbpAudioIntervalM2tsEbpAudioIntervalEbpAudioIntervalM2tsEbpAudioInterval= service default#
Placement of audio EBP markers.
ebpLookaheadDurationebp_lookaheadDurationebpLookaheadDurationEbpLookaheadDurationEbpLookaheadDuration= service default#
The EBP lookahead interval.
ebpPlacementM2tsEbpPlacementebp_placementM2tsEbpPlacementebpPlacementM2tsEbpPlacementEbpPlacementM2tsEbpPlacementEbpPlacementM2tsEbpPlacement= service default#
Placement of EBP markers on audio PIDs.
esRateInPesM2tsEsRateInPeses_rate_in_pesM2tsEsRateInPesesRateInPesM2tsEsRateInPesEsRateInPesM2tsEsRateInPesEsRateInPesM2tsEsRateInPes= service default#
Whether to include the ES Rate field in the PES header.
etvPlatformPidstringetv_platform_pidstretvPlatformPidStringEtvPlatformPidstringEtvPlatformPid*string= service default#
The PID for input source ETV Platform data.
etvSignalPidstringetv_signal_pidstretvSignalPidStringEtvSignalPidstringEtvSignalPid*string= service default#
The PID for input source ETV Signal data.
fragmentTimeDurationfragment_timeDurationfragmentTimeDurationFragmentTimeDurationFragmentTimeDuration= service default#
The length of each fragment (used only with EBP markers).
klvM2tsKlvklvM2tsKlvklvM2tsKlvKlvM2tsKlvKlvM2tsKlv= service default#
KLV data passthrough behavior.
klvDataPidsstringklv_data_pidsstrklvDataPidsStringKlvDataPidsstringKlvDataPids*string= service default#
The PID(s) for input source KLV data (ranges/comma-separated allowed).
nielsenId3BehaviorM2tsNielsenId3Behaviornielsen_id3_behaviorM2tsNielsenId3BehaviornielsenId3BehaviorM2tsNielsenId3BehaviorNielsenId3BehaviorM2tsNielsenId3BehaviorNielsenId3BehaviorM2tsNielsenId3Behavior= service default#
Nielsen ID3 passthrough behavior.
nullPacketBitrateBitratenull_packet_bitrateBitratenullPacketBitrateBitrateNullPacketBitrateBitrateNullPacketBitrateBitrate= no null packets#
The bitrate of extra null packets to insert into the transport stream.
patIntervalDurationpat_intervalDurationpatIntervalDurationPatIntervalDurationPatIntervalDuration= service default#
The interval between PAT instances (0, or 10ms..1000ms).
pcrControlM2tsPcrControlpcr_controlM2tsPcrControlpcrControlM2tsPcrControlPcrControlM2tsPcrControlPcrControlM2tsPcrControl= service default#
Controls insertion of the Program Clock Reference (PCR).
pcrPeriodDurationpcr_periodDurationpcrPeriodDurationPcrPeriodDurationPcrPeriodDuration= service default#
The maximum interval between Program Clock References (PCRs).
pcrPidstringpcr_pidstrpcrPidStringPcrPidstringPcrPid*string= same as the video PID#
The PID of the Program Clock Reference.
pmtIntervalDurationpmt_intervalDurationpmtIntervalDurationPmtIntervalDurationPmtIntervalDuration= service default#
The interval between PMT instances (0, or 10ms..1000ms).
pmtPidstringpmt_pidstrpmtPidStringPmtPidstringPmtPid*string= service default#
The PID for the Program Map Table (PMT).
programNumnumberprogram_numint | floatprogramNumNumberProgramNumdoubleProgramNum*float64= service default#
The value of the program number field in the PMT.
rateModeM2tsRateModerate_modeM2tsRateModerateModeM2tsRateModeRateModeM2tsRateModeRateModeM2tsRateMode= service default#
The transport stream bitrate mode (CBR/VBR).
scte27Pidsstringscte27_pidsstrscte27PidsStringScte27PidsstringScte27Pids*string= service default#
The PID(s) for input source SCTE-27 data (ranges/comma-separated allowed).
scte35ControlM2tsScte35Controlscte35_controlM2tsScte35Controlscte35ControlM2tsScte35ControlScte35ControlM2tsScte35ControlScte35ControlM2tsScte35Control= service default#
SCTE-35 passthrough behavior.
scte35Pidstringscte35_pidstrscte35PidStringScte35PidstringScte35Pid*string= service default#
The PID of the SCTE-35 stream.
scte35PrerollPullupDurationscte35_preroll_pullupDurationscte35PrerollPullupDurationScte35PrerollPullupDurationScte35PrerollPullupDuration= service default#
The SCTE-35 preroll pullup interval.
segmentationMarkersM2tsSegmentationMarkerssegmentation_markersM2tsSegmentationMarkerssegmentationMarkersM2tsSegmentationMarkersSegmentationMarkersM2tsSegmentationMarkersSegmentationMarkersM2tsSegmentationMarkers= service default#
The type of segmentation markers to insert.
segmentationStyleM2tsSegmentationStylesegmentation_styleM2tsSegmentationStylesegmentationStyleM2tsSegmentationStyleSegmentationStyleM2tsSegmentationStyleSegmentationStyleM2tsSegmentationStyle= service default#
How segmentation markers respond to avails.
segmentationTimeDurationsegmentation_timeDurationsegmentationTimeDurationSegmentationTimeDurationSegmentationTimeDuration= service default#
The length of each segment (required unless `segmentationMarkers` is NONE).
timedMetadataBehaviorM2tsTimedMetadataBehaviortimed_metadata_behaviorM2tsTimedMetadataBehaviortimedMetadataBehaviorM2tsTimedMetadataBehaviorTimedMetadataBehaviorM2tsTimedMetadataBehaviorTimedMetadataBehaviorM2tsTimedMetadataBehavior= service default#
Timed metadata passthrough behavior.
timedMetadataPidstringtimed_metadata_pidstrtimedMetadataPidStringTimedMetadataPidstringTimedMetadataPid*string= service default#
The PID of the timed metadata stream.
transportStreamIdnumbertransport_stream_idint | floattransportStreamIdNumberTransportStreamIddoubleTransportStreamId*float64= service default#
The value of the transport stream ID field in the PMT.
videoPidstringvideo_pidstrvideoPidStringVideoPidstringVideoPid*string= service default#
The PID of the elementary video stream.