gst-rtsp-server DESCRIBE fail if previous client PLAY without SETUP all streams

Bruce Liang Bruce.Liang at abilitycorp.com.tw
Tue Mar 2 03:58:56 UTC 2021


Hello,

I want to push my own video and audio data to rtsp server, so I choose /gst-rtsp-server/examples/test-appsrc2.c as base to develop my application.

The pipeline description has 2 seperate pipelines in it:(/gst-rtsp-server/examples/test-appsrc2.c)

gst_rtsp_media_factory_set_launch (factory,
      "( appsrc name=videosrc ! h264parse ! rtph264pay name=pay0 pt=96 "
      "  appsrc name=audiosrc ! audioconvert ! rtpL24pay name=pay1 pt=97 )");

The client1 only send SETUP to setup stream0(video stream) and then sends PLAY request(client1 doesn't need audio stream, so it setup video stream only).
And then client2 sends DESCRIBE request and receives [503 Service Unavailable] response.

The debug log shows:
0:00:03.537321800  2007 0x7fffeae68760 ERROR                basesrc gstbasesrc.c:3088:gst_base_src_loop:<audiosrc> pausing task, reason not-linked
0:00:03.538008300  2007 0x7fffeae68760 WARN                 basesrc gstbasesrc.c:3137:gst_base_src_loop:<audiosrc> error: Internal data stream error.
0:00:03.538212500  2007 0x7fffeae68760 WARN                 basesrc gstbasesrc.c:3137:gst_base_src_loop:<audiosrc> error: streaming stopped, reason not-linked (-1)

How can I fix this? Is there any setting I have to feed to gst-rtsp-server before I start it?

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/20210302/bd936764/attachment.htm>


More information about the gstreamer-devel mailing list