class Framerate
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.Framerate |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#Framerate |
Java | software.amazon.awscdk.services.mediaconnect.alpha.Framerate |
Python | aws_cdk.aws_mediaconnect_alpha.Framerate |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป Framerate |
A video frame rate expressed as a rational number (numerator/denominator).
Use the predefined constants for standard rates, or {@link Framerate.of} for a custom rate.
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 |
|---|---|---|
| static FPS_24 | Framerate | 24 fps (cinema) โ 24/1. |
| static FPS_25 | Framerate | 25 fps โ 25/1. |
| static FPS_29_97 | Framerate | 29.97 fps โ 30000/1001. |
| static FPS_30 | Framerate | 30 fps โ 30/1. |
| static FPS_50 | Framerate | 50 fps โ 50/1. |
| static FPS_59_94 | Framerate | 59.94 fps โ 60000/1001. |
| static FPS_60 | Framerate | 60 fps โ 60/1. |
static FPS_24
Type:
Framerate
24 fps (cinema) โ 24/1.
static FPS_25
Type:
Framerate
25 fps โ 25/1.
static FPS_29_97
Type:
Framerate
29.97 fps โ 30000/1001.
static FPS_30
Type:
Framerate
30 fps โ 30/1.
static FPS_50
Type:
Framerate
50 fps โ 50/1.
static FPS_59_94
Type:
Framerate
59.94 fps โ 60000/1001.
static FPS_60
Type:
Framerate
60 fps โ 60/1.
Methods
| Name | Description |
|---|---|
| to | Returns the string value. |
| static of(numerator, denominator) | Define a custom frame rate. |
toString()
public toString(): string
Returns
string
Returns the string value.
static of(numerator, denominator)
public static of(numerator: number, denominator: number): Framerate
Parameters
- numerator
numberโ Numerator of the rate. - denominator
numberโ Denominator of the rate.
Returns
Define a custom frame rate.

.NET
Go
Java
Python
TypeScript (