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 753583 - RTSP Server sends Not Found error if mount point is set to "/"
RTSP Server sends Not Found error if mount point is set to "/"
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
1.4.5
Other Linux
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-13 11:21 UTC by Marcin Lewandowski
Modified: 2015-08-13 11:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcin Lewandowski 2015-08-13 11:21:46 UTC
The following piece of code (Vala)

rtsp_factory = new Gst.RTSPServer.MediaFactory();
rtsp_factory.set_launch(pipeline_description);
rtsp_factory.set_shared(true);
rtsp_server.get_mount_points().add_factory("/", rtsp_factory);

Will cause Not Found error in the client

vagrant@trusty64:/vagrant$ gst-launch-1.0 playbin uri=rtsp://example.com:6000/
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://plumber1.stag.srv.radiokit.org:6000/
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not write to resource.
Additional debug info:
gstrtspsrc.c(6450): gst_rtspsrc_setup_streams (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Error (404): Not Found

In the debug info at the server the following information appears:

0:00:24.850234488  4980       0xd22540 ERROR             rtspclient rtsp-client.c:641:find_media: client 0xd588b0: no factory for path /stream=0
0:00:24.850375091  4980       0xd22540 ERROR             rtspclient rtsp-client.c:1993:handle_setup_request: client 0xd588b0: media '/stream=0' not found

The issue does not happen if mountpoint is set to "/something" instead of "/". It seems that there's a fault in function that extracts mount point name from media URI.
Comment 1 Sebastian Dröge (slomo) 2015-08-13 11:26:55 UTC
The mount point being / is not supported by the RTSP spec.