rtspsrc timeout does not exceed 40s

nishitha nishitha.a at ignitarium.com
Mon Jun 8 11:58:09 UTC 2020


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
 DEBUG                rtspsrc
gstrtspsrc.c:4285:gst_rtspsrc_send_keep_alive:<rtspsrc0> creating server
 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: http://gstreamer-devel.966125.n4.nabble.com/

More information about the gstreamer-devel mailing list