Class AMFAV1EncoderSettings
- Assembly
- VisioForge.Core.dll
Configuration settings for AMD AMF AV1 encoder. Implements the VisioForge.Core.Types.X.VideoEncoders.IAV1EncoderSettings
public class AMFAV1EncoderSettings : IAV1EncoderSettings, IVideoEncoder, IMediaBlockSettingsInheritance
Implements
Inherited Members
Properties
Bitrate
Gets or sets the target bitrate in kbit/sec.
public uint Bitrate { get; set; }Property Value
Remarks
0 uses the default value based on the Usage setting.
GOPSize
Gets or sets the Group of Pictures (GOP) size.
public uint GOPSize { get; set; }Property Value
Remarks
Specifies the number of pictures within a GOP. Default is 30.
MaxBitrate
Gets or sets the maximum bitrate in kbit/sec.
public uint MaxBitrate { get; set; }Property Value
Remarks
0 uses the default value based on the Usage setting.
MaxQpI
Gets or sets the maximum allowed QP (Quantization Parameter) value for I frames.
public int MaxQpI { get; set; }Property Value
Remarks
-1 uses the default value based on the Usage setting. Default is -1.
MaxQpP
Gets or sets the maximum allowed QP (Quantization Parameter) value for P frames.
public int MaxQpP { get; set; }Property Value
Remarks
-1 uses the default value based on the Usage setting. Default is -1.
MinQpI
Gets or sets the minimum allowed QP (Quantization Parameter) value for I frames.
public int MinQpI { get; set; }Property Value
Remarks
-1 uses the default value based on the Usage setting. Default is -1.
MinQpP
Gets or sets the minimum allowed QP (Quantization Parameter) value for P frames.
public int MinQpP { get; set; }Property Value
Remarks
-1 uses the default value based on the Usage setting. Default is -1.
Preset
Gets or sets the encoding quality preset.
public AMFAV1EncoderPreset Preset { get; set; }Property Value
Remarks
Default is AMFAV1EncoderPreset.Default.
QpI
Gets or sets the constant QP (Quantization Parameter) for I frames.
public uint QpI { get; set; }Property Value
Remarks
Used when rate control is set to CQP. Default is 26.
QpP
Gets or sets the constant QP (Quantization Parameter) for P frames.
public uint QpP { get; set; }Property Value
Remarks
Used when rate control is set to CQP. Default is 26.
RateControl
Gets or sets the rate control method.
public AMFAV1RateControlMode RateControl { get; set; }Property Value
Remarks
Default is AMFAV1RateControlMode.Default.
RefFrames
Gets or sets the number of reference frames.
public uint RefFrames { get; set; }Property Value
Remarks
Default is 1.
SmartAccessVideo
Gets or sets a value indicating whether AMF SmartAccess Video feature is enabled.
public bool SmartAccessVideo { get; set; }Property Value
Remarks
SmartAccess Video enables GPU-to-GPU direct memory access for improved performance.
Usage
Gets or sets the target usage scenario.
public AMFAV1EncoderUsage Usage { get; set; }Property Value
Remarks
Default is AMFAV1EncoderUsage.Transcoding.
Methods
CreateBlock()
Creates a new AV1 encoder block with these settings.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
A configured VisioForge.Core.MediaBlocks.MediaBlock instance for AV1 encoding.
GetEncoderType()
Gets the type of the encoder.
public AV1EncoderType GetEncoderType()Returns
- AV1EncoderType
-
The VisioForge.Core.Types.X.VideoEncoders.AV1EncoderType indicating this is an AMF encoder.
IsAvailable()
Determines whether this encoder is available.
public static bool IsAvailable()Returns
- bool
-
trueif this encoder is available; otherwise,false.