Class CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.medialive.CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelPropsMixin.Mpeg2SettingsProperty>
- Enclosing interface:
CfnChannelPropsMixin.Mpeg2SettingsProperty
@Stability(Stable)
public static final class CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelPropsMixin.Mpeg2SettingsProperty>
A builder for
CfnChannelPropsMixin.Mpeg2SettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadaptiveQuantization(String adaptiveQuantization) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getAdaptiveQuantization()afdSignaling(String afdSignaling) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getAfdSignaling()build()Builds the configured instance.colorMetadata(String colorMetadata) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getColorMetadata()colorSpace(String colorSpace) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getColorSpace()displayAspectRatio(String displayAspectRatio) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getDisplayAspectRatio()filterSettings(CfnChannelPropsMixin.Mpeg2FilterSettingsProperty filterSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFilterSettings()filterSettings(IResolvable filterSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFilterSettings()Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFixedAfd()framerateDenominator(Number framerateDenominator) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFramerateDenominator()framerateNumerator(Number framerateNumerator) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFramerateNumerator()gopClosedCadence(Number gopClosedCadence) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopClosedCadence()gopNumBFrames(Number gopNumBFrames) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopNumBFrames()Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopSize()gopSizeUnits(String gopSizeUnits) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopSizeUnits()Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getScanType()subgopLength(String subgopLength) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getSubgopLength()timecodeBurninSettings(CfnChannelPropsMixin.TimecodeBurninSettingsProperty timecodeBurninSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getTimecodeBurninSettings()timecodeBurninSettings(IResolvable timecodeBurninSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getTimecodeBurninSettings()timecodeInsertion(String timecodeInsertion) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getTimecodeInsertion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adaptiveQuantization
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder adaptiveQuantization(String adaptiveQuantization) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getAdaptiveQuantization()- Parameters:
adaptiveQuantization- Choose Off to disable adaptive quantization. Or choose another value to enable the quantizer and set its strength. The strengths are: Auto, Off, Low, Medium, High. When you enable this field, MediaLive allows intra-frame quantizers to vary, which might improve visual quality.- Returns:
this
-
afdSignaling
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder afdSignaling(String afdSignaling) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getAfdSignaling()- Parameters:
afdSignaling- Indicates the AFD values that MediaLive will write into the video encode. If you do not know what AFD signaling is, or if your downstream system has not given you guidance, choose AUTO. AUTO: MediaLive will try to preserve the input AFD value (in cases where multiple AFD values are valid). FIXED: MediaLive will use the value you specify in fixedAFD.- Returns:
this
-
colorMetadata
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder colorMetadata(String colorMetadata) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getColorMetadata()- Parameters:
colorMetadata- Specifies whether to include the color space metadata. The metadata describes the color space that applies to the video (the colorSpace field). We recommend that you insert the metadata.- Returns:
this
-
colorSpace
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder colorSpace(String colorSpace) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getColorSpace()- Parameters:
colorSpace- Choose the type of color space conversion to apply to the output. For detailed information on setting up both the input and the output to obtain the desired color space in the output, see the section on "MediaLive Features - Video - color space" in the MediaLive User Guide. PASSTHROUGH: Keep the color space of the input content - do not convert it. AUTO:Convert all content that is SD to rec 601, and convert all content that is HD to rec 709.- Returns:
this
-
displayAspectRatio
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder displayAspectRatio(String displayAspectRatio) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getDisplayAspectRatio()- Parameters:
displayAspectRatio- Sets the pixel aspect ratio for the encode.- Returns:
this
-
filterSettings
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder filterSettings(IResolvable filterSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFilterSettings()- Parameters:
filterSettings- Optionally specify a noise reduction filter, which can improve quality of compressed content. If you do not choose a filter, no filter will be applied. TEMPORAL: This filter is useful for both source content that is noisy (when it has excessive digital artifacts) and source content that is clean. When the content is noisy, the filter cleans up the source content before the encoding phase, with these two effects: First, it improves the output video quality because the content has been cleaned up. Secondly, it decreases the bandwidth because MediaLive does not waste bits on encoding noise. When the content is reasonably clean, the filter tends to decrease the bitrate.- Returns:
this
-
filterSettings
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder filterSettings(CfnChannelPropsMixin.Mpeg2FilterSettingsProperty filterSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFilterSettings()- Parameters:
filterSettings- Optionally specify a noise reduction filter, which can improve quality of compressed content. If you do not choose a filter, no filter will be applied. TEMPORAL: This filter is useful for both source content that is noisy (when it has excessive digital artifacts) and source content that is clean. When the content is noisy, the filter cleans up the source content before the encoding phase, with these two effects: First, it improves the output video quality because the content has been cleaned up. Secondly, it decreases the bandwidth because MediaLive does not waste bits on encoding noise. When the content is reasonably clean, the filter tends to decrease the bitrate.- Returns:
this
-
fixedAfd
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder fixedAfd(String fixedAfd) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFixedAfd()- Parameters:
fixedAfd- Complete this field only when afdSignaling is set to FIXED. Enter the AFD value (4 bits) to write on all frames of the video encode.- Returns:
this
-
framerateDenominator
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder framerateDenominator(Number framerateDenominator) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFramerateDenominator()- Parameters:
framerateDenominator- description": "The framerate denominator. For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.- Returns:
this
-
framerateNumerator
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder framerateNumerator(Number framerateNumerator) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getFramerateNumerator()- Parameters:
framerateNumerator- The framerate numerator. For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.- Returns:
this
-
gopClosedCadence
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder gopClosedCadence(Number gopClosedCadence) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopClosedCadence()- Parameters:
gopClosedCadence- MPEG2: default is open GOP.- Returns:
this
-
gopNumBFrames
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder gopNumBFrames(Number gopNumBFrames) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopNumBFrames()- Parameters:
gopNumBFrames- Relates to the GOP structure. The number of B-frames between reference frames. If you do not know what a B-frame is, use the default.- Returns:
this
-
gopSize
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder gopSize(Number gopSize) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopSize()- Parameters:
gopSize- Relates to the GOP structure. The GOP size (keyframe interval) in the units specified in gopSizeUnits. If you do not know what GOP is, use the default. If gopSizeUnits is frames, then the gopSize must be an integer and must be greater than or equal to 1. If gopSizeUnits is seconds, the gopSize must be greater than 0, but does not need to be an integer.- Returns:
this
-
gopSizeUnits
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder gopSizeUnits(String gopSizeUnits) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getGopSizeUnits()- Parameters:
gopSizeUnits- Relates to the GOP structure. Specifies whether the gopSize is specified in frames or seconds. If you do not plan to change the default gopSize, leave the default. If you specify SECONDS, MediaLive will internally convert the gop size to a frame count.- Returns:
this
-
scanType
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder scanType(String scanType) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getScanType()- Parameters:
scanType- Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).- Returns:
this
-
subgopLength
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder subgopLength(String subgopLength) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getSubgopLength()- Parameters:
subgopLength- Relates to the GOP structure. If you do not know what GOP is, use the default. FIXED: Set the number of B-frames in each sub-GOP to the value in gopNumBFrames. DYNAMIC: Let MediaLive optimize the number of B-frames in each sub-GOP, to improve visual quality.- Returns:
this
-
timecodeBurninSettings
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder timecodeBurninSettings(IResolvable timecodeBurninSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getTimecodeBurninSettings()- Parameters:
timecodeBurninSettings- the value to be set.- Returns:
this
-
timecodeBurninSettings
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder timecodeBurninSettings(CfnChannelPropsMixin.TimecodeBurninSettingsProperty timecodeBurninSettings) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getTimecodeBurninSettings()- Parameters:
timecodeBurninSettings- the value to be set.- Returns:
this
-
timecodeInsertion
@Stability(Stable) public CfnChannelPropsMixin.Mpeg2SettingsProperty.Builder timecodeInsertion(String timecodeInsertion) Sets the value ofCfnChannelPropsMixin.Mpeg2SettingsProperty.getTimecodeInsertion()- Parameters:
timecodeInsertion- Determines how MediaLive inserts timecodes in the output video. For detailed information about setting up the input and the output for a timecode, see the section on "MediaLive Features - Timecode configuration" in the MediaLive User Guide. DISABLED: do not include timecodes. GOP_TIMECODE: Include timecode metadata in the GOP header.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelPropsMixin.Mpeg2SettingsProperty>- Returns:
- a new instance of
CfnChannelPropsMixin.Mpeg2SettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-