title: rtspclientsink test pipeline from command line
body: <p>I would like to stream with rtsp using GStreamer pipeline elements. First, I checked with gst-inspect-1.0 that rtspclientsink is available:</p>
  <pre><code>xilinx-k26-starterkit-2020_2:/# gst-inspect-1.0 | grep rtsp
  rtspclientsink:  rtspclientsink: RTSP RECORD client
  rtsp:  rtspsrc: RTSP packet receiver
  rtsp:  rtpdec: RTP Decoder
  </code></pre>
  <p>Then, wrote simplest pipeline and tested it with videotestsrc as source and kmssink as the sink. Following pipeline works well:</p>
  <pre><code>gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080 ! kmssink bus-id=fd4a0000.zynqmp-display fullscreen-overlay=1 sync=false
  </code></pre>
  <p>Then, changed sink to rtspclientsink:</p>
  <pre><code>gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080 !  rtspclientsink location=rtsp://localhost:554/test
  </code></pre>
  <p>However, even with a simple pipeline, stream could not be started and encountered with the error:</p>
  <pre><code>xilinx-k26-starterkit-2020_2:/# gst-launch-1.0 videotestsrc ! video/x-raw, width=1920,height=1080 ! rtspclientsink location=rtsp://localhost:554/test
  Setting pipeline to PAUSED ...
  Pipeline is PREROLLED ...
  Progress: (open) Opening Stream
  Progress: (connect) Connecting to rtsp://localhost:554/test
  ERROR: from element /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could     not open resource for reading and writing.
  Additional debug info:
  ../../../gst-rtsp-server-1.16.1/gst/rtsp-sink/gstrtspclientsink.c(3236):     gst_rtsp_client_sink_connect_to_server (): /GstPipeline:pipeline0    /GstRTSPClientSink:rtspclientsink0:
  Failed to connect. (Generic error)
  ERROR: pipeline doesn't want to preroll.
  Setting pipeline to PAUSED ...
  Setting pipeline to READY ...
  Setting pipeline to NULL ...
  Freeing pipeline ...
  </code></pre>
  <p>Could anyone enlighten me about the error and the way I can use rtspclientsink as a sink? I also considered to stream with a script (given below) which uses rtsp server as follows but I wonder is it possible to use rtspclientsink as an pipeline element.Thanks.</p>
  <pre><code>#include &lt;gst/gst.h&gt;
  #include &lt;gst/rtsp-server/rtsp-server.h&gt;
  #define DEFAULT_RTSP_PORT &quot;9001&quot;
  ...(some code)
  /* create a server instance */
  server = gst_rtsp_server_new ();
  g_object_set (server, &quot;service&quot;, port, NULL);
  mounts = gst_rtsp_server_get_mount_points (server);
  
  factory = gst_rtsp_media_factory_new ();
  gst_rtsp_media_factory_set_launch (factory, argv[1]);
  gst_rtsp_media_factory_set_shared (factory, TRUE);
  ...(some code that creates pipeline and calls rtsp stream function)
  </code></pre>