RTSP server test-appsrc connection problem
Michael MacIntosh
mmacintosh at linear-systems.com
Wed Feb 7 19:25:18 UTC 2018
Hello,
From what I can tell it looks like it is preparing the media when the
first client connects, but when the first client disconnects the
pipeline state is being set to null, and is calling unprepare. You
might need to handle this event such that you can reconnect to the rtsp
server. You could also potentially try setting the suspend mode
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-server/html/GstRTSPMedia.html#gst-rtsp-media-set-suspend-mode
Personally I have it set to GST_RTSP_SUSPEND_MODE_NONE, but I have a
feeling you need to handle the unprepare so you can prepare again.
I find the line:
0:00:12.859426345 [336m25781[00m 0x67501f50 [36mINFO [00m [00m
rtspstream rtsp-stream.c:1349:find_transport:[00m finding
10.1.41.238:43859 in 2 transports
To be rather suspicious, it almost looks like it doesn't fully remove
the client.
I am also assuming this breaks if you have 1 client disconnect and
reconnect?
I wish I could be more help, but this is a lot to look over.
Cheers,
Michael.
On 2/6/2018 8:06 AM, tanguy wrote:
> Hi Michael,
>
> Here are some logs:
> https://gist.github.com/Mezzano/a28d798120355507ae35a3d1e6400749
>
> 1st client connects
> 2d client connects
> 2d client disconnects
> 1st client disconnects
> 1st client try to connect
>
> When everyone disconnects, it should still be playing.
> In the logs gst_rtsp_media_prepare is called when next client wants to
> connect (00:22.596375) and (00:33.488205).
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list