rtspsrc: allow sending keep-alive in shorter intervals
Submitted by a.p..@..ion.it
I am experiencing an annoying issue when trying to stream a h264 video from an IP camera over RTSP.
I am using the following pipeline to stream the video to a videosink window:
gst-launch-1.0 rtspsrc location="rtsp://192.168.0.100/live2.sdp" latency=0 do-rtcp=1 do-rtsp-keep-alive=1 debug=1 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink
This pipeline works well but after, approximately, 60 secs, the server (IP camera) disconnects my client (i.e. the aforementioned pipeline) with the following message:
gstrtspsrc.c(4726): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
The server closed the connection.
By taking a look at the wireshark capture file, I noticed that the get param packet to keep the connection alive (according to RTCP protocol) is not sent by my pipeline.
You can find the wireshark capture and a small log in this GDrive folder:
Thank you for your support.