interface M2tsSettingsProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.M2tsSettingsProps |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#M2tsSettingsProps |
Java | software.amazon.awscdk.services.medialive.alpha.M2tsSettingsProps |
Python | aws_cdk.aws_medialive_alpha.M2tsSettingsProps |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป M2tsSettingsProps |
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
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
| Name | Type | Description |
|---|---|---|
| absent | M2ts | Behavior when the selected input audio stream is removed. |
| arib? | M2ts | ARIB-compliant field muxing. |
| arib | string | The PID for ARIB Captions. |
| arib | M2ts | How the ARIB Captions PID is selected. |
| audio | M2ts | The buffer model for Dolby Digital audio. |
| audio | number | The number of audio frames to insert per PES packet. |
| audio | string | The PID(s) of the elementary audio streams (ranges/comma-separated allowed). |
| audio | M2ts | The stream type used for audio elementary streams. |
| bitrate? | Bitrate | The output bitrate of the transport stream. |
| buffer | M2ts | The transport stream buffer model. |
| cc | M2ts | Whether to generate the captionServiceDescriptor in the PMT. |
| dvb | Dvb | DVB Network Information Table (NIT) settings. |
| dvb | Dvb | DVB Service Description Table (SDT) settings. |
| dvb | string | The PID(s) for input source DVB Subtitle data (ranges/comma-separated allowed). |
| dvb | Dvb | DVB Time and Date Table (TDT) settings. |
| dvb | string | The PID for input source DVB Teletext data. |
| ebif? | M2ts | EBIF data passthrough behavior. |
| ebp | M2ts | Placement of audio EBP markers. |
| ebp | Duration | The EBP lookahead interval. |
| ebp | M2ts | Placement of EBP markers on audio PIDs. |
| es | M2ts | Whether to include the ES Rate field in the PES header. |
| etv | string | The PID for input source ETV Platform data. |
| etv | string | The PID for input source ETV Signal data. |
| fragment | Duration | The length of each fragment (used only with EBP markers). |
| klv? | M2ts | KLV data passthrough behavior. |
| klv | string | The PID(s) for input source KLV data (ranges/comma-separated allowed). |
| nielsen | M2ts | Nielsen ID3 passthrough behavior. |
| null | Bitrate | The bitrate of extra null packets to insert into the transport stream. |
| pat | Duration | The interval between PAT instances (0, or 10ms..1000ms). |
| pcr | M2ts | Controls insertion of the Program Clock Reference (PCR). |
| pcr | Duration | The maximum interval between Program Clock References (PCRs). |
| pcr | string | The PID of the Program Clock Reference. |
| pmt | Duration | The interval between PMT instances (0, or 10ms..1000ms). |
| pmt | string | The PID for the Program Map Table (PMT). |
| program | number | The value of the program number field in the PMT. |
| rate | M2ts | The transport stream bitrate mode (CBR/VBR). |
| scte27 | string | The PID(s) for input source SCTE-27 data (ranges/comma-separated allowed). |
| scte35 | M2ts | SCTE-35 passthrough behavior. |
| scte35 | string | The PID of the SCTE-35 stream. |
| scte35 | Duration | The SCTE-35 preroll pullup interval. |
| segmentation | M2ts | The type of segmentation markers to insert. |
| segmentation | M2ts | How segmentation markers respond to avails. |
| segmentation | Duration | The length of each segment (required unless segmentationMarkers is NONE). |
| timed | M2ts | Timed metadata passthrough behavior. |
| timed | string | The PID of the timed metadata stream. |
| transport | number | The value of the transport stream ID field in the PMT. |
| video | string | The PID of the elementary video stream. |
absentInputAudioBehavior?
Type:
M2ts
(optional, default: service default)
Behavior when the selected input audio stream is removed.
arib?
Type:
M2ts
(optional, default: service default)
ARIB-compliant field muxing.
aribCaptionsPid?
Type:
string
(optional, default: service default)
The PID for ARIB Captions.
aribCaptionsPidControl?
Type:
M2ts
(optional, default: service default)
How the ARIB Captions PID is selected.
audioBufferModel?
Type:
M2ts
(optional, default: service default)
The buffer model for Dolby Digital audio.
audioFramesPerPes?
Type:
number
(optional, default: service default)
The number of audio frames to insert per PES packet.
audioPids?
Type:
string
(optional, default: service default)
The PID(s) of the elementary audio streams (ranges/comma-separated allowed).
audioStreamType?
Type:
M2ts
(optional, default: service default)
The stream type used for audio elementary streams.
bitrate?
Type:
Bitrate
(optional, default: muxer chooses)
The output bitrate of the transport stream.
Set to 0 bps to let the muxer choose.
bufferModel?
Type:
M2ts
(optional, default: service default)
The transport stream buffer model.
ccDescriptor?
Type:
M2ts
(optional, default: service default)
Whether to generate the captionServiceDescriptor in the PMT.
dvbNitSettings?
Type:
Dvb
(optional, default: no NIT)
DVB Network Information Table (NIT) settings.
dvbSdtSettings?
Type:
Dvb
(optional, default: no SDT)
DVB Service Description Table (SDT) settings.
dvbSubPids?
Type:
string
(optional, default: service default)
The PID(s) for input source DVB Subtitle data (ranges/comma-separated allowed).
dvbTdtSettings?
Type:
Dvb
(optional, default: no TDT)
DVB Time and Date Table (TDT) settings.
dvbTeletextPid?
Type:
string
(optional, default: service default)
The PID for input source DVB Teletext data.
ebif?
Type:
M2ts
(optional, default: service default)
EBIF data passthrough behavior.
ebpAudioInterval?
Type:
M2ts
(optional, default: service default)
Placement of audio EBP markers.
ebpLookahead?
Type:
Duration
(optional, default: service default)
The EBP lookahead interval.
ebpPlacement?
Type:
M2ts
(optional, default: service default)
Placement of EBP markers on audio PIDs.
esRateInPes?
Type:
M2ts
(optional, default: service default)
Whether to include the ES Rate field in the PES header.
etvPlatformPid?
Type:
string
(optional, default: service default)
The PID for input source ETV Platform data.
etvSignalPid?
Type:
string
(optional, default: service default)
The PID for input source ETV Signal data.
fragmentTime?
Type:
Duration
(optional, default: service default)
The length of each fragment (used only with EBP markers).
klv?
Type:
M2ts
(optional, default: service default)
KLV data passthrough behavior.
klvDataPids?
Type:
string
(optional, default: service default)
The PID(s) for input source KLV data (ranges/comma-separated allowed).
nielsenId3Behavior?
Type:
M2ts
(optional, default: service default)
Nielsen ID3 passthrough behavior.
nullPacketBitrate?
Type:
Bitrate
(optional, default: no null packets)
The bitrate of extra null packets to insert into the transport stream.
patInterval?
Type:
Duration
(optional, default: service default)
The interval between PAT instances (0, or 10ms..1000ms).
pcrControl?
Type:
M2ts
(optional, default: service default)
Controls insertion of the Program Clock Reference (PCR).
pcrPeriod?
Type:
Duration
(optional, default: service default)
The maximum interval between Program Clock References (PCRs).
pcrPid?
Type:
string
(optional, default: same as the video PID)
The PID of the Program Clock Reference.
pmtInterval?
Type:
Duration
(optional, default: service default)
The interval between PMT instances (0, or 10ms..1000ms).
pmtPid?
Type:
string
(optional, default: service default)
The PID for the Program Map Table (PMT).
programNum?
Type:
number
(optional, default: service default)
The value of the program number field in the PMT.
rateMode?
Type:
M2ts
(optional, default: service default)
The transport stream bitrate mode (CBR/VBR).
scte27Pids?
Type:
string
(optional, default: service default)
The PID(s) for input source SCTE-27 data (ranges/comma-separated allowed).
scte35Control?
Type:
M2ts
(optional, default: service default)
SCTE-35 passthrough behavior.
scte35Pid?
Type:
string
(optional, default: service default)
The PID of the SCTE-35 stream.
scte35PrerollPullup?
Type:
Duration
(optional, default: service default)
The SCTE-35 preroll pullup interval.
segmentationMarkers?
Type:
M2ts
(optional, default: service default)
The type of segmentation markers to insert.
segmentationStyle?
Type:
M2ts
(optional, default: service default)
How segmentation markers respond to avails.
segmentationTime?
Type:
Duration
(optional, default: service default)
The length of each segment (required unless segmentationMarkers is NONE).
timedMetadataBehavior?
Type:
M2ts
(optional, default: service default)
Timed metadata passthrough behavior.
timedMetadataPid?
Type:
string
(optional, default: service default)
The PID of the timed metadata stream.
transportStreamId?
Type:
number
(optional, default: service default)
The value of the transport stream ID field in the PMT.
videoPid?
Type:
string
(optional, default: service default)
The PID of the elementary video stream.

.NET
Go
Java
Python
TypeScript (