title: How to parse mjpeg http stream from ip camera?
body: <p>Given below is the code written for getting live stream from an IP Camera.</p>
  
  <pre><code>from cv2 import *
  from cv2 import cv
  import urllib
  import numpy as np
  k=0
  capture=cv.CaptureFromFile("http://IPADDRESS of the camera/axis-cgi/mjpg/video.cgi")
  namedWindow("Display",1)
  
  while True:
      frame=cv.QueryFrame(capture)
      if frame is None:
          print 'Cam not found'
          break
      else:
          cv.ShowImage("Display", frame)
      if k==0x1b:
          print 'Esc. Exiting'
          break
  </code></pre>
  
  <p>On running the code the output that I am getting is:</p>
  
  <pre><code>Cam not found
  </code></pre>
  
  <p>Where am I going wrong? Also, why is frame None here? Is there some problem with the conversion?</p>