Class GstreamerVideoSourceConfig
Encoded ingest from a GStreamer pipeline.
public sealed class GstreamerVideoSourceConfig : Google.Protobuf.IMessage<GstreamerVideoSourceConfig>, Google.Protobuf.IBufferMessage
- Inheritance
-
GstreamerVideoSourceConfig
- Implements
-
IBufferMessage
- Extension Methods
Constructors
GstreamerVideoSourceConfig()
public GstreamerVideoSourceConfig()
GstreamerVideoSourceConfig(GstreamerVideoSourceConfig)
public GstreamerVideoSourceConfig(GstreamerVideoSourceConfig other)
Parameters
Fields
CodecFieldNumber
Field number for the "codec" field.
public const int CodecFieldNumber = 2
Field Value
PipelineFieldNumber
Field number for the "pipeline" field.
public const int PipelineFieldNumber = 1
Field Value
RateControlFieldNumber
Field number for the "rate_control" field.
public const int RateControlFieldNumber = 4
Field Value
ResolutionFieldNumber
Field number for the "resolution" field.
public const int ResolutionFieldNumber = 3
Field Value
Properties
Codec
Codec expected from the pipeline; inferred from pipeline caps when omitted.
public VideoCodec Codec { get; set; }
Property Value
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasCodec
Gets whether the "codec" field is set
public bool HasCodec { get; }
Property Value
HasPipeline
Gets whether the "pipeline" field is set
public bool HasPipeline { get; }
Property Value
Parser
public static Google.Protobuf.MessageParser<GstreamerVideoSourceConfig> Parser { get; }
Property Value
- MessageParser<GstreamerVideoSourceConfig>
Pipeline
GStreamer launch description for the encoded producer pipeline.
Must contain appsink name=lk_appsink, or leave exactly one encoded
video source pad unlinked for the source to attach one to.
public string Pipeline { get; set; }
Property Value
RateControl
Forwards WebRTC rate-control targets to an encoder element's bitrate property. Without this, the pipeline encodes at a fixed bitrate.
public GstreamerRateControl RateControl { get; set; }
Property Value
Resolution
Encoded frame resolution. When omitted, it is discovered from the pipeline's negotiated caps; when set, the pipeline output is verified against it.
public VideoSourceResolution Resolution { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearCodec()
Clears the value of the "codec" field
public void ClearCodec()
ClearPipeline()
Clears the value of the "pipeline" field
public void ClearPipeline()
Clone()
public GstreamerVideoSourceConfig Clone()
Returns
Equals(GstreamerVideoSourceConfig)
public bool Equals(GstreamerVideoSourceConfig other)
Parameters
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(GstreamerVideoSourceConfig)
public void MergeFrom(GstreamerVideoSourceConfig other)
Parameters
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream