Class NVENCH264EncoderSettings
- Assembly
- VisioForge.Core.dll
Nvidia NVENC H264 encoder settings. Implements the VisioForge.Core.Types.X.VideoEncoders.NVENCBaseEncoderSettings. Implements the VisioForge.Core.Types.X.VideoEncoders.IH264EncoderSettings.
public class NVENCH264EncoderSettings : NVENCBaseEncoderSettings, IH264EncoderSettings, IVideoEncoder, IMediaBlockSettings, IEncoderTextInfoInheritance
Implements
Inherited Members
Constructors
NVENCH264EncoderSettings()
Initializes a new instance of the VisioForge.Core.Types.X.VideoEncoders.NVENCH264EncoderSettings class.
public NVENCH264EncoderSettings()NVENCH264EncoderSettings(VideoQuality)
Initializes a new instance of the VisioForge.Core.Types.X.VideoEncoders.NVENCH264EncoderSettings class.
public NVENCH264EncoderSettings(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
H264ParseInferTimestamps
Gets or sets h264parse infer-ts setting. Defaults to true. Set to null to use GStreamer default.
public bool? H264ParseInferTimestamps { get; set; }Property Value
- bool?
H264ParsePtsInterpolation
Gets or sets h264parse pts-interpolation setting. Defaults to true.
public bool? H264ParsePtsInterpolation { get; set; }Property Value
- bool?
KeyFrameDetected
Occurs when on key frame detected. Timestamp is in nanoseconds.
public KeyFrameDetectedDelegate KeyFrameDetected { get; set; }Property Value
Level
Gets or sets the level.
public NVENCH264Level 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 nvh264encnum-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.NVENCH264EncoderSettings.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 NVENCH264Profile 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 H264EncoderType GetEncoderType()Returns
- H264EncoderType
-
H264EncoderType.
GetLevelList()
Gets the level list.
public static IEnumerable<string> GetLevelList()Returns
- IEnumerable<string>
-
IEnumerable<System.String>.
GetParameters()
Gets the parameters string.
public string GetParameters()Returns
- string
-
System.String.
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()