passing pipeline to GstRTSPMediaFactory

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

passing pipeline to GstRTSPMediaFactory

Tristan Matthews-2
Hello,

I've been experimenting with gstrtspserver in this repo:
https://github.com/tmatth/gst-prototypes/tree/master/gstrtspserver

I was wondering how I could pass an existing pipeline (src->encoder->payloader) to the GstRTSPMediaFactory instead of using gst_rtsp_media_factory_set_launch. Should I subclass GstRTSPMediaFactory and add a gst_rtsp_media_factory_set_bin method?

Best,
Tristan



--
Tristan Matthews
email: [hidden email]
web: http://tristanswork.blogspot.com

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

Re: passing pipeline to GstRTSPMediaFactory

Wim Taymans
On 02/21/2011 07:49 PM, Tristan Matthews wrote:
> Hello,
>
> I've been experimenting with gstrtspserver in this repo:
> https://github.com/tmatth/gst-prototypes/tree/master/gstrtspserver
>
> I was wondering how I could pass an existing pipeline
> (src->encoder->payloader) to the GstRTSPMediaFactory instead of using
> gst_rtsp_media_factory_set_launch. Should I subclass GstRTSPMediaFactory
> and add a gst_rtsp_media_factory_set_bin method?

You subclass GstRTSPMediaFactory and override the get_element method.
Take a look at what the default implementation of that method does to
get the idea.

Wim

>
> Best,
> Tristan
>
>
>
> --
> Tristan Matthews
> email: [hidden email] <mailto:[hidden email]>
> web: http://tristanswork.blogspot.com
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: passing pipeline to GstRTSPMediaFactory

Tristan Matthews-2
2011/2/21 Wim Taymans <[hidden email]>
On 02/21/2011 07:49 PM, Tristan Matthews wrote:
Hello,

I've been experimenting with gstrtspserver in this repo:
https://github.com/tmatth/gst-prototypes/tree/master/gstrtspserver

I was wondering how I could pass an existing pipeline
(src->encoder->payloader) to the GstRTSPMediaFactory instead of using
gst_rtsp_media_factory_set_launch. Should I subclass GstRTSPMediaFactory
and add a gst_rtsp_media_factory_set_bin method?

You subclass GstRTSPMediaFactory and override the get_element method. Take a look at what the default implementation of that method does to get the idea.

Ok, in that case I would just add a GstBin property in the subclass. Should i use the base class' lock when changing the bin? Or should the derived class have its own lock?

-t
 

Wim


Best,
Tristan



--
Tristan Matthews
email: [hidden email] <mailto:[hidden email]> _______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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



--
Tristan Matthews
email: [hidden email]
web: http://tristanswork.blogspot.com

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