interface SourceCdi
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.SourceCdi |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#SourceCdi |
Java | software.amazon.awscdk.services.mediaconnect.alpha.SourceCdi |
Python | aws_cdk.aws_mediaconnect_alpha.SourceCdi |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป SourceCdi |
Configuration for CDI.
Example
declare const stack: Stack;
declare const role: iam.IRole;
declare const securityGroup: ec2.ISecurityGroup;
declare const subnet: ec2.ISubnet;
const efaInterface = VpcInterface.define({
vpcInterfaceName: 'efa-interface',
role: role,
securityGroups: [securityGroup],
subnet: subnet,
networkInterfaceType: NetworkInterface.EFA, // Required for CDI
});
const videoStream = MediaStream.video({
mediaStreamId: 1,
mediaStreamName: 'video',
videoFormat: MediaVideoFormat.HD_1080P,
fmtp: {
exactFramerate: Framerate.FPS_29_97,
par: PixelAspectRatio.SQUARE,
},
});
const flow = new Flow(stack, 'MyCdiFlow', {
flowSize: FlowSize.LARGE_4X, // Required for CDI and JPEG XS
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 |
|---|---|---|
| max | number | The size of the buffer (in ms) to use to sync incoming source data. |
| media | Media[] | The media stream that is associated with the source, and the parameters for that association. |
| port | number | The port that the flow will be listening on for incoming content. |
| vpc | Vpc | The VPC interface attachment to use for this bridge source. |
| flow | string | The name of the source. |
maxSyncBuffer
Type:
number
The size of the buffer (in ms) to use to sync incoming source data.
Required by the MediaConnect service for CDI sources.
mediaStreamSourceConfigurations
Type:
Media[]
The media stream that is associated with the source, and the parameters for that association.
port
Type:
number
The port that the flow will be listening on for incoming content.
vpcInterface
Type:
Vpc
The VPC interface attachment to use for this bridge source.
flowSourceName?
Type:
string
(optional, default: a name is generated automatically)
The name of the source.

.NET
Go
Java
Python
TypeScript (