title: IP Camera access using OpenCV
body: <p>The code given below is for accessing an Axis IP camera using OpenCV. On running the program it first displays "Error in opening cap_ffmpeg_impl..." and then it displays <strong>Camera not found.</strong></p>
  
  <pre><code>#include &lt;opencv\cv.h&gt;
  #include &lt;opencv2\highgui\highgui.hpp&gt;
  #include &lt;opencv2\imgproc\imgproc.hpp&gt;
  #include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  
  using namespace std;
  using namespace cv;
  
  int main()
  {
      Mat frame;
      namedWindow("video", 1);
      VideoCapture cap("http://IPADDRESS/video.mjpg");
      if(!cap.isOpened())
      {
          cout&lt;&lt;"Camera not found"&lt;&lt;endl;
          getchar();
          return -1;
      }
      while ( cap.isOpened() )
      {
          cap &gt;&gt; frame;
          if(frame.empty()) break;
  
          imshow("video", frame);
          if(waitKey(30) &gt;= 0) break;
      }   
      return 0;
  }
  </code></pre>
  
  <p>Where am I going wrong?</p>