Class NVENCHEVCEncoderSettings
- Assembly
- VisioForge.Core.dll
Nvidia NVENC HEVC encoder settings. Implements the VisioForge.Core.Types.X.VideoEncoders.NVENCBaseEncoderSettings. Implements the VisioForge.Core.Types.X.VideoEncoders.IHEVCEncoderSettings.
public class NVENCHEVCEncoderSettings : NVENCBaseEncoderSettings, IHEVCEncoderSettings, IVideoEncoder, IMediaBlockSettings, IEncoderTextInfoInheritance
Implements
Inherited Members
Constructors
NVENCHEVCEncoderSettings()
Initializes a new instance of the VisioForge.Core.Types.X.VideoEncoders.NVENCHEVCEncoderSettings class.
public NVENCHEVCEncoderSettings()NVENCHEVCEncoderSettings(VideoQuality)
Initializes a new instance of the VisioForge.Core.Types.X.VideoEncoders.NVENCHEVCEncoderSettings class.
public NVENCHEVCEncoderSettings(VideoQuality quality)Parameters
qualityVideoQuality-
The quality.
Fields
Name
The name.
public static readonly string NameField Value
Properties
BAdaptive
Gets or sets a value indicating whether adaptive B-frame insert when lookahead is enabled.
public bool BAdaptive { get; set; }Property Value
BFrames
Gets or sets the number of B-frames between I and P.
public uint BFrames { get; set; }Property Value
HEVCParseInferTimestamps
Gets or sets h265parse infer-ts setting. Null means use GStreamer default.
public bool? HEVCParseInferTimestamps { get; set; }Property Value
- bool?
HEVCParsePtsInterpolation
Gets or sets h265parse pts-interpolation setting. Null means use GStreamer default.
public bool? HEVCParsePtsInterpolation { get; set; }Property Value
- bool?
Level
Gets or sets the level.
public NVENCHEVCLevel Level { get; set; }Property Value
NumSlices
Gets or sets the number of slices each encoded frame is split into. 0 by default, which leaves the slice layout to NVENC and the selected preset.
public uint NumSlices { get; set; }Property Value
Remarks
The supported range is 0 to 32, the range of the GStreamer nvh265encnum-slices
property. A value of 1 or more makes NVENC encode every frame as exactly that many slices;
0 restores the default layout. A value above 32, like a value the element does not support
on this system, is not applied: the encode continues with the default layout, and a pipeline
built from these settings reports it as a discarded setting. VisioForge.Core.Types.X.VideoEncoders.NVENCHEVCEncoderSettings.GetParameters
leaves it out of the launch string without a report.
The property is only registered by the GStreamer NVENC plugin when the GPU and driver report support for dynamic slice mode, so it is not available on every NVIDIA system. When it is missing, a value of 1 or more is discarded and reported as a warning naming the property; the encode itself continues with the default layout.
Splitting a frame into slices does not by itself make encoding faster or smaller. Set this only when the receiving side needs a slice layout, for example for a decoder or a transport that can begin decoding before the whole frame has arrived.
ParseStream
Gets or sets a value indicating whether to parse the video stream. True by default. Disable it for SRT streaming.
public bool ParseStream { get; set; }Property Value
Profile
Gets or sets the profile.
public NVENCHEVCProfile Profile { get; set; }Property Value
RCLookahead
Gets or sets the number of frames for frame type lookahead.
public uint RCLookahead { get; set; }Property Value
TemporalAQ
Gets or sets a value indicating whether Temporal Adaptive Quantization is enabled.
public bool TemporalAQ { get; set; }Property Value
UseAUD
Gets or sets a value indicating whether AU(Access Unit) delimiter will be used.
public bool UseAUD { get; set; }Property Value
VBVBufferSize
Gets or sets the VBV(HRD) buffer size in Kbits (0 = NVENC default).
public uint VBVBufferSize { get; set; }Property Value
WeightedPrediction
Gets or sets a value indicating whether weighted prediction is enabled.
public bool WeightedPrediction { get; set; }Property Value
Methods
CreateBlock()
Creates the block.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
MediaBlock.
GetCaps()
Gets the caps.
public string GetCaps()Returns
- string
-
System.String.
GetEncoderType()
Gets the type of the encoder.
public HEVCEncoderType GetEncoderType()Returns
- HEVCEncoderType
-
H264EncoderType.
GetLevelList()
Gets the level list.
public static IEnumerable<string> GetLevelList()Returns
- IEnumerable<string>
-
IEnumerable<System.String>.
GetParameters()
Gets the encoder parameters as a string.
public string GetParameters()Returns
- string
-
String containing all encoder parameters.
GetProfileList()
Gets the profile list.
public static IEnumerable<string> GetProfileList()Returns
- IEnumerable<string>
-
IEnumerable<System.String>.
IsAvailable()
Determines whether this encoder is available.
public static bool IsAvailable()Returns
- bool
-
trueif this encoder is available; otherwise,false.
ToString()
Returns a String that represents this instance.
public override string ToString()