LiveKit C++ Client SDK v1.13.0
Real-time audio/video/data SDK for C++
Loading...
Searching...
No Matches
livekit::capture::GstreamerVideoSourceConfig Struct Reference

Configuration for encoded ingest from a GStreamer pipeline. More...

#include <capture_source.h>

Public Attributes

std::string pipeline
 GStreamer launch description for the encoded producer pipeline.
 
std::optional< VideoCodec > codec
 Codec expected from the pipeline; inferred from pipeline caps when omitted.
 
std::optional< CaptureResolution > resolution
 Encoded frame resolution.
 
std::optional< GstreamerRateControl > rate_control
 Forwards WebRTC rate-control targets to an encoder element's bitrate property.
 

Detailed Description

Configuration for encoded ingest from a GStreamer pipeline.

Member Data Documentation

◆ pipeline

std::string livekit::capture::GstreamerVideoSourceConfig::pipeline

GStreamer launch description for the encoded producer pipeline.

Note
Must contain appsink name=lk_appsink, or leave exactly one encoded video source pad unlinked for the source to attach one to.

◆ rate_control

std::optional<GstreamerRateControl> livekit::capture::GstreamerVideoSourceConfig::rate_control

Forwards WebRTC rate-control targets to an encoder element's bitrate property.

Without this, the pipeline encodes at a fixed bitrate.

◆ resolution

std::optional<CaptureResolution> livekit::capture::GstreamerVideoSourceConfig::resolution

Encoded frame resolution.

When omitted, it is discovered from the pipeline's negotiated caps; when set, the pipeline output is verified against it.


The documentation for this struct was generated from the following file: