Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Av1RateControl Class
AV1 rate control.
AV1 supports QVBR and CBR.
| Stability | Experimental |
|---|---|
| Source | lib/video-codec-settings.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
import * as cdk from 'aws-cdk-lib';
declare const bitrate: cdk.Bitrate;
const av1RateControl = medialive_alpha.Av1RateControl.cbr({
bitrate: bitrate,
});
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
import aws_cdk as cdk
# bitrate: cdk.Bitrate
av1_rate_control = medialive_alpha.Av1RateControl.cbr(
bitrate=bitrate
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;
import software.amazon.awscdk.*;
Bitrate bitrate;
Av1RateControl av1RateControl = Av1RateControl.cbr(CbrRateControlProps.builder()
.bitrate(bitrate)
.build());
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
using Amazon.CDK;
Bitrate bitrate;
var av1RateControl = Av1RateControl.Cbr(new CbrRateControlProps {
Bitrate = bitrate
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
var bitrate Bitrate
av1RateControl := medialive_alpha.Av1RateControl_Cbr(&CbrRateControlProps{
Bitrate: bitrate,
})
Methods
cbr(props: CbrRateControlProps): Av1RateControl // chainable@staticmethod def cbr(props: CbrRateControlProps) -> Av1RateControlpublic static Av1RateControl cbr(CbrRateControlProps props)public static Av1RateControl Cbr(CbrRateControlProps props)func Cbr(Props CbrRateControlProps) Av1RateControl static #Constant bitrate.
qvbr(props: QvbrRateControlProps): Av1RateControl // chainable@staticmethod def qvbr(props: QvbrRateControlProps) -> Av1RateControlpublic static Av1RateControl qvbr(QvbrRateControlProps props)public static Av1RateControl Qvbr(QvbrRateControlProps props)func Qvbr(Props QvbrRateControlProps) Av1RateControl static #Quality-defined variable bitrate.