How to create RTSP server.

Vnd vndkst at yahoo.com
Wed Jan 18 10:52:06 UTC 2017


Hi all,

I am using rtspclientsink for RTSP streaming.

With Wowza streaming engine below pipeline works as expected. 
gst-launch-1.0 videotestsrc ! video/x-raw ! x264enc ! mpegtsmux !
rtspclientsink name=sink location=rtsp://127.0.0.1:1935/live/myStream

I want to create RTSP streaming engine using Gstreamer.
when I create RTSP streaming server using Gstreamer RTSP server. I am not
able to stream. I have given snippet of RTSP server code and clientsink
pipeline. 

{
  server = gst_rtsp_server_new ();
  mounts = gst_rtsp_server_get_mount_points (server);
  factory = gst_rtsp_media_factory_new ();
  gst_rtsp_media_factory_set_shared (GST_RTSP_MEDIA_FACTORY (factory),
TRUE);
  gst_rtsp_media_factory_set_launch (factory, "( rtpmp2tdepay name=depay0 !
appsink name=sink async=false )");
  gst_rtsp_mount_points_add_factory (mounts, "/live", factory);
  g_object_unref (mounts);
}

gst-launch-1.0 videotestsrc ! video/x-raw ! x264enc ! mpegtsmux !
rtspclientsink name=sink location=rtsp://127.0.0.1:1935/live/myStream
above rtspclientsink  closes pipeline with below warnings.

WARN rtspclientsink
gstrtspclientsink.c:2712:gst_rtsp_client_sink_try_send:<sink> error: Could
not receive message. (Timeout while waiting for server response)
WARN rtspclientsink
gstrtspclientsink.c:2284:gst_rtsp_client_sink_loop:<sink> we are not
connected
ERROR: from element /GstPipeline:pipeline0/GstRTSPClientSink:sink: Could not
read from resource.
Additional debug info:
gstrtspclientsink.c(2712): gst_rtsp_client_sink_try_send ():
/GstPipeline:pipeline0/GstRTSPClientSink:sink:
Could not receive message. (Timeout while waiting for server response)
WARN rtspclientsink
gstrtspclientsink.c:2714:gst_rtsp_client_sink_try_send:<sink> receive
interrupted
WARN rtspclientsink
gstrtspclientsink.c:3091:gst_rtsp_client_sink_open:<sink> Failed to connect
to server

===========================================================================
Server dumps errors.
WARN   rtspmedia rtsp-media.c:2728:wait_preroll: failed to preroll pipeline
WARN   rtspmedia rtsp-media.c:3032:gst_rtsp_media_prepare: failed to preroll
pipeline
ERROR rtspclient rtsp-client.c:775:find_media: client 0x7f1f580070d0: can't
prepare media
ERROR rtspclient rtsp-client.c:2484:handle_announce_request: client
0x7f1f580070d0: no media
============================================================================

I am suspecting gst_rtsp_media_factory_set_launch () function call in the
RTSP server code. I am not very sure what kind of pipeline I should use to
use rtspclientsink ??
Thank in advance..

~ VND



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-create-RTSP-server-tp4681526.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list