title: Connect to IP Camera Using Emgu CV's Capture = New Capture()
body: <p>Using Visual Basic 2008 and Emgu CV, I can capture the stream of a webcam on my PC. <strong>What I want to do is connect to an IP camera, knowing its URL, using Capture = New Capture().</strong> </p>
  
  <p>Here is the code I have:</p>
  
  <pre><code>Imports Emgu.CV
  Imports Emgu.CV.Util
  Imports Emgu.CV.Structure
  
  Public Class Form1
  
  Dim capturez As Capture = New Capture("rtsp://[IP Address]/mpeg4/media.amp")
  
  Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  
      Dim imagez As Image(Of Bgr, Byte) = capturez.QueryFrame()
      PictureBox1.Image = imagez.ToBitmap()
  
  End Sub
  
  End Class
  </code></pre>
  
  <p>I get the following error: <em>Unable to create capture from rtsp://[IP Address]/mpeg4/media.amp</em></p>
  
  <p>Is it possible to do this using Capture = New Capture? If not, is their any other method?</p>
  
  <p>Thanks.</p>