H264Settings class
H264 Settings
Constructors
- H264Settings({H264AdaptiveQuantization? adaptiveQuantization, AfdSignaling? afdSignaling, int? bitrate, int? bufFillPct, int? bufSize, H264ColorMetadata? colorMetadata, H264ColorSpaceSettings? colorSpaceSettings, H264EntropyEncoding? entropyEncoding, H264FilterSettings? filterSettings, FixedAfd? fixedAfd, H264FlickerAq? flickerAq, H264ForceFieldPictures? forceFieldPictures, H264FramerateControl? framerateControl, int? framerateDenominator, int? framerateNumerator, H264GopBReference? gopBReference, int? gopClosedCadence, int? gopNumBFrames, double? gopSize, H264GopSizeUnits? gopSizeUnits, H264Level? level, H264LookAheadRateControl? lookAheadRateControl, int? maxBitrate, int? minIInterval, int? numRefFrames, H264ParControl? parControl, int? parDenominator, int? parNumerator, H264Profile? profile, H264QualityLevel? qualityLevel, int? qvbrQualityLevel, H264RateControlMode? rateControlMode, H264ScanType? scanType, H264SceneChangeDetect? sceneChangeDetect, int? slices, int? softness, H264SpatialAq? spatialAq, H264SubGopLength? subgopLength, H264Syntax? syntax, H264TemporalAq? temporalAq, H264TimecodeInsertionBehavior? timecodeInsertion})
-
H264Settings.fromJson(Map<
String, dynamic> json) -
factory
Properties
- adaptiveQuantization → H264AdaptiveQuantization?
-
Adaptive quantization. Allows intra-frame quantizers to vary to improve
visual quality.
final
- afdSignaling → AfdSignaling?
-
Indicates that AFD values will be written into the output stream. If
afdSignaling is "auto", the system will try to preserve the input AFD value
(in cases where multiple AFD values are valid). If set to "fixed", the AFD
value will be the value configured in the fixedAfd parameter.
final
- bitrate → int?
-
Average bitrate in bits/second. Required when the rate control mode is VBR
or CBR. Not used for QVBR. In an MS Smooth output group, each output must
have a unique value when its bitrate is rounded down to the nearest multiple
of 1000.
final
- bufFillPct → int?
-
Percentage of the buffer that should initially be filled (HRD buffer model).
final
- bufSize → int?
-
Size of buffer (HRD buffer model) in bits.
final
- colorMetadata → H264ColorMetadata?
-
Includes colorspace metadata in the output.
final
- colorSpaceSettings → H264ColorSpaceSettings?
-
Color Space settings
final
- entropyEncoding → H264EntropyEncoding?
-
Entropy encoding mode. Use cabac (must be in Main or High profile) or
cavlc.
final
- filterSettings → H264FilterSettings?
-
Optional filters that you can apply to an encode.
final
- fixedAfd → FixedAfd?
-
Four bit AFD value to write on all frames of video in the output stream.
Only valid when afdSignaling is set to 'Fixed'.
final
- flickerAq → H264FlickerAq?
-
If set to enabled, adjust quantization within each frame to reduce flicker
or 'pop' on I-frames.
final
- forceFieldPictures → H264ForceFieldPictures?
-
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.
final
- framerateControl → H264FramerateControl?
-
This field indicates how the output video frame rate is specified. If
"specified" is selected then the output video frame rate is determined by
framerateNumerator and framerateDenominator, else if "initializeFromSource"
is selected then the output video frame rate will be set equal to the input
video frame rate of the first input.
final
- framerateDenominator → int?
-
Framerate denominator.
final
- framerateNumerator → int?
-
Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976
fps.
final
- gopBReference → H264GopBReference?
-
Documentation update needed
final
- gopClosedCadence → int?
-
Frequency of closed GOPs. In streaming applications, it is recommended that
this be set to 1 so a decoder joining mid-stream will receive an IDR frame
as quickly as possible. Setting this value to 0 will break output
segmenting.
final
- gopNumBFrames → int?
-
Number of B-frames between reference frames.
final
- gopSize → double?
-
GOP size (keyframe interval) in units of either frames or seconds per
gopSizeUnits.
If gopSizeUnits is frames, gopSize must be an integer and must be greater
than or equal to 1.
If gopSizeUnits is seconds, gopSize must be greater than 0, but need not be
an integer.
final
- gopSizeUnits → H264GopSizeUnits?
-
Indicates if the gopSize is specified in frames or seconds. If seconds the
system will convert the gopSize into a frame count at run time.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → H264Level?
-
H.264 Level.
final
- lookAheadRateControl → H264LookAheadRateControl?
-
Amount of lookahead. A value of low can decrease latency and memory usage,
while high can produce better quality for certain content.
final
- maxBitrate → int?
-
For QVBR: See the tooltip for Quality level
final
- minIInterval → int?
-
Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if
multiplex rate control is used. 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 and/or stretched to the scene change I-frame. GOP stretch
requires enabling lookahead as well as setting I-interval. The normal
cadence resumes for the next GOP. Note: Maximum GOP stretch = GOP size +
Min-I-interval - 1
final
- numRefFrames → int?
-
Number of reference frames to use. The encoder may use more than requested
if using B-frames and/or interlaced encoding.
final
- parControl → H264ParControl?
-
This field indicates how the output pixel aspect ratio is specified. If
"specified" is selected then the output video pixel aspect ratio is
determined by parNumerator and parDenominator, else if
"initializeFromSource" is selected then the output pixsel aspect ratio will
be set equal to the input video pixel aspect ratio of the first input.
final
- parDenominator → int?
-
Pixel Aspect Ratio denominator.
final
- parNumerator → int?
-
Pixel Aspect Ratio numerator.
final
- profile → H264Profile?
-
H.264 Profile.
final
- qualityLevel → H264QualityLevel?
-
Leave as STANDARD_QUALITY or choose a different value (which might result in
additional costs to run the channel).
final
- qvbrQualityLevel → int?
-
Controls the target quality for the video encode. 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:
final
- rateControlMode → H264RateControlMode?
-
Rate control mode.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanType → H264ScanType?
-
Sets the scan type of the output to progressive or top-field-first
interlaced.
final
- sceneChangeDetect → H264SceneChangeDetect?
-
Scene change detection.
final
- slices → int?
-
Number of slices per picture. 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; when no value is specified the encoder will choose
the number of slices based on encode resolution.
final
- softness → int?
-
Softness. Selects quantizer matrix, larger values reduce high-frequency
content in the encoded image.
final
- spatialAq → H264SpatialAq?
-
If set to enabled, adjust quantization within each frame based on spatial
variation of content complexity.
final
- subgopLength → H264SubGopLength?
-
If set to fixed, use gopNumBFrames B-frames per sub-GOP. If set to dynamic,
optimize the number of B-frames used for each sub-GOP to improve visual
quality.
final
- syntax → H264Syntax?
-
Produces a bitstream compliant with SMPTE RP-2027.
final
- temporalAq → H264TemporalAq?
-
If set to enabled, adjust quantization within each frame based on temporal
variation of content complexity.
final
- timecodeInsertion → H264TimecodeInsertionBehavior?
-
Determines how timecodes should be inserted into the video elementary
stream.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited