Class Av1SettingsProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.Av1SettingsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Av1SettingsProps>
- Enclosing interface:
Av1SettingsProps
@Stability(Experimental)
public static final class Av1SettingsProps.Builder
extends Object
implements software.amazon.jsii.Builder<Av1SettingsProps>
A builder for
Av1SettingsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafdSignaling(AfdSignaling afdSignaling) Sets the value ofAv1SettingsProps.getAfdSignaling()bitDepth(Av1BitDepth bitDepth) Sets the value ofAv1SettingsProps.getBitDepth()Sets the value ofAv1SettingsProps.getBufSize()build()Builds the configured instance.colorSpaceSettings(Av1ColorSpaceSettings colorSpaceSettings) Sets the value ofAv1SettingsProps.getColorSpaceSettings()Sets the value ofAv1SettingsProps.getFixedAfd()Sets the value ofAv1SettingsProps.getFramerate()Sets the value ofAv1SettingsProps.getGopSize()Sets the value ofAv1SettingsProps.getLevel()lookAheadRateControl(LookAheadRateControl lookAheadRateControl) Sets the value ofAv1SettingsProps.getLookAheadRateControl()minBitrate(Number minBitrate) Sets the value ofAv1SettingsProps.getMinBitrate()minIInterval(Number minIInterval) Sets the value ofAv1SettingsProps.getMinIInterval()pixelAspectRatio(PixelAspectRatio pixelAspectRatio) Sets the value ofAv1SettingsProps.getPixelAspectRatio()rateControl(Av1RateControl rateControl) Sets the value ofAv1SettingsProps.getRateControl()sceneChangeDetect(Av1SceneChangeDetect sceneChangeDetect) Sets the value ofAv1SettingsProps.getSceneChangeDetect()spatialAq(Av1SpatialAq spatialAq) Sets the value ofAv1SettingsProps.getSpatialAq()temporalAq(Av1TemporalAq temporalAq) Sets the value ofAv1SettingsProps.getTemporalAq()timecodeBurnin(TimecodeBurninSettings timecodeBurnin) Sets the value ofAv1SettingsProps.getTimecodeBurnin()timecodeInsertion(Av1TimecodeInsertion timecodeInsertion) Sets the value ofAv1SettingsProps.getTimecodeInsertion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
afdSignaling
Sets the value ofAv1SettingsProps.getAfdSignaling()- Parameters:
afdSignaling- AFD signaling mode.- Returns:
this
-
bitDepth
Sets the value ofAv1SettingsProps.getBitDepth()- Parameters:
bitDepth- Bit depth for the AV1 encode.- Returns:
this
-
bufSize
Sets the value ofAv1SettingsProps.getBufSize()- Parameters:
bufSize- Size of buffer (HRD buffer model) in bits.- Returns:
this
-
colorSpaceSettings
@Stability(Experimental) public Av1SettingsProps.Builder colorSpaceSettings(Av1ColorSpaceSettings colorSpaceSettings) Sets the value ofAv1SettingsProps.getColorSpaceSettings()- Parameters:
colorSpaceSettings- Color space settings for the video.- Returns:
this
-
fixedAfd
Sets the value ofAv1SettingsProps.getFixedAfd()- Parameters:
fixedAfd- Four-bit AFD value to write on all frames. Only valid when afdSignaling is FIXED. Valid values: FIXED_0000, FIXED_0010, FIXED_0011, FIXED_0100, FIXED_1000, FIXED_1001, FIXED_1010, FIXED_1011, FIXED_1100, FIXED_1101, FIXED_1110, FIXED_1111.- Returns:
this
-
framerate
Sets the value ofAv1SettingsProps.getFramerate()- Parameters:
framerate- The video frame rate.- Returns:
this
-
gopSize
Sets the value ofAv1SettingsProps.getGopSize()- Parameters:
gopSize- The GOP size (keyframe interval).- Returns:
this
-
level
Sets the value ofAv1SettingsProps.getLevel()- Parameters:
level- The AV1 level. Valid values: AV1_LEVEL_2, AV1_LEVEL_2_1, AV1_LEVEL_3, AV1_LEVEL_3_1, AV1_LEVEL_4, AV1_LEVEL_4_1, AV1_LEVEL_5, AV1_LEVEL_5_1, AV1_LEVEL_5_2, AV1_LEVEL_5_3, AV1_LEVEL_6, AV1_LEVEL_6_1, AV1_LEVEL_6_2, AV1_LEVEL_6_3, AV1_LEVEL_AUTO.- Returns:
this
-
lookAheadRateControl
@Stability(Experimental) public Av1SettingsProps.Builder lookAheadRateControl(LookAheadRateControl lookAheadRateControl) Sets the value ofAv1SettingsProps.getLookAheadRateControl()- Parameters:
lookAheadRateControl- Amount of lookahead. Low decreases latency/memory; high can produce better quality.- Returns:
this
-
minBitrate
Sets the value ofAv1SettingsProps.getMinBitrate()- Parameters:
minBitrate- Minimum bitrate in bits/second.- Returns:
this
-
minIInterval
Sets the value ofAv1SettingsProps.getMinIInterval()- Parameters:
minIInterval- Only meaningful if sceneChangeDetect is enabled. Enforces separation between repeated (cadence) I-frames and I-frames inserted by scene change detection.- Returns:
this
-
pixelAspectRatio
@Stability(Experimental) public Av1SettingsProps.Builder pixelAspectRatio(PixelAspectRatio pixelAspectRatio) Sets the value ofAv1SettingsProps.getPixelAspectRatio()- Parameters:
pixelAspectRatio- The pixel aspect ratio (PAR) of the video.- Returns:
this
-
rateControl
Sets the value ofAv1SettingsProps.getRateControl()- Parameters:
rateControl- The rate control configuration.- Returns:
this
-
sceneChangeDetect
@Stability(Experimental) public Av1SettingsProps.Builder sceneChangeDetect(Av1SceneChangeDetect sceneChangeDetect) Sets the value ofAv1SettingsProps.getSceneChangeDetect()- Parameters:
sceneChangeDetect- Scene change detection.- Returns:
this
-
spatialAq
Sets the value ofAv1SettingsProps.getSpatialAq()- Parameters:
spatialAq- Spatial adaptive quantization.- Returns:
this
-
temporalAq
Sets the value ofAv1SettingsProps.getTemporalAq()- Parameters:
temporalAq- Temporal adaptive quantization.- Returns:
this
-
timecodeBurnin
@Stability(Experimental) public Av1SettingsProps.Builder timecodeBurnin(TimecodeBurninSettings timecodeBurnin) Sets the value ofAv1SettingsProps.getTimecodeBurnin()- Parameters:
timecodeBurnin- Timecode burn-in settings to overlay timecode on the video.- Returns:
this
-
timecodeInsertion
@Stability(Experimental) public Av1SettingsProps.Builder timecodeInsertion(Av1TimecodeInsertion timecodeInsertion) Sets the value ofAv1SettingsProps.getTimecodeInsertion()- Parameters:
timecodeInsertion- Timecode insertion mode.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Av1SettingsProps>- Returns:
- a new instance of
Av1SettingsProps - Throws:
NullPointerException- if any required attribute was not provided
-