interface MediaStreamVideo
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.MediaStreamVideo |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#MediaStreamVideo |
Java | software.amazon.awscdk.services.mediaconnect.alpha.MediaStreamVideo |
Python | aws_cdk.aws_mediaconnect_alpha.MediaStreamVideo |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป MediaStreamVideo |
Implements
Media
A media stream represents one component of your content, such as video, audio, or ancillary data.
After you add a media stream to your flow, you can associate it with sources and outputs that use the ST 2110 JPEG XS or CDI protocol.
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 |
|---|---|---|
| fmtp | Fmtp | Attributes that are related to the media stream. |
| media | number | A unique identifier for the media stream. |
| media | string | A name that helps you distinguish one media stream from another. |
| video | Media | The resolution of the video. |
| clock | number | The sample rate for the stream. |
| description? | string | A description that can help you quickly identify what your media stream is used for. |
| fmt? | number | The format type number (sometimes referred to as RTP payload type) of the media stream. |
fmtp
Type:
Fmtp
Attributes that are related to the media stream.
mediaStreamId
Type:
number
A unique identifier for the media stream.
mediaStreamName
Type:
string
A name that helps you distinguish one media stream from another.
videoFormat
Type:
Media
The resolution of the video.
clockRate?
Type:
number
(optional, default: default clock rate for the media stream type)
The sample rate for the stream.
This value is measured in Hz.
description?
Type:
string
(optional, default: no description)
A description that can help you quickly identify what your media stream is used for.
fmt?
Type:
number
(optional, default: assigned by MediaConnect)
The format type number (sometimes referred to as RTP payload type) of the media stream.
MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.

.NET
Go
Java
Python
TypeScript (