Creating a gstreamer bin element

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

Creating a gstreamer bin element

Edgar Thier
Hi,

I am trying to create a bin gstreamer element to automate some things that are related to usb cameras.

However I am unable to find a good tutorial on how to create such an element and I can't make head
or tail of the camerabin or decodebin code.

Any hints on how to get a working bin element would be appreciated.

Regards,

Edgar
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Vnd
Reply | Threaded
Open this post in threaded view
|

Re: Creating a gstreamer bin element

Vnd
HI,

You can go through below link for basics.

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-bin-create.html

Go through decodebin or splitmuxsink code for more understanding.

~ Vinod
Reply | Threaded
Open this post in threaded view
|

Re: Creating a gstreamer bin element

Tim Müller
In reply to this post by Edgar Thier
On Mon, 2016-04-11 at 09:43 +0200, Edgar Thier wrote:

Hi,

> I am trying to create a bin gstreamer element to automate some things
> that are related to usb cameras.
>
> However I am unable to find a good tutorial on how to create such an
> element and I can't make head 
> or tail of the camerabin or decodebin code.
>
> Any hints on how to get a working bin element would be appreciated.

It depends what you want to do exactly, if you want to sub-class GstBin
and register your own element with the GStreamer registry, or if you
just want to create a convenience bin as an abstraction layer in your
application.

For the former you could look at the autodetect plugin in -good.

For the latter, gst_bin_parse_from_description() is the easiest way,
otherwise just create a new bin with gst_bin_new(), add elements to it,
link them, and then add ghostpad(s).

Regards
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com


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