Interface Mpeg2Settings.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Mpeg2Settings.Builder,
,Mpeg2Settings> SdkBuilder<Mpeg2Settings.Builder,
,Mpeg2Settings> SdkPojo
- Enclosing class:
Mpeg2Settings
public static interface Mpeg2Settings.Builder
extends SdkPojo, CopyableBuilder<Mpeg2Settings.Builder,Mpeg2Settings>
-
Method Summary
Modifier and TypeMethodDescriptionadaptiveQuantization
(String adaptiveQuantization) Choose Off to disable adaptive quantization.adaptiveQuantization
(Mpeg2AdaptiveQuantization adaptiveQuantization) Choose Off to disable adaptive quantization.afdSignaling
(String afdSignaling) Indicates the AFD values that MediaLive will write into the video encode.afdSignaling
(AfdSignaling afdSignaling) Indicates the AFD values that MediaLive will write into the video encode.colorMetadata
(String colorMetadata) Specifies whether to include the color space metadata.colorMetadata
(Mpeg2ColorMetadata colorMetadata) Specifies whether to include the color space metadata.colorSpace
(String colorSpace) Choose the type of color space conversion to apply to the output.colorSpace
(Mpeg2ColorSpace colorSpace) Choose the type of color space conversion to apply to the output.displayAspectRatio
(String displayAspectRatio) Sets the pixel aspect ratio for the encode.displayAspectRatio
(Mpeg2DisplayRatio displayAspectRatio) Sets the pixel aspect ratio for the encode.default Mpeg2Settings.Builder
filterSettings
(Consumer<Mpeg2FilterSettings.Builder> filterSettings) Optionally specify a noise reduction filter, which can improve quality of compressed content.filterSettings
(Mpeg2FilterSettings filterSettings) Optionally specify a noise reduction filter, which can improve quality of compressed content.Complete this field only when afdSignaling is set to FIXED.Complete this field only when afdSignaling is set to FIXED.framerateDenominator
(Integer framerateDenominator) description": "The framerate denominator.framerateNumerator
(Integer framerateNumerator) The framerate numerator.gopClosedCadence
(Integer gopClosedCadence) MPEG2: default is open GOP.gopNumBFrames
(Integer gopNumBFrames) Relates to the GOP structure.Relates to the GOP structure.gopSizeUnits
(String gopSizeUnits) Relates to the GOP structure.gopSizeUnits
(Mpeg2GopSizeUnits gopSizeUnits) Relates to the GOP structure.Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).scanType
(Mpeg2ScanType scanType) Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).subgopLength
(String subgopLength) Relates to the GOP structure.subgopLength
(Mpeg2SubGopLength subgopLength) Relates to the GOP structure.default Mpeg2Settings.Builder
timecodeBurninSettings
(Consumer<TimecodeBurninSettings.Builder> timecodeBurninSettings) Timecode burn-in settings This is a convenience method that creates an instance of theTimecodeBurninSettings.Builder
avoiding the need to create one manually viaTimecodeBurninSettings.builder()
.timecodeBurninSettings
(TimecodeBurninSettings timecodeBurninSettings) Timecode burn-in settingstimecodeInsertion
(String timecodeInsertion) Determines how MediaLive inserts timecodes in the output video.timecodeInsertion
(Mpeg2TimecodeInsertionBehavior timecodeInsertion) Determines how MediaLive inserts timecodes in the output video.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
displayAspectRatio
Sets the pixel aspect ratio for the encode.- Parameters:
displayAspectRatio
- Sets the pixel aspect ratio for the encode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
displayAspectRatio
Sets the pixel aspect ratio for the encode.- Parameters:
displayAspectRatio
- Sets the pixel aspect ratio for the encode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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. This is a convenience method that creates an instance of theMpeg2FilterSettings.Builder
avoiding the need to create one manually viaMpeg2FilterSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilterSettings(Mpeg2FilterSettings)
.- Parameters:
filterSettings
- a consumer that will call methods onMpeg2FilterSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
framerateDenominator
description": "The framerate denominator. For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
framerateNumerator
The framerate numerator. For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
gopClosedCadence
MPEG2: default is open GOP.- Parameters:
gopClosedCadence
- MPEG2: default is open GOP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).- Parameters:
scanType
- Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).- Parameters:
scanType
- Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timecodeBurninSettings
Timecode burn-in settings- Parameters:
timecodeBurninSettings
- Timecode burn-in settings- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timecodeBurninSettings
default Mpeg2Settings.Builder timecodeBurninSettings(Consumer<TimecodeBurninSettings.Builder> timecodeBurninSettings) Timecode burn-in settings This is a convenience method that creates an instance of theTimecodeBurninSettings.Builder
avoiding the need to create one manually viaTimecodeBurninSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimecodeBurninSettings(TimecodeBurninSettings)
.- Parameters:
timecodeBurninSettings
- a consumer that will call methods onTimecodeBurninSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-