title: GStreamer pipeline to show an RTSP stream
body: <p>I am pretty new to Gstreamer.</p>
  
  <p>I need to write a video client able to stream data from an RTSP source using GStreamer. I configured VLC to stream a video I have on my laptop using RTSP and I want to create a pipeline to get that stream and show it. I tried using <code>playbin</code> and everything works fine. The point is that I need to fine tune the latency used to stream the video but it seems I cannot do that with playbin.</p>
  
  <p>I tried <code>rtspsrc</code> because it allows to work on the latency but I don't know how to show the video on any window. That's the pipeline I created:</p>
  
  <pre><code>gst-launch-1.0 rtspsrc location=rtsp://localhost:8554/test latency=300 ! decodebin ! autovideosink
  </code></pre>
  
  <p>I get the error "streaming task paused, reason not-negotiated (-4)".</p>
  
  <p>I tried different pipelines after deeply looking on the internet but I definitely miss something. How can I write a gstreamer pipeline to show a video from RTSP?</p>
  
  <p>The final goal is to have a pipeline which can be adjustable at least in terms of latency, so I have two choices:</p>
  
  <ul>
  <li>set the latency of playbin element, if possible. (This element correctly shows the video)</li>
  <li>Show the video with the correct pipeline since rtspsrc allows me to set the latency.</li>
  </ul>
  
  <p>I use Xubuntu 16.04, gstreamer-tools-1.0 (used 0.10 as well) and the video I stream with VLC has mp4 extension.</p>