title: OpenCV IP Camera RTSP stream
body: <p>I'm trying to access a RTSP video stream from an IP camera using OpenCV and Java. I can access the stream using VLC player with the following format: <code>rtsp://192.168.1.10:554/rtsp_live0</code> but when I try to use OpenCV the video stream seems to always be closed.</p>
  
  <p>The code I'm using... (simplified)</p>
  
  <pre><code>VideoCapture capture = new VideoCapture();
  capture.open("rtsp://192.168.1.10:554/rtsp_live0");
  while(!capture.isOpened())
      System.out.print("Not opened :( \r");
  </code></pre>
  
  <p>I have a Mustcam H806P and found the stream URI from this website: <a href="http://www.ispyconnect.com/man.aspx?n=ipcamera" rel="nofollow">http://www.ispyconnect.com/man.aspx?n=ipcamera</a></p>
  
  <p>What am I doing wrong?</p>