title: Receiving RTSP stream using FFMPEG library
body: <p>I have an IPCamera on my LAN streaming video using RTSP. I have been able to capture and display it successfully using ffplay command:</p>
  
  <pre><code>ffplay rtsp://admin:123456@192.168.2.50:7070 
  </code></pre>
  
  <p>(with authentication)</p>
  
  <p>So I would like to achieve the same using programming in C/C++ using <code>ffmpeg</code> library. I guess this must be possible.</p>
  
  <p>So let me phrase two simple questions :</p>
  
  <ol>
  <li><p>How do I receive the stream in a C/C++ program using FFMPEG library? (just provide some URL/tutorial, as google was not helpful)</p></li>
  <li><p>How do I display the received video? (same here, some good URL to direct me).</p></li>
  </ol>