Using C-API based pipelines in RTSP server (without "launch" arg)

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

Using C-API based pipelines in RTSP server (without "launch" arg)

Dmitry Valento
Hello!

I want to create a RTSP server, which will provide several different
multicast streams. These streams are based on pipelines, which created
using C API (gst_element_factory_make, gst_bin_add_many,
gst_element_link_many, g_object_set).
Therefore the method " gst_rtsp_media_factory_set_launch" couldn't be used.

Could you please give me a list of steps, which I have to implement for
use C-API based pipelines in RTSP server?

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

Re: Using C-API based pipelines in RTSP server (without "launch" arg)

Sebastian Dröge-3
On Thu, 2016-10-20 at 13:19 +0300, Dmitry Valento wrote:

> Hello!
>
> I want to create a RTSP server, which will provide several different 
> multicast streams. These streams are based on pipelines, which
> created 
> using C API (gst_element_factory_make, gst_bin_add_many, 
> gst_element_link_many, g_object_set).
> Therefore the method " gst_rtsp_media_factory_set_launch" couldn't be
> used.
>
> Could you please give me a list of steps, which I have to implement
> for  use C-API based pipelines in RTSP server?
You have to implement a subclass of GstRTSPMediaFactory and override
the create_element() vfunc... from which you return a GstBin that
contains your elements. The payloaders must be called pay%d, e.g. pay0,
pay1, etc.

--
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 (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Using C-API based pipelines in RTSP server (without "launch" arg)

bomba
Sebastian Dröge-3 wrote
You have to implement a subclass of GstRTSPMediaFactory and override
the create_element() vfunc... from which you return a GstBin that
contains your elements. The payloaders must be called pay%d, e.g. pay0,
pay1, etc.
How do you get bus messages after overriding create_element() ?
Reply | Threaded
Open this post in threaded view
|

Re: Using C-API based pipelines in RTSP server (without "launch" arg)

Sebastian Dröge-3
On Wed, 2016-11-02 at 03:54 -0700, bomba wrote:
> Sebastian Dröge-3 wrote
> > You have to implement a subclass of GstRTSPMediaFactory and
> > override
> > the create_element() vfunc... from which you return a GstBin that
> > contains your elements. The payloaders must be called pay%d, e.g.
> > pay0,
> > pay1, etc.
>
> How do you get bus messages after overriding create_element() ?

Why do you need to get bus messages? You could return a GstBin subclass
there where you override the GstBin::handle_message() vfunc to
intercept any message coming from child elements of it.

--
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 (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Using C-API based pipelines in RTSP server (without "launch" arg)

bomba
In reply to this post by Sebastian Dröge-3
Where should I link the elements in the bin?