title: Java openCV 3.0 VideoCapture rtsp stream from Foscam FI9805W
body: <p>I'm trying to get a videostream vom an ip cam with opencv 3.0 in java.
  Everything works fine if i look for my webcam with this code:</p>
  
  <pre><code>VideoCapture camera = new VideoCapture(0);
  </code></pre>
  
  <p>but with the RTSP Stream I get an error.
  What I found was that it should work to get a RTSP Stream like this:</p>
  
  <pre><code>VideoCapture camera = new VideoCapture("rtsp://test:test@192.168.1.76:88/videoMain");
  </code></pre>
  
  <p>User: test</p>
  
  <p>Password: test</p>
  
  <p>I am using a Foscam FI9805W. On this website are possible ways to connect but nothings works (<a href="http://www.ispyconnect.com/man.aspx?n=foscam" rel="nofollow">http://www.ispyconnect.com/man.aspx?n=foscam</a>)</p>
  
  <p>I only can connect via VLC Player and the rtsp://test:test@192.168.1.76:88/videoMain.</p>
  
  <p>Does anyone know what I am doing wrong or could give me a hint where to search? I'm out of ideas.
  Or does anyone know a better way to access a RTSP stream with java?</p>
  
  <p>Thanks</p>