is it possible to add another src pad in GstBaseSrc class?

Nicolas Dufresne nicolas at ndufresne.ca
Thu Apr 6 14:21:36 UTC 2017


Le jeudi 06 avril 2017 à 09:35 +0200, Dimitrios Katsaros a écrit :
> The problem with that is the interface being provided by the device.
> If it is a single file descriptor with its own interface for
> retrieving frames from all 6 cameras then I can understand needing a
> single source producing multiple pads. If the device provides 6 fds
> for every camera then you are better off making a bin that internally
> creates 6 sources for every fd and then make the bin provide 6 source
> pads. I am not aware of the design behind the Ladybug cameras though.

If we look at uvch264src (c920), it reads a single stream from the
camera and produces 2. It's implementing a bin, with a slave v4l2src
and a demuxer afterward.

My recent abuse of GstBaseSrc, and the reason I concluded that a GstBin
is just a better idea was about wrapping Android Camera HAL 3. We
hacked GstBaseSrc to make it possible, but the end result was a
nightmare.

regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170406/e9dadaeb/attachment.sig>


More information about the gstreamer-devel mailing list