AW: rtspsrc timeout does not exceed 40s

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

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.

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


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:// ! 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:
gstreamer-devel mailing list
gstreamer-devel at

More information about the gstreamer-devel mailing list