How to encapsulate multiple GStreamer elements in a plugin?

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

How to encapsulate multiple GStreamer elements in a plugin?

Kiran Kumar
Hi,

I am new to GStreamer framework. 

Are there any guides/reference manuals which explains how to create and encapsulate multiple elements in a single plugin?

The GStreamer plugin reference manual explains development of a plugin with only one element. 

Thanks in advance.

Kiran

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

Re: How to encapsulate multiple GStreamer elements in a plugin?

Sebastian Dröge-3
On Fr, 2016-08-12 at 10:50 -0700, Kiran Kumar wrote:
> Hi,
>
> I am new to GStreamer framework. 
>
> Are there any guides/reference manuals which explains how to create
> and encapsulate multiple elements in a single plugin?
>
> The GStreamer plugin reference manual explains development of a
> plugin with only one element. 

You just call gst_element_register() multiple times in your plugin init
function. See all the examples in gst-plugins-* and
gstreamer/plugins/elements, for example:
https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/ext/opus/gstopus.c#n29

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to encapsulate multiple GStreamer elements in a plugin?

Kiran Kumar
Awesome! Thanks for the link.

On Sat, Aug 13, 2016 at 3:31 AM, Sebastian Dröge <[hidden email]> wrote:
On Fr, 2016-08-12 at 10:50 -0700, Kiran Kumar wrote:
> Hi,
>
> I am new to GStreamer framework. 
>
> Are there any guides/reference manuals which explains how to create
> and encapsulate multiple elements in a single plugin?
>
> The GStreamer plugin reference manual explains development of a
> plugin with only one element. 

You just call gst_element_register() multiple times in your plugin init
function. See all the examples in gst-plugins-* and
gstreamer/plugins/elements, for example:
https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/ext/opus/gstopus.c#n29

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.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