class MediaVideoFormat
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.MediaVideoFormat |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#MediaVideoFormat |
Java | software.amazon.awscdk.services.mediaconnect.alpha.MediaVideoFormat |
Python | aws_cdk.aws_mediaconnect_alpha.MediaVideoFormat |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป MediaVideoFormat |
Options for Media Video format.
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 |
|---|---|---|
| value | string | The video format string value. |
| static HD_1080 | Media | Option for 1080i. |
| static HD_1080 | Media | Option for 1080p. |
| static HD_720 | Media | Option for 720p. |
| static SD_480 | Media | Option for 480p. |
| static UHD_2160 | Media | Option for 2160p. |
value
Type:
string
The video format string value.
static HD_1080I
Type:
Media
Option for 1080i.
static HD_1080P
Type:
Media
Option for 1080p.
static HD_720P
Type:
Media
Option for 720p.
static SD_480P
Type:
Media
Option for 480p.
static UHD_2160P
Type:
Media
Option for 2160p.
Methods
| Name | Description |
|---|---|
| to | Returns the string value. |
| static of(value) | Use a custom video format value. |
toString()
public toString(): string
Returns
string
Returns the string value.
static of(value)
public static of(value: string): MediaVideoFormat
Parameters
- value
string
Returns
Use a custom video format value.

.NET
Go
Java
Python
TypeScript (