GNOME Bugzilla – Bug 767948
rtspsrc does not respect GET_PARAMETER for keep-alive in OPTIONS response
Last modified: 2016-06-28 15:58:54 UTC
The rtspsrc has the option do-rtsp-keep-alive, which defaults to true to periodically send the GET_PARAMETER message to keep the session alive. We are using an Arecont Vision AV112585PM camera which does not report the GET_PARAMETER as a valid option in the OPTIONS RTSP response. rtspsrc sends the GET_PARAMETER message, since do-rtsp-keep-alive defaults to true. This causes the camera to lose control and start sending corrupt frames, and eventually reboot. Specifying the do-rtsp-keep-alive=false solves the issue for this camera, but it's not a scalable solution (since we are using many manufacturer's cameras). Suggested fix: Change the behaviour such that the default setting for do-rtsp-keep-alive is to only send a GET_PARAMETER if GET_PARAMETER is reported as a valid command in the RTSP OPTIONS response. Of course, allowing an override to force on and off would also be useful/sensible.
Make sense, will you provide a patch ?
I certainly can do... might take me a week or so, currently not set up to build gstreamer. (Found this with wireshark).
I have investigated this a bit further and it seems my original report is not 100% correct. On further inspection gstreamer checks whether GET_PARAMETER is supported and if not it sends an RTSP OPTIONS command. I think in this case there is no bug in gst. I'll report the issue to the camera manufacturer.