Table of Contents

Class GstreamerVideoSourceConfig

Namespace
LiveKit.Proto

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

other GstreamerVideoSourceConfig

Fields

CodecFieldNumber

Field number for the "codec" field.

public const int CodecFieldNumber = 2

Field Value

int

PipelineFieldNumber

Field number for the "pipeline" field.

public const int PipelineFieldNumber = 1

Field Value

int

RateControlFieldNumber

Field number for the "rate_control" field.

public const int RateControlFieldNumber = 4

Field Value

int

ResolutionFieldNumber

Field number for the "resolution" field.

public const int ResolutionFieldNumber = 3

Field Value

int

Properties

Codec

Codec expected from the pipeline; inferred from pipeline caps when omitted.

public VideoCodec Codec { get; set; }

Property Value

VideoCodec

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

bool

HasPipeline

Gets whether the "pipeline" field is set

public bool HasPipeline { get; }

Property Value

bool

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

string

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

GstreamerRateControl

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

VideoSourceResolution

Methods

CalculateSize()

public int CalculateSize()

Returns

int

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

GstreamerVideoSourceConfig

Equals(GstreamerVideoSourceConfig)

public bool Equals(GstreamerVideoSourceConfig other)

Parameters

other GstreamerVideoSourceConfig

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

public void MergeFrom(Google.Protobuf.CodedInputStream input)

Parameters

input CodedInputStream

MergeFrom(GstreamerVideoSourceConfig)

public void MergeFrom(GstreamerVideoSourceConfig other)

Parameters

other GstreamerVideoSourceConfig

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream