After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767948 - rtspsrc does not respect GET_PARAMETER for keep-alive in OPTIONS response
rtspsrc does not respect GET_PARAMETER for keep-alive in OPTIONS response
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
unspecified
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-22 14:24 UTC by Ben White
Modified: 2016-06-28 15:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben White 2016-06-22 14:24:01 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.
Comment 1 Nicolas Dufresne (ndufresne) 2016-06-22 15:26:01 UTC
Make sense, will you provide a patch ?
Comment 2 Ben White 2016-06-22 15:34:56 UTC
I certainly can do... might take me a week or so, currently not set up to build gstreamer. (Found this with wireshark).
Comment 3 Ben White 2016-06-28 15:58:54 UTC
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.