Video surce plugin with multiple pads

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Video surce plugin with multiple pads

Myzhar
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.

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

Any suggestion?

Thank you
Walter



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Walter Lucetti
www.myzhar.com
Reply | Threaded
Open this post in threaded view
|

Re: Video surce plugin with multiple pads

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel