AW: rtspsrc timeout does not exceed 40s

Thornton, Keith keith.thornton at zeiss.com
Tue Jun 9 05:32:55 UTC 2020


Hi,
The keep alive timeout is proposed by the server in the SETUP-Response and defaults to 60 seconds. If you are using VLC as a server you need to find out how to set live555 timeout. If you use a Gstreamer Server there is an api gst_rtsp_session_set_timeout.
Gruesse

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von nishitha
Gesendet: Montag, 8. Juni 2020 13:58
An: gstreamer-devel at lists.freedesktop.org
Betreff: rtspsrc timeout does not exceed 40s

Hi,

A vlc player is setup to act as rtsp server. Following command runs at the client side.

gst-launch-1.0 rtspsrc retry=200 timeout=200000000 tcp-timeout=200000000 location= rtsp://10.201.4.233:8554/test ! rtph264depay  ! h264parse  !
avdec_h264 ! videoconvert !  xvimagesink

I set the timeout of rtspsrc to 200 seconds.  Now when I disconnect client network connection, waits for 1 minute and reconnect again, the pipeline does not regain the connection.

This is the log obtained.

 DEBUG                rtspsrc
gstrtspsrc.c:4718:gst_rtspsrc_loop_udp:<rtspsrc0> timeout, sending keep-alive
 DEBUG                rtspsrc
gstrtspsrc.c:4285:gst_rtspsrc_send_keep_alive:<rtspsrc0> creating server keep-alive
 DEBUG                rtspsrc
gstrtspsrc.c:4699:gst_rtspsrc_loop_udp:<rtspsrc0> doing receive with timeout
54 seconds

If I disconnect only for 20-30 seconds, rtsp pipeline works fine. What can be done to increase the timeout?



--
Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=02%7C01%7C%7Cccec3e32665249bb33d808d80bba9ebb%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637272243436409649&sdata=k44pCSc5fsyqF0LjHYsuBOAXOZq3hBerRbeB04wOibk%3D&reserved=0
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=02%7C01%7C%7Cccec3e32665249bb33d808d80bba9ebb%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637272243436409649&sdata=Dg8PXIAzyTqvb5xLj46QZRjmMzExYTKod1Dl3J%2BIDWE%3D&reserved=0


More information about the gstreamer-devel mailing list