interface M3u8SettingsProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.M3u8SettingsProps |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#M3u8SettingsProps |
Java | software.amazon.awscdk.services.medialive.alpha.M3u8SettingsProps |
Python | aws_cdk.aws_medialive_alpha.M3u8SettingsProps |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป M3u8SettingsProps |
Properties for M3U8 container settings.
PID properties accept a decimal or hexadecimal value (and, where noted, ranges or
comma-separated lists). Interval properties are Duration values rendered as milliseconds.
Example
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;
medialive.OutputGroupConfiguration.hls({
name: 'hls',
destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
outputs: [
{
encodes: [video],
outputName: 'video',
hlsSettings: medialive.HlsSettings.standard({
m3u8Settings: medialive.M3u8Settings.of({
scte35Behavior: medialive.M3u8Scte35Behavior.PASSTHROUGH,
programNum: 1,
}),
}),
},
{
encodes: [audio],
outputName: 'audio',
hlsSettings: medialive.HlsSettings.audioOnly({
audioGroupId: 'program',
audioOnlyImage: medialive.FileLocation.fromBucket(bucket, 'art/cover.png'),
}),
},
],
});
Properties
| Name | Type | Description |
|---|---|---|
| audio | number | The number of audio frames to insert for each PES packet. |
| audio | string | The PID(s) of the elementary audio streams. |
| klv | M3u8 | KLV data passthrough behavior. |
| klv | string | The PID(s) of the KLV data streams. |
| nielsen | M3u8 | Nielsen ID3 passthrough behavior. |
| pat | Duration | The interval between instances of the PAT in the output. |
| pcr | M3u8 | 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 (PCR). |
| pmt | Duration | The interval between instances of the PMT in the output. |
| pmt | string | The PID of the Program Map Table (PMT). |
| program | number | The value of the program number field in the PMT. |
| scte35 | M3u8 | SCTE-35 passthrough behavior. |
| scte35 | string | The PID of the SCTE-35 stream. |
| timed | M3u8 | 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. |
audioFramesPerPes?
Type:
number
(optional, default: service default)
The number of audio frames to insert for each PES packet.
audioPids?
Type:
string
(optional, default: service default)
The PID(s) of the elementary audio streams.
Accepts ranges and comma separation.
klvBehavior?
Type:
M3u8
(optional, default: service default)
KLV data passthrough behavior.
klvDataPids?
Type:
string
(optional, default: service default)
The PID(s) of the KLV data streams.
nielsenId3Behavior?
Type:
M3u8
(optional, default: service default)
Nielsen ID3 passthrough behavior.
patInterval?
Type:
Duration
(optional, default: service default)
The interval between instances of the PAT in the output.
A value of 0 writes the PAT once per segment file.
pcrControl?
Type:
M3u8
(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 (PCR).
Defaults to the video PID.
pmtInterval?
Type:
Duration
(optional, default: service default)
The interval between instances of the PMT in the output.
A value of 0 writes the PMT once per segment file.
pmtPid?
Type:
string
(optional, default: service default)
The PID of the Program Map Table (PMT).
programNum?
Type:
number
(optional, default: service default)
The value of the program number field in the PMT.
scte35Behavior?
Type:
M3u8
(optional, default: service default)
SCTE-35 passthrough behavior.
scte35Pid?
Type:
string
(optional, default: service default)
The PID of the SCTE-35 stream.
timedMetadataBehavior?
Type:
M3u8
(optional, default: service default)
Timed-metadata passthrough behavior.
timedMetadataPid?
Type:
string
(optional, default: service default)
The PID of the timed-metadata stream.
Valid values are 32 (0x20)..8182 (0x1ff6).
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 (