(gst-rtsp-server) The media of factory attached to the mount point root path "\" can't be found

Bruce Liang Bruce.Liang at abilitycorp.com.tw
Thu Sep 23 02:44:40 UTC 2021


Hi,

Sorry for typo, it is “/”, not “\”.

I modified “test-appsrc.c” in “gst-rtsp-server/examples” to test if I can mount factory to root path “/”.

I changed line 127 from
  [gst_rtsp_mount_points_add_factory (mounts, "/test", factory);]
to
  [ gst_rtsp_mount_points_add_factory (mounts, "/", factory); ]

And when I use vlc to play the rtsp url, the SETUP response is “404 Not Found”.

It is tested under ubuntu18.04 and gstreamer version is 1.18.5.

Thanks,
Bruce Liang

From: Bruce Liang
Sent: Wednesday, September 22, 2021 7:19 PM
To: 'Discussion of the development of and with GStreamer'
Subject: (gst-rtsp-server) The media of factory attached to the mount point root path "\" can't be found

Hi,

I’m trying to attach factory to the mount point with root path “\” and use vlc to play the rtsp url, but the SETUP response is “404 Not Found”.

Follow the document about [gst_rtsp_mount_points_add_factory]:
https://gstreamer.freedesktop.org/documentation/gst-rtsp-server/rtsp-mount-points.html?gi-language=c
“path is either of the form (/node)+ or the root path '/'.”
It seems that the root path is allowed.

Could someone tell me how to attach factory with root path “\” properly?


The following is the communication sequence:

OPTIONS rtsp://127.0.0.1:8554/ RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)

RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, ANNOUNCE, GET_PARAMETER, PAUSE, PLAY, RECORD, SETUP, SET_PARAMETER, TEARDOWN
Server: GStreamer RTSP server
Date: Wed, 22 Sep 2021 11:07:27 GMT

DESCRIBE rtsp://127.0.0.1:8554/ RTSP/1.0
CSeq: 3
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 3
Content-Type: application/sdp
Content-Base: rtsp://127.0.0.1:8554/
Server: GStreamer RTSP server
Date: Wed, 22 Sep 2021 11:07:27 GMT
Content-Length: 431

v=0
o=- 6942232140052196468 1 IN IP4 127.0.0.1
s=Session streamed with GStreamer
i=rtsp-server
t=0 0
a=tool:GStreamer
a=type:broadcast
a=control:*
a=range:npt=0-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:2097
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=f40015;sprop-parameter-sets=Z/QAFZGbKDAS2AtQYGBkAAADAAXc1lAAPFi2WA==,aOvsRIRA
a=control:stream=0
a=ts-refclk:local
a=mediaclk:sender
SETUP rtsp://127.0.0.1:8554/stream=0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1

RTSP/1.0 404 Not Found
CSeq: 4
Server: GStreamer RTSP server
Date: Wed, 22 Sep 2021 11:07:27 GMT


Thanks,
Bruce Liang
*** Confidentiality Note *** This e-mail message and any accompanying documents are for sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210923/cd8cc099/attachment-0001.htm>


More information about the gstreamer-devel mailing list