interface H264SettingsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.MediaLive.CfnChannel.H264SettingsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsmedialive#CfnChannel_H264SettingsProperty |
Java | software.amazon.awscdk.services.medialive.CfnChannel.H264SettingsProperty |
Python | aws_cdk.aws_medialive.CfnChannel.H264SettingsProperty |
TypeScript | aws-cdk-lib » aws_medialive » CfnChannel » H264SettingsProperty |
The settings for the H.264 codec in the output.
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 { aws_medialive as medialive } from 'aws-cdk-lib';
const h264SettingsProperty: medialive.CfnChannel.H264SettingsProperty = {
adaptiveQuantization: 'adaptiveQuantization',
afdSignaling: 'afdSignaling',
bitrate: 123,
bufFillPct: 123,
bufSize: 123,
colorMetadata: 'colorMetadata',
colorSpaceSettings: {
colorSpacePassthroughSettings: { },
rec601Settings: { },
rec709Settings: { },
},
entropyEncoding: 'entropyEncoding',
filterSettings: {
temporalFilterSettings: {
postFilterSharpening: 'postFilterSharpening',
strength: 'strength',
},
},
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,
minQp: 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',
timecodeBurninSettings: {
fontSize: 'fontSize',
position: 'position',
prefix: 'prefix',
},
timecodeInsertion: 'timecodeInsertion',
};
Properties
Name | Type | Description |
---|---|---|
adaptive | string | The adaptive quantization. |
afd | string | Indicates that AFD values will be written into the output stream. |
bitrate? | number | The average bitrate in bits/second. |
buf | number | The percentage of the buffer that should initially be filled (HRD buffer model). |
buf | number | The size of the buffer (HRD buffer model) in bits/second. |
color | string | Includes color space metadata in the output. |
color | IResolvable | H264 | Settings to configure the color space handling for the video. |
entropy | string | The entropy encoding mode. |
filter | IResolvable | H264 | Optional filters that you can apply to an encode. |
fixed | string | A four-bit AFD value to write on all frames of video in the output stream. |
flicker | string | If set to enabled, adjusts the quantization within each frame to reduce flicker or pop on I-frames. |
force | string | This setting applies only when scan type is "interlaced." It controls whether coding is performed on a field basis or on a frame basis. (When the video is progressive, the coding is always performed on a frame basis.) enabled: Force MediaLive to code on a field basis, so that odd and even sets of fields are coded separately. disabled: Code the two sets of fields separately (on a field basis) or together (on a frame basis using PAFF), depending on what is most appropriate for the content. |
framerate | string | Indicates how the output video frame rate is specified. |
framerate | number | The frame rate denominator. |
framerate | number | The frame rate numerator. |
gop | string | If enabled, uses reference B frames for GOP structures that have B frames > 1. |
gop | number | The frequency of closed GOPs. |
gop | number | The number of B-frames between reference frames. |
gop | number | The GOP size (keyframe interval) in units of either frames or seconds per gopSizeUnits. |
gop | string | Indicates if the gopSize is specified in frames or seconds. |
level? | string | The H.264 level. |
look | string | The amount of lookahead. |
max | number | For QVBR: See the tooltip for Quality level. |
min | number | Meaningful only if sceneChangeDetect is set to enabled. |
min | number | |
num | number | The number of reference frames to use. |
par | string | Indicates how the output pixel aspect ratio is specified. |
par | number | The Pixel Aspect Ratio denominator. |
par | number | The Pixel Aspect Ratio numerator. |
profile? | string | An H.264 profile. |
quality | string | Leave as STANDARD_QUALITY or choose a different value (which might result in additional costs to run the channel). |
qvbr | number | Controls the target quality for the video encode. |
rate | string | The rate control mode. |
scan | string | Sets the scan type of the output to progressive or top-field-first interlaced. |
scene | string | The scene change detection. |
slices? | number | The number of slices per picture. |
softness? | number | Softness. |
spatial | string | If set to enabled, adjusts quantization within each frame based on the spatial variation of content complexity. |
subgop | string | If set to fixed, uses gopNumBFrames B-frames per sub-GOP. |
syntax? | string | Produces a bitstream that is compliant with SMPTE RP-2027. |
temporal | string | If set to enabled, adjusts quantization within each frame based on the temporal variation of content complexity. |
timecode | IResolvable | Timecode | |
timecode | string | Determines how timecodes should be inserted into the video elementary stream. |
adaptiveQuantization?
Type:
string
(optional)
The adaptive quantization.
This allows intra-frame quantizers to vary to improve visual quality.
afdSignaling?
Type:
string
(optional)
Indicates that AFD values will be written into the output stream.
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.
bitrate?
Type:
number
(optional)
The average bitrate in bits/second.
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.
bufFillPct?
Type:
number
(optional)
The percentage of the buffer that should initially be filled (HRD buffer model).
bufSize?
Type:
number
(optional)
The size of the buffer (HRD buffer model) in bits/second.
colorMetadata?
Type:
string
(optional)
Includes color space metadata in the output.
colorSpaceSettings?
Type:
IResolvable
|
H264
(optional)
Settings to configure the color space handling for the video.
entropyEncoding?
Type:
string
(optional)
The entropy encoding mode.
Use cabac (must be in Main or High profile) or cavlc.
filterSettings?
Type:
IResolvable
|
H264
(optional)
Optional filters that you can apply to an encode.
fixedAfd?
Type:
string
(optional)
A four-bit AFD value to write on all frames of video in the output stream.
Valid only when afdSignaling is set to Fixed.
flickerAq?
Type:
string
(optional)
If set to enabled, adjusts the quantization within each frame to reduce flicker or pop on I-frames.
forceFieldPictures?
Type:
string
(optional)
This setting applies only when scan type is "interlaced." It controls whether coding is performed on a field basis or on a frame basis. (When the video is progressive, the coding is always performed on a frame basis.) enabled: Force MediaLive to code on a field basis, so that odd and even sets of fields are coded separately. disabled: Code the two sets of fields separately (on a field basis) or together (on a frame basis using PAFF), depending on what is most appropriate for the content.
framerateControl?
Type:
string
(optional)
Indicates how the output video frame rate is specified.
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.
framerateDenominator?
Type:
number
(optional)
The frame rate denominator.
framerateNumerator?
Type:
number
(optional)
The frame rate numerator.
The frame rate is a fraction, for example, 24000/1001 = 23.976 fps.
gopBReference?
Type:
string
(optional)
If enabled, uses reference B frames for GOP structures that have B frames > 1.
gopClosedCadence?
Type:
number
(optional)
The frequency of closed GOPs.
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.
gopNumBFrames?
Type:
number
(optional)
The number of B-frames between reference frames.
gopSize?
Type:
number
(optional)
The GOP size (keyframe interval) in units of either frames or seconds per gopSizeUnits.
The value must be greater than zero.
gopSizeUnits?
Type:
string
(optional)
Indicates if the gopSize is specified in frames or seconds.
If seconds, the system converts the gopSize into a frame count at runtime.
level?
Type:
string
(optional)
The H.264 level.
lookAheadRateControl?
Type:
string
(optional)
The amount of lookahead.
A value of low can decrease latency and memory usage, while high can produce better quality for certain content.
maxBitrate?
Type:
number
(optional)
For QVBR: See the tooltip for Quality level.
For VBR: Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video.
minIInterval?
Type:
number
(optional)
Meaningful only if sceneChangeDetect is set to enabled.
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.
minQp?
Type:
number
(optional)
numRefFrames?
Type:
number
(optional)
The number of reference frames to use.
The encoder might use more than requested if you use B-frames or interlaced encoding.
parControl?
Type:
string
(optional)
Indicates how the output pixel aspect ratio is specified.
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.
parDenominator?
Type:
number
(optional)
The Pixel Aspect Ratio denominator.
parNumerator?
Type:
number
(optional)
The Pixel Aspect Ratio numerator.
profile?
Type:
string
(optional)
An H.264 profile.
qualityLevel?
Type:
string
(optional)
Leave as STANDARD_QUALITY or choose a different value (which might result in additional costs to run the channel).
- ENHANCED_QUALITY: Produces a slightly better video quality without an increase in the bitrate. Has an effect only when the Rate control mode is QVBR or CBR. If this channel is in a MediaLive multiplex, the value must be ENHANCED_QUALITY.
- STANDARD_QUALITY: Valid for any Rate control mode.
qvbrQualityLevel?
Type:
number
(optional)
Controls the target quality for the video encode.
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.
rateControlMode?
Type:
string
(optional)
The rate control mode.
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.
scanType?
Type:
string
(optional)
Sets the scan type of the output to progressive or top-field-first interlaced.
sceneChangeDetect?
Type:
string
(optional)
The scene change detection.
On: inserts I-frames when the scene change is detected. Off: does not force an I-frame when the scene change is detected.
slices?
Type:
number
(optional)
The number of slices per picture.
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.
softness?
Type:
number
(optional)
Softness.
Selects a quantizer matrix. Larger values reduce high-frequency content in the encoded image.
spatialAq?
Type:
string
(optional)
If set to enabled, adjusts quantization within each frame based on the spatial variation of content complexity.
subgopLength?
Type:
string
(optional)
If set to fixed, uses gopNumBFrames B-frames per sub-GOP.
If set to dynamic, optimizes the number of B-frames used for each sub-GOP to improve visual quality.
syntax?
Type:
string
(optional)
Produces a bitstream that is compliant with SMPTE RP-2027.
temporalAq?
Type:
string
(optional)
If set to enabled, adjusts quantization within each frame based on the temporal variation of content complexity.
timecodeBurninSettings?
Type:
IResolvable
|
Timecode
(optional)
timecodeInsertion?
Type:
string
(optional)
Determines how timecodes should be inserted into the video elementary stream.
disabled: don't include timecodes. picTimingSei: pass through picture timing SEI messages from the source specified in Timecode Config.