interface MediaPackageV2OutputDefinition
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.MediaPackageV2OutputDefinition |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#MediaPackageV2OutputDefinition |
Java | software.amazon.awscdk.services.medialive.alpha.MediaPackageV2OutputDefinition |
Python | aws_cdk.aws_medialive_alpha.MediaPackageV2OutputDefinition |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป MediaPackageV2OutputDefinition |
Output definition for a MediaPackage V2 output group.
MediaPackage V2 uses CMAF ingest which requires one media track (video or audio) per output. In-band captions (burn-in, embedded) can ride alongside the primary encode because they do not produce a separate track.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
declare const encodeConfiguration: medialive_alpha.EncodeConfiguration;
declare const mediaPackageV2HlsSetting: medialive_alpha.MediaPackageV2HlsSetting;
const mediaPackageV2OutputDefinition: medialive_alpha.MediaPackageV2OutputDefinition = {
encode: encodeConfiguration,
outputName: 'outputName',
// the properties below are optional
audioGroupId: 'audioGroupId',
audioRenditionSets: 'audioRenditionSets',
captions: [encodeConfiguration],
hlsAutoSelect: mediaPackageV2HlsSetting,
hlsDefault: mediaPackageV2HlsSetting,
};
Properties
| Name | Type | Description |
|---|---|---|
| encode | Encode | The primary encode for this output โ one video or one audio track. |
| output | string | The name of this output. |
| audio | string | The audio group ID for audio outputs. |
| audio | string | The audio rendition sets for video outputs. |
| captions? | Encode[] | Caption encodes that ride alongside the primary encode. |
| hls | Media | For audio outputs, whether MediaPackage sets this rendition as the auto-select rendition in the HLS manifest. |
| hls | Media | For audio outputs, whether MediaPackage sets this rendition as the default rendition in the HLS manifest. |
encode
Type:
Encode
The primary encode for this output โ one video or one audio track.
outputName
Type:
string
The name of this output.
Must be unique across all outputs in the channel.
audioGroupId?
Type:
string
(optional, default: service default)
The audio group ID for audio outputs.
audioRenditionSets?
Type:
string
(optional, default: service default)
The audio rendition sets for video outputs.
captions?
Type:
Encode[]
(optional, default: no captions on this output)
Caption encodes that ride alongside the primary encode.
Only in-band caption types are allowed (burn-in, embedded) โ out-of-band captions must go in their own output.
hlsAutoSelect?
Type:
Media
(optional, default: MediaPackageV2HlsSetting.OMIT)
For audio outputs, whether MediaPackage sets this rendition as the auto-select rendition in the HLS manifest.
hlsDefault?
Type:
Media
(optional, default: MediaPackageV2HlsSetting.OMIT)
For audio outputs, whether MediaPackage sets this rendition as the default rendition in the HLS manifest.

.NET
Go
Java
Python
TypeScript (