Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
MediaVideoFormat Class
Options for Media Video format.
Example
ts
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
HD_1080IMediaVideoFormathd_1080_iMediaVideoFormatHD_1080IMediaVideoFormatHD_1080IMediaVideoFormatHD_1080IMediaVideoFormatstatic#Option for 1080i.
HD_1080PMediaVideoFormathd_1080_pMediaVideoFormatHD_1080PMediaVideoFormatHD_1080PMediaVideoFormatHD_1080PMediaVideoFormatstatic#Option for 1080p.
HD_720PMediaVideoFormathd_720_pMediaVideoFormatHD_720PMediaVideoFormatHD_720PMediaVideoFormatHD_720PMediaVideoFormatstatic#Option for 720p.
SD_480PMediaVideoFormatsd_480_pMediaVideoFormatSD_480PMediaVideoFormatSD_480PMediaVideoFormatSD_480PMediaVideoFormatstatic#Option for 480p.
UHD_2160PMediaVideoFormatuhd_2160_pMediaVideoFormatUHD_2160PMediaVideoFormatUHD_2160PMediaVideoFormatUHD_2160PMediaVideoFormatstatic#Option for 2160p.
The video format string value.
Methods
of(value: string): MediaVideoFormat // chainable@staticmethod def of(value: str) -> MediaVideoFormatpublic static MediaVideoFormat of(String value)public static MediaVideoFormat Of(string value)func Of(Value *string) MediaVideoFormatstatic#Use a custom video format value.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#Returns the string value.