rtspsrc timeout does not exceed 40s

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

rtspsrc timeout does not exceed 40s

nishitha
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: 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
|

AW: rtspsrc timeout does not exceed 40s

Thornton, Keith
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 <[hidden email]> Im Auftrag von nishitha
Gesendet: Montag, 8. Juni 2020 13:58
An: [hidden email]
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&amp;data=02%7C01%7C%7Cccec3e32665249bb33d808d80bba9ebb%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637272243436409649&amp;sdata=k44pCSc5fsyqF0LjHYsuBOAXOZq3hBerRbeB04wOibk%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&amp;data=02%7C01%7C%7Cccec3e32665249bb33d808d80bba9ebb%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637272243436409649&amp;sdata=Dg8PXIAzyTqvb5xLj46QZRjmMzExYTKod1Dl3J%2BIDWE%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: rtspsrc timeout does not exceed 40s

nishitha
Hi,

From rtspsrc log, we can assume that keep-alive is enabled. But there is no
provision to change its time.

The actual use case is that :
I am getting stream from an IP camera as rtsp packets.
I have written a gstreamer app at the client side to display the video.
The IP camera network connection will be removed (or LAN cable will be
disconnected).
But the application should not stop, the rtspsrc should wait till IP camera
is reconnected to network. The video display should continue once camera is
reconnected.

If IP cam is reconnected within 40 seconds, the video display will restart,
but if that timeout increase, the application gets stuck.
I tried increasing timeout, tcp-timeout and retry values. Still no luck.

Shouldn't the rtspsrc continue working after the timeout that we set it to
work ?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel