rtspsrc: allow sending keep-alive in shorter intervals
Submitted by a.p..@..ion.it
Link to original bug (#788294)
Description
Dear all,
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:
https://drive.google.com/drive/folders/0B_a9LRsqB6MfRTl3SE1TcmRzVXc?usp=sharing
Thank you for your support.
Best,
AP
Version: 1.8.3