RTSP server access to pipeline bus

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

RTSP server access to pipeline bus

colmekik
I’ve set up a GStreamer RTSP server and gotten it working to stream both
audio and video the way I’d like. I’m looking for a way to keep track of the
health of the pipelines doing the streaming, e.g. an issue happens with the
live stream camera, the mic has problems. I’ve been poking around the rtsp
server’s source and I haven’t found a great place/way to set up call backs
to monitor if the pipeline errors.

If it were a simple pipeline I'd be able to get the bus from the pipeline
and watch for messages.  Is there a way to do this with the rtsp server?



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

Re: RTSP server access to pipeline bus

Tyler Compton
As you may have found, gst-rtsp-server uses the pipeline's bus and a bus can only have one watcher. One way around this is to make your own subclass of RTSPMedia that overrides the "do_handle_message" method. Then, you can use "set_media_gtype" on your RTSPMediaFactory to make it use your custom RTSPMedia type.

On Thu, Aug 20, 2020 at 12:07 PM colmekik <[hidden email]> wrote:
I’ve set up a GStreamer RTSP server and gotten it working to stream both
audio and video the way I’d like. I’m looking for a way to keep track of the
health of the pipelines doing the streaming, e.g. an issue happens with the
live stream camera, the mic has problems. I’ve been poking around the rtsp
server’s source and I haven’t found a great place/way to set up call backs
to monitor if the pipeline errors.

If it were a simple pipeline I'd be able to get the bus from the pipeline
and watch for messages.  Is there a way to do this with the rtsp server?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.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