Class H265SettingsProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.H265SettingsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<H265SettingsProps>
- Enclosing interface:
H265SettingsProps
@Stability(Experimental)
public static final class H265SettingsProps.Builder
extends Object
implements software.amazon.jsii.Builder<H265SettingsProps>
A builder for
H265SettingsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadaptiveQuantization(H265AdaptiveQuantization adaptiveQuantization) Sets the value ofH265SettingsProps.getAdaptiveQuantization()afdSignaling(AfdSignaling afdSignaling) Sets the value ofH265SettingsProps.getAfdSignaling()alternativeTransferFunction(H265AlternativeTransferFunction alternativeTransferFunction) Sets the value ofH265SettingsProps.getAlternativeTransferFunction()Sets the value ofH265SettingsProps.getBufSize()build()Builds the configured instance.colorMetadata(ColorMetadata colorMetadata) Sets the value ofH265SettingsProps.getColorMetadata()colorSpaceSettings(H265ColorSpaceSettings colorSpaceSettings) Sets the value ofH265SettingsProps.getColorSpaceSettings()deblocking(H265Deblocking deblocking) Sets the value ofH265SettingsProps.getDeblocking()filterSettings(H265FilterSettings filterSettings) Sets the value ofH265SettingsProps.getFilterSettings()Sets the value ofH265SettingsProps.getFixedAfd()Sets the value ofH265SettingsProps.getFlickerAq()Sets the value ofH265SettingsProps.getFramerate()gopBReference(GopBReference gopBReference) Sets the value ofH265SettingsProps.getGopBReference()gopClosedCadence(Number gopClosedCadence) Sets the value ofH265SettingsProps.getGopClosedCadence()gopNumBFrames(Number gopNumBFrames) Sets the value ofH265SettingsProps.getGopNumBFrames()Sets the value ofH265SettingsProps.getGopSize()Sets the value ofH265SettingsProps.getLevel()lookAheadRateControl(LookAheadRateControl lookAheadRateControl) Sets the value ofH265SettingsProps.getLookAheadRateControl()minBitrate(Number minBitrate) Sets the value ofH265SettingsProps.getMinBitrate()minIInterval(Number minIInterval) Sets the value ofH265SettingsProps.getMinIInterval()Sets the value ofH265SettingsProps.getMinQp()mvOverPictureBoundaries(H265MvOverPictureBoundaries mvOverPictureBoundaries) Sets the value ofH265SettingsProps.getMvOverPictureBoundaries()mvTemporalPredictor(H265MvTemporalPredictor mvTemporalPredictor) Sets the value ofH265SettingsProps.getMvTemporalPredictor()pixelAspectRatio(PixelAspectRatio pixelAspectRatio) Sets the value ofH265SettingsProps.getPixelAspectRatio()profile(H265Profile profile) Sets the value ofH265SettingsProps.getProfile()rateControl(H265RateControl rateControl) Sets the value ofH265SettingsProps.getRateControl()Sets the value ofH265SettingsProps.getScanType()sceneChangeDetect(H265SceneChangeDetect sceneChangeDetect) Sets the value ofH265SettingsProps.getSceneChangeDetect()Sets the value ofH265SettingsProps.getSlices()subgopLength(SubgopLength subgopLength) Sets the value ofH265SettingsProps.getSubgopLength()Sets the value ofH265SettingsProps.getTier()tileHeight(Number tileHeight) Sets the value ofH265SettingsProps.getTileHeight()tilePadding(H265TilePadding tilePadding) Sets the value ofH265SettingsProps.getTilePadding()Sets the value ofH265SettingsProps.getTileWidth()timecodeBurnin(TimecodeBurninSettings timecodeBurnin) Sets the value ofH265SettingsProps.getTimecodeBurnin()timecodeInsertion(TimecodeInsertion timecodeInsertion) Sets the value ofH265SettingsProps.getTimecodeInsertion()treeblockSize(H265TreeblockSize treeblockSize) Sets the value ofH265SettingsProps.getTreeblockSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
framerate
Sets the value ofH265SettingsProps.getFramerate()- Parameters:
framerate- The video frame rate. This parameter is required. Required for H.265.- Returns:
this
-
adaptiveQuantization
@Stability(Experimental) public H265SettingsProps.Builder adaptiveQuantization(H265AdaptiveQuantization adaptiveQuantization) Sets the value ofH265SettingsProps.getAdaptiveQuantization()- Parameters:
adaptiveQuantization- The adaptive quantization. Allows intra-frame quantizers to vary to improve visual quality.- Returns:
this
-
afdSignaling
Sets the value ofH265SettingsProps.getAfdSignaling()- Parameters:
afdSignaling- AFD signaling mode.- Returns:
this
-
alternativeTransferFunction
@Stability(Experimental) public H265SettingsProps.Builder alternativeTransferFunction(H265AlternativeTransferFunction alternativeTransferFunction) Sets the value ofH265SettingsProps.getAlternativeTransferFunction()- Parameters:
alternativeTransferFunction- Whether to insert an Alternative Transfer Function SEI message for backwards compatibility with non-HDR decoders.- Returns:
this
-
bufSize
Sets the value ofH265SettingsProps.getBufSize()- Parameters:
bufSize- Size of buffer (HRD buffer model) in bits.- Returns:
this
-
colorMetadata
@Stability(Experimental) public H265SettingsProps.Builder colorMetadata(ColorMetadata colorMetadata) Sets the value ofH265SettingsProps.getColorMetadata()- Parameters:
colorMetadata- Whether to include color space metadata in the output.- Returns:
this
-
colorSpaceSettings
@Stability(Experimental) public H265SettingsProps.Builder colorSpaceSettings(H265ColorSpaceSettings colorSpaceSettings) Sets the value ofH265SettingsProps.getColorSpaceSettings()- Parameters:
colorSpaceSettings- Color space settings for the video.- Returns:
this
-
deblocking
Sets the value ofH265SettingsProps.getDeblocking()- Parameters:
deblocking- Deblocking filter control.- Returns:
this
-
filterSettings
@Stability(Experimental) public H265SettingsProps.Builder filterSettings(H265FilterSettings filterSettings) Sets the value ofH265SettingsProps.getFilterSettings()- Parameters:
filterSettings- Optional video filter settings.- Returns:
this
-
fixedAfd
Sets the value ofH265SettingsProps.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
-
flickerAq
Sets the value ofH265SettingsProps.getFlickerAq()- Parameters:
flickerAq- If enabled, adjusts quantization within each frame to reduce flicker on I-frames.- Returns:
this
-
gopBReference
@Stability(Experimental) public H265SettingsProps.Builder gopBReference(GopBReference gopBReference) Sets the value ofH265SettingsProps.getGopBReference()- Parameters:
gopBReference- If enabled, uses reference B frames for GOP structures that have B frames > 1.- Returns:
this
-
gopClosedCadence
Sets the value ofH265SettingsProps.getGopClosedCadence()- Parameters:
gopClosedCadence- Frequency of closed GOPs. Set to 1 for streaming so decoders joining mid-stream get an IDR frame quickly.- Returns:
this
-
gopNumBFrames
Sets the value ofH265SettingsProps.getGopNumBFrames()- Parameters:
gopNumBFrames- Number of B-frames between reference frames.- Returns:
this
-
gopSize
Sets the value ofH265SettingsProps.getGopSize()- Parameters:
gopSize- The GOP size (keyframe interval).- Returns:
this
-
level
Sets the value ofH265SettingsProps.getLevel()- Parameters:
level- The H.265 level. Valid values: H265_LEVEL_1, H265_LEVEL_2, H265_LEVEL_2_1, H265_LEVEL_3, H265_LEVEL_3_1, H265_LEVEL_4, H265_LEVEL_4_1, H265_LEVEL_5, H265_LEVEL_5_1, H265_LEVEL_5_2, H265_LEVEL_6, H265_LEVEL_6_1, H265_LEVEL_6_2, H265_LEVEL_AUTO.- Returns:
this
-
lookAheadRateControl
@Stability(Experimental) public H265SettingsProps.Builder lookAheadRateControl(LookAheadRateControl lookAheadRateControl) Sets the value ofH265SettingsProps.getLookAheadRateControl()- Parameters:
lookAheadRateControl- Amount of lookahead. Low decreases latency/memory; high can produce better quality.- Returns:
this
-
minBitrate
Sets the value ofH265SettingsProps.getMinBitrate()- Parameters:
minBitrate- Minimum bitrate in bits/second.- Returns:
this
-
minIInterval
Sets the value ofH265SettingsProps.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
-
minQp
Sets the value ofH265SettingsProps.getMinQp()- Parameters:
minQp- Minimum QP value.- Returns:
this
-
mvOverPictureBoundaries
@Stability(Experimental) public H265SettingsProps.Builder mvOverPictureBoundaries(H265MvOverPictureBoundaries mvOverPictureBoundaries) Sets the value ofH265SettingsProps.getMvOverPictureBoundaries()- Parameters:
mvOverPictureBoundaries- Whether motion vectors can cross picture boundaries.- Returns:
this
-
mvTemporalPredictor
@Stability(Experimental) public H265SettingsProps.Builder mvTemporalPredictor(H265MvTemporalPredictor mvTemporalPredictor) Sets the value ofH265SettingsProps.getMvTemporalPredictor()- Parameters:
mvTemporalPredictor- Whether to use temporal motion vector prediction.- Returns:
this
-
pixelAspectRatio
@Stability(Experimental) public H265SettingsProps.Builder pixelAspectRatio(PixelAspectRatio pixelAspectRatio) Sets the value ofH265SettingsProps.getPixelAspectRatio()- Parameters:
pixelAspectRatio- The pixel aspect ratio (PAR) of the video.- Returns:
this
-
profile
Sets the value ofH265SettingsProps.getProfile()- Parameters:
profile- The H.265 profile.- Returns:
this
-
rateControl
Sets the value ofH265SettingsProps.getRateControl()- Parameters:
rateControl- The rate control configuration.- Returns:
this
-
scanType
Sets the value ofH265SettingsProps.getScanType()- Parameters:
scanType- Sets the scan type of the output.- Returns:
this
-
sceneChangeDetect
@Stability(Experimental) public H265SettingsProps.Builder sceneChangeDetect(H265SceneChangeDetect sceneChangeDetect) Sets the value ofH265SettingsProps.getSceneChangeDetect()- Parameters:
sceneChangeDetect- Whether scene change detection inserts I-frames on scene changes.- Returns:
this
-
slices
Sets the value ofH265SettingsProps.getSlices()- Parameters:
slices- Number of slices per picture.- Returns:
this
-
subgopLength
Sets the value ofH265SettingsProps.getSubgopLength()- Parameters:
subgopLength- Sub-GOP length mode.- Returns:
this
-
tier
Sets the value ofH265SettingsProps.getTier()- Parameters:
tier- The H.265 tier.- Returns:
this
-
tileHeight
Sets the value ofH265SettingsProps.getTileHeight()- Parameters:
tileHeight- Tile height in pixels. Must be a multiple of the CTU size.- Returns:
this
-
tilePadding
Sets the value ofH265SettingsProps.getTilePadding()- Parameters:
tilePadding- Tile padding mode.- Returns:
this
-
tileWidth
Sets the value ofH265SettingsProps.getTileWidth()- Parameters:
tileWidth- Tile width in pixels. Must be a multiple of the CTU size.- Returns:
this
-
timecodeBurnin
@Stability(Experimental) public H265SettingsProps.Builder timecodeBurnin(TimecodeBurninSettings timecodeBurnin) Sets the value ofH265SettingsProps.getTimecodeBurnin()- Parameters:
timecodeBurnin- Timecode burn-in settings to overlay timecode on the video.- Returns:
this
-
timecodeInsertion
@Stability(Experimental) public H265SettingsProps.Builder timecodeInsertion(TimecodeInsertion timecodeInsertion) Sets the value ofH265SettingsProps.getTimecodeInsertion()- Parameters:
timecodeInsertion- Determines how timecodes are inserted into the video elementary stream. This controls insertion into the output elementary stream. The channel'stimecodeConfigcontrols the source of the timecode used for output.- Returns:
this
-
treeblockSize
@Stability(Experimental) public H265SettingsProps.Builder treeblockSize(H265TreeblockSize treeblockSize) Sets the value ofH265SettingsProps.getTreeblockSize()- Parameters:
treeblockSize- Treeblock size for the encoder.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<H265SettingsProps>- Returns:
- a new instance of
H265SettingsProps - Throws:
NullPointerException- if any required attribute was not provided
-