interface EncodingConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.EncodingConfig |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#EncodingConfig |
Java | software.amazon.awscdk.services.mediaconnect.alpha.EncodingConfig |
Python | aws_cdk.aws_mediaconnect_alpha.EncodingConfig |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป EncodingConfig |
Encoding configuration applied to an NDI source when transcoding it to a transport stream for downstream distribution.
Example
declare const stack: Stack;
declare const ndiVpcInterface: VpcInterfaceConfig;
declare const efaInterface: VpcInterfaceConfig;
declare const videoStream: MediaStream;
// NDI requires LARGE, an encoding profile, and at least one discovery server
new Flow(stack, 'NdiFlow', {
flowSize: FlowSize.LARGE,
ndiConfig: {
ndiState: State.ENABLED,
ndiDiscoveryServers: [{
discoveryServerAddress: '10.0.0.10',
vpcInterface: ndiVpcInterface,
}],
},
encodingConfig: {
encodingProfile: EncodingProfile.CONTRIBUTION_H264_DEFAULT,
},
source: SourceConfiguration.ndi({
flowSourceName: 'ndi-source',
}),
});
// CDI and JPEG XS require LARGE_4X
new Flow(stack, 'CdiFlow', {
flowSize: FlowSize.LARGE_4X,
vpcInterfaces: [efaInterface],
mediaStreams: [videoStream],
source: SourceConfiguration.cdi({
flowSourceName: 'cdi-source',
vpcInterface: efaInterface,
port: 5000,
maxSyncBuffer: 100,
mediaStreamSourceConfigurations: [{
encoding: Encoding.RAW,
mediaStream: videoStream,
}],
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| encoding | Encoding | The encoding profile to use when transcoding the NDI source content to a transport stream. |
| video | Bitrate | The maximum video bitrate to use when transcoding the NDI source to a transport stream. |
encodingProfile?
Type:
Encoding
(optional, default: the MediaConnect service default)
The encoding profile to use when transcoding the NDI source content to a transport stream.
You can change this value while the flow is running.
videoMaxBitrate?
Type:
Bitrate
(optional, default: undefined; when omitted, MediaConnect applies 20 Mbps at deploy time)
The maximum video bitrate to use when transcoding the NDI source to a transport stream.
The supported range is 10 Mbps โ 50 Mbps.

.NET
Go
Java
Python
TypeScript (