@Stability(value=Stable)
public static interface CfnChannel.H264SettingsProperty
extends software.amazon.jsii.JsiiSerializable
The parent of this entity is VideoCodecSettings.
Example:
// 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.*;
H264SettingsProperty h264SettingsProperty = H264SettingsProperty.builder()
.adaptiveQuantization("adaptiveQuantization")
.afdSignaling("afdSignaling")
.bitrate(123)
.bufFillPct(123)
.bufSize(123)
.colorMetadata("colorMetadata")
.colorSpaceSettings(H264ColorSpaceSettingsProperty.builder()
.colorSpacePassthroughSettings(ColorSpacePassthroughSettingsProperty.builder().build())
.rec601Settings(Rec601SettingsProperty.builder().build())
.rec709Settings(Rec709SettingsProperty.builder().build())
.build())
.entropyEncoding("entropyEncoding")
.filterSettings(H264FilterSettingsProperty.builder()
.temporalFilterSettings(TemporalFilterSettingsProperty.builder()
.postFilterSharpening("postFilterSharpening")
.strength("strength")
.build())
.build())
.fixedAfd("fixedAfd")
.flickerAq("flickerAq")
.forceFieldPictures("forceFieldPictures")
.framerateControl("framerateControl")
.framerateDenominator(123)
.framerateNumerator(123)
.gopBReference("gopBReference")
.gopClosedCadence(123)
.gopNumBFrames(123)
.gopSize(123)
.gopSizeUnits("gopSizeUnits")
.level("level")
.lookAheadRateControl("lookAheadRateControl")
.maxBitrate(123)
.minIInterval(123)
.numRefFrames(123)
.parControl("parControl")
.parDenominator(123)
.parNumerator(123)
.profile("profile")
.qualityLevel("qualityLevel")
.qvbrQualityLevel(123)
.rateControlMode("rateControlMode")
.scanType("scanType")
.sceneChangeDetect("sceneChangeDetect")
.slices(123)
.softness(123)
.spatialAq("spatialAq")
.subgopLength("subgopLength")
.syntax("syntax")
.temporalAq("temporalAq")
.timecodeInsertion("timecodeInsertion")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnChannel.H264SettingsProperty.Builder
A builder for
CfnChannel.H264SettingsProperty |
static class |
CfnChannel.H264SettingsProperty.Jsii$Proxy
An implementation for
CfnChannel.H264SettingsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnChannel.H264SettingsProperty.Builder |
builder() |
default String |
getAdaptiveQuantization()
The adaptive quantization.
|
default String |
getAfdSignaling()
Indicates that AFD values will be written into the output stream.
|
default Number |
getBitrate()
The average bitrate in bits/second.
|
default Number |
getBufFillPct()
The percentage of the buffer that should initially be filled (HRD buffer model).
|
default Number |
getBufSize()
The size of the buffer (HRD buffer model) in bits/second.
|
default String |
getColorMetadata()
Includes color space metadata in the output.
|
default Object |
getColorSpaceSettings()
Settings to configure the color space handling for the video.
|
default String |
getEntropyEncoding()
The entropy encoding mode.
|
default Object |
getFilterSettings()
Optional filters that you can apply to an encode.
|
default String |
getFixedAfd()
A four-bit AFD value to write on all frames of video in the output stream.
|
default String |
getFlickerAq()
If set to enabled, adjusts the quantization within each frame to reduce flicker or pop on I-frames.
|
default String |
getForceFieldPictures()
This setting applies only when scan type is "interlaced." It controls whether coding is performed on a field basis or on a frame basis.
|
default String |
getFramerateControl()
Indicates how the output video frame rate is specified.
|
default Number |
getFramerateDenominator()
The frame rate denominator.
|
default Number |
getFramerateNumerator()
The frame rate numerator.
|
default String |
getGopBReference()
If enabled, uses reference B frames for GOP structures that have B frames > 1.
|
default Number |
getGopClosedCadence()
The frequency of closed GOPs.
|
default Number |
getGopNumBFrames()
The number of B-frames between reference frames.
|
default Number |
getGopSize()
The GOP size (keyframe interval) in units of either frames or seconds per gopSizeUnits.
|
default String |
getGopSizeUnits()
Indicates if the gopSize is specified in frames or seconds.
|
default String |
getLevel()
The H.264 level.
|
default String |
getLookAheadRateControl()
The amount of lookahead.
|
default Number |
getMaxBitrate()
For QVBR: See the tooltip for Quality level.
|
default Number |
getMinIInterval()
Meaningful only if sceneChangeDetect is set to enabled.
|
default Number |
getNumRefFrames()
The number of reference frames to use.
|
default String |
getParControl()
Indicates how the output pixel aspect ratio is specified.
|
default Number |
getParDenominator()
The Pixel Aspect Ratio denominator.
|
default Number |
getParNumerator()
The Pixel Aspect Ratio numerator.
|
default String |
getProfile()
An H.264 profile.
|
default String |
getQualityLevel()
Leave as STANDARD_QUALITY or choose a different value (which might result in additional costs to run the channel).
|
default Number |
getQvbrQualityLevel()
Controls the target quality for the video encode.
|
default String |
getRateControlMode()
The rate control mode.
|
default String |
getScanType()
Sets the scan type of the output to progressive or top-field-first interlaced.
|
default String |
getSceneChangeDetect()
The scene change detection.
|
default Number |
getSlices()
The number of slices per picture.
|
default Number |
getSoftness()
Softness.
|
default String |
getSpatialAq()
If set to enabled, adjusts quantization within each frame based on the spatial variation of content complexity.
|
default String |
getSubgopLength()
If set to fixed, uses gopNumBFrames B-frames per sub-GOP.
|
default String |
getSyntax()
Produces a bitstream that is compliant with SMPTE RP-2027.
|
default String |
getTemporalAq()
If set to enabled, adjusts quantization within each frame based on the temporal variation of content complexity.
|
default String |
getTimecodeInsertion()
Determines how timecodes should be inserted into the video elementary stream.
|
@Stability(value=Stable) @Nullable default String getAdaptiveQuantization()
This allows intra-frame quantizers to vary to improve visual quality.
@Stability(value=Stable) @Nullable default String getAfdSignaling()
If afdSignaling is auto, the system tries to preserve the input AFD value (in cases where multiple AFD values are valid). If set to fixed, the AFD value is the value configured in the fixedAfd parameter.
@Stability(value=Stable) @Nullable default Number getBitrate()
This is required when the rate control mode is VBR or CBR. It isn't used for QVBR. In a Microsoft Smooth output group, each output must have a unique value when its bitrate is rounded down to the nearest multiple of 1000.
@Stability(value=Stable) @Nullable default Number getBufFillPct()
@Stability(value=Stable) @Nullable default Number getBufSize()
@Stability(value=Stable) @Nullable default String getColorMetadata()
@Stability(value=Stable) @Nullable default Object getColorSpaceSettings()
@Stability(value=Stable) @Nullable default String getEntropyEncoding()
Use cabac (must be in Main or High profile) or cavlc.
@Stability(value=Stable) @Nullable default Object getFilterSettings()
@Stability(value=Stable) @Nullable default String getFixedAfd()
Valid only when afdSignaling is set to Fixed.
@Stability(value=Stable) @Nullable default String getFlickerAq()
@Stability(value=Stable) @Nullable default String getForceFieldPictures()
@Stability(value=Stable) @Nullable default String getFramerateControl()
If you select "specified," the output video frame rate is determined by framerateNumerator and framerateDenominator. If you select "initializeFromSource," the output video frame rate is set equal to the input video frame rate of the first input.
@Stability(value=Stable) @Nullable default Number getFramerateDenominator()
@Stability(value=Stable) @Nullable default Number getFramerateNumerator()
The frame rate is a fraction, for example, 24000/1001 = 23.976 fps.
@Stability(value=Stable) @Nullable default String getGopBReference()
@Stability(value=Stable) @Nullable default Number getGopClosedCadence()
In streaming applications, we recommend that you set this to 1 so that a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
@Stability(value=Stable) @Nullable default Number getGopNumBFrames()
@Stability(value=Stable) @Nullable default Number getGopSize()
The value must be greater than zero.
@Stability(value=Stable) @Nullable default String getGopSizeUnits()
If seconds, the system converts the gopSize into a frame count at runtime.
@Stability(value=Stable) @Nullable default String getLevel()
@Stability(value=Stable) @Nullable default String getLookAheadRateControl()
A value of low can decrease latency and memory usage, while high can produce better quality for certain content.
@Stability(value=Stable) @Nullable default Number getMaxBitrate()
For VBR: Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video.
@Stability(value=Stable) @Nullable default Number getMinIInterval()
This setting enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting the I-interval. The normal cadence resumes for the next GOP. Note that the maximum GOP stretch = GOP size + Min-I-interval - 1.
@Stability(value=Stable) @Nullable default Number getNumRefFrames()
The encoder might use more than requested if you use B-frames or interlaced encoding.
@Stability(value=Stable) @Nullable default String getParControl()
If "specified" is selected, the output video pixel aspect ratio is determined by parNumerator and parDenominator. If "initializeFromSource" is selected, the output pixels aspect ratio will be set equal to the input video pixel aspect ratio of the first input.
@Stability(value=Stable) @Nullable default Number getParDenominator()
@Stability(value=Stable) @Nullable default Number getParNumerator()
@Stability(value=Stable) @Nullable default String getProfile()
@Stability(value=Stable) @Nullable default String getQualityLevel()
@Stability(value=Stable) @Nullable default Number getQvbrQualityLevel()
This applies only when the rate control mode is QVBR. Set values for the QVBR quality level field and Max bitrate field that suit your most important viewing devices. Recommended values are: - Primary screen: Quality level: 8 to 10. Max bitrate: 4M - PC or tablet: Quality level: 7. Max bitrate: 1.5M to 3M - Smartphone: Quality level: 6. Max bitrate: 1M to 1.5M.
@Stability(value=Stable) @Nullable default String getRateControlMode()
QVBR: The quality will match the specified quality level except when it is constrained by the maximum bitrate. We recommend this if you or your viewers pay for bandwidth. VBR: The quality and bitrate vary, depending on the video complexity. We recommend this instead of QVBR if you want to maintain a specific average bitrate over the duration of the channel. CBR: The quality varies, depending on the video complexity. We recommend this only if you distribute your assets to devices that can't handle variable bitrates.
@Stability(value=Stable) @Nullable default String getScanType()
@Stability(value=Stable) @Nullable default String getSceneChangeDetect()
On: inserts I-frames when the scene change is detected. Off: does not force an I-frame when the scene change is detected.
@Stability(value=Stable) @Nullable default Number getSlices()
The number must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures. This field is optional. If you don't specify a value, MediaLive chooses the number of slices based on the encode resolution.
@Stability(value=Stable) @Nullable default Number getSoftness()
Selects a quantizer matrix. Larger values reduce high-frequency content in the encoded image.
@Stability(value=Stable) @Nullable default String getSpatialAq()
@Stability(value=Stable) @Nullable default String getSubgopLength()
If set to dynamic, optimizes the number of B-frames used for each sub-GOP to improve visual quality.
@Stability(value=Stable) @Nullable default String getSyntax()
@Stability(value=Stable) @Nullable default String getTemporalAq()
@Stability(value=Stable) @Nullable default String getTimecodeInsertion()
disabled: don't include timecodes. picTimingSei: pass through picture timing SEI messages from the source specified in Timecode Config.
@Stability(value=Stable) static CfnChannel.H264SettingsProperty.Builder builder()
Copyright © 2022. All rights reserved.