title: How to pass authentication in GST Launch?
body: <p>I am passing User name and password in the URI. But, I am getting Unauthorized Error. I followed this doc <a href="https://developer.ridgerun.com/wiki/index.php?title=GstRtspSink_-_Basic_Authentication" rel="nofollow noreferrer">https://developer.ridgerun.com/wiki/index.php?title=GstRtspSink_-_Basic_Authentication</a>. According to the documentation, I can send uername and password in URI. It's working for VLC but not for GST launch.</p>
  <p>For VLC:</p>
  <pre><code>vlc rtsp://user:pass@127.0.0.1:7001/camera-id
  </code></pre>
  <p>For GST-Launch:</p>
  <pre><code>gst-launch-1.0 rtspsrc location=&quot;rtsp://user:pass@127.0.0.1:7001/camera-id&quot; 
  </code></pre>
  <p>Error:</p>
  <pre><code>Setting pipeline to PAUSED ...
  Pipeline is live and does not need PREROLL ...
  Progress: (open) Opening Stream
  Progress: (connect) Connecting to rtsp://user:pass@127.0.0.1:7001/camera-id
  Progress: (open) Retrieving server options
  ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Not authorized to access resource.
  Additional debug info:
  gstrtspsrc.c(5623): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
  Unauthorized
  ERROR: pipeline doesn't want to preroll.
  Setting pipeline to PAUSED ...
  Setting pipeline to READY ...
  Setting pipeline to NULL ...
  Freeing pipeline ...
  </code></pre>
  <p>How to pass authentication in GSt Launch?
  I can provide more details if you have anything from my side</p>
  <p>Any help would be appreciable.</p>