Class VideoEncoder
- Namespace
- GstVideo
- Assembly
- GstVideo-1.0.dll
public class VideoEncoder : Element, Preset, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
VideoEncoder
- Implements
- Inherited Members
Constructors
VideoEncoder(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public VideoEncoder(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
VideoEncoder(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected VideoEncoder(CreationData data)
Parameters
dataCreationData
VideoEncoder(VideoEncoderHandle)
protected VideoEncoder(VideoEncoderHandle handle)
Parameters
handleVideoEncoderHandle
Fields
MinForceKeyUnitIntervalPropertyDefinition
public static readonly Property<ulong, VideoEncoder> MinForceKeyUnitIntervalPropertyDefinition
Field Value
QosPropertyDefinition
public static readonly Property<bool, VideoEncoder> QosPropertyDefinition
Field Value
Properties
MinForceKeyUnitInterval
public ulong MinForceKeyUnitInterval { get; set; }
Property Value
Qos
public bool Qos { get; set; }
Property Value
Methods
AllocateOutputBuffer(nuint)
public Buffer AllocateOutputBuffer(nuint size)
Parameters
sizenuint
Returns
AllocateOutputFrame(VideoCodecFrame, nuint)
public FlowReturn AllocateOutputFrame(VideoCodecFrame frame, nuint size)
Parameters
frameVideoCodecFramesizenuint
Returns
DeletePreset(string)
public bool DeletePreset(string name)
Parameters
namestring
Returns
DropFrame(VideoCodecFrame)
[Version("1.26")]
public void DropFrame(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
FinishFrame(VideoCodecFrame)
public FlowReturn FinishFrame(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
FinishSubframe(VideoCodecFrame)
[Version("1.18")]
public FlowReturn FinishSubframe(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
GetFrame(int)
public VideoCodecFrame? GetFrame(int frameNumber)
Parameters
frameNumberint
Returns
GetFrames()
public List GetFrames()
Returns
GetGType()
public static Type GetGType()
Returns
GetLatency(out ClockTime, out ClockTime)
public void GetLatency(out ClockTime minLatency, out ClockTime maxLatency)
Parameters
GetMaxEncodeTime(VideoCodecFrame)
[Version("1.14")]
public ClockTimeDiff GetMaxEncodeTime(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
GetMeta(string, string, out string)
public bool GetMeta(string name, string tag, out string value)
Parameters
Returns
GetMinForceKeyUnitInterval()
[Version("1.18")]
public ClockTime GetMinForceKeyUnitInterval()
Returns
GetOldestFrame()
public VideoCodecFrame? GetOldestFrame()
Returns
GetOutputState()
public VideoCodecState? GetOutputState()
Returns
GetPresetNames()
public string[] GetPresetNames()
Returns
- string[]
GetPropertyNames()
public string[] GetPropertyNames()
Returns
- string[]
IsEditable()
[Version("1.6")]
public bool IsEditable()
Returns
IsQosEnabled()
[Version("1.14")]
public bool IsQosEnabled()
Returns
LoadPreset(string)
public bool LoadPreset(string name)
Parameters
namestring
Returns
MergeTags(TagList?, TagMergeMode)
public void MergeTags(TagList? tags, TagMergeMode mode)
Parameters
tagsTagListmodeTagMergeMode
Negotiate()
public bool Negotiate()
Returns
NewFromPointer(nint, bool)
Creates a new managed VideoEncoder instance for a given pointer.
public static VideoEncoder NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new VideoEncoder and sets the properties specified by the construct arguments.
public static VideoEncoder NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ProxyGetcaps(Caps?, Caps?)
public Caps ProxyGetcaps(Caps? caps, Caps? filter)
Parameters
Returns
ReleaseFrame(VideoCodecFrame)
[Version("1.26")]
public void ReleaseFrame(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
RenamePreset(string, string)
public bool RenamePreset(string oldName, string newName)
Parameters
Returns
SavePreset(string)
public bool SavePreset(string name)
Parameters
namestring
Returns
SetLatency(ClockTime, ClockTime)
public void SetLatency(ClockTime minLatency, ClockTime maxLatency)
Parameters
SetMeta(string, string, string?)
public bool SetMeta(string name, string tag, string? value)
Parameters
Returns
SetMinForceKeyUnitInterval(ClockTime)
[Version("1.18")]
public void SetMinForceKeyUnitInterval(ClockTime interval)
Parameters
intervalClockTime
SetMinPts(ClockTime)
[Version("1.6")]
public void SetMinPts(ClockTime minPts)
Parameters
minPtsClockTime
SetOutputState(Caps, VideoCodecState?)
public VideoCodecState? SetOutputState(Caps caps, VideoCodecState? reference)
Parameters
capsCapsreferenceVideoCodecState
Returns
SetQosEnabled(bool)
[Version("1.14")]
public void SetQosEnabled(bool enabled)
Parameters
enabledbool