QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamer::SourceFactory Namespace Reference

Classes

struct  Config
 

Enumerations

enum class  JitterBuffer { None , DropOnLatency , Buffered }
 

Functions

GstElementcreate (const QString &uri, const Config &config)
 

Enumeration Type Documentation

◆ JitterBuffer

RTP jitter-buffer policy for sources that produce application/x-rtp caps. Ignored for non-RTP sources (e.g. raw MPEG-TS over TCP).

Enumerator
None 

No rtpjitterbuffer element; lowest latency, no reordering.

DropOnLatency 

rtpjitterbuffer with drop-on-latency=TRUE.

Buffered 

rtpjitterbuffer with drop-on-latency=FALSE.

Definition at line 10 of file GstSourceFactory.h.

Function Documentation

◆ create()

GstElement * GStreamer::SourceFactory::create ( const QString &  uri,
const Config config 
)

Build a source bin (source [+ tsdemux] [+ rtpjitterbuffer] + parsebin) for uri. Supported schemes: rtsp/rtspt, tcp:// (MPEG-TS), udp:// (H.264 RTP), udp265:// (H.265 RTP), mpegts:// (MPEG-TS over UDP).

Ghost pads on the returned bin are wired lazily; for rtspsrc/tsdemux/parsebin they appear only after upstream produces pads, so callers must connect any downstream pad-added handlers before transitioning to PLAYING.

Returns the source bin or nullptr on failure.

Definition at line 489 of file GstSourceFactory.cc.

References binParser, config, latencyMs, and GStreamer::SourceFactory::Config::latencyMs.

Referenced by GstVideoReceiver::start().