Video surce plugin with multiple pads

Nicolas Dufresne nicolas at ndufresne.ca
Wed Jun 17 12:35:38 UTC 2020


Le jeudi 11 juin 2020 à 03:54 -0500, Myzhar a écrit :
> Hi all,
> I'm going to write a source plugin for a device that has multiple video
> sources.
> 
> I thought to use "GstPushSrc" but I'm not sure that it can support a pad for
> each video source.

GstBaseSrc and GstPushSrc are design for single pad (it's a limitation
of it's threading model). You'll have to build on top of GstElement or
implement multiple GstPushSrc (e.g. with a shared context/singleton).

> 
> The plugin is for a stereo camera and it should stream Left RGB image, Right
> RGB image and the Depth map.
> 
> Any suggestion?

In GStreamer, stereo image are stored in a single GstBuffer. Split
allocation views can be express as a top/bottom placement and two
GstMemory stored in GstBuffer.

https://gstreamer.freedesktop.org/documentation/additional/design/stereo-multiview-video.html?gi-language=c

> 
> Thank you
> Walter
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list