title: Capturing network video using opencv
body: <p>I am using ffserver and ffmpeg combination to capture web camera video and transmit it through my network.</p>
  
  <p>I want to capture this video using opencv and python from another computer. 
  I can see the video (cam1.asf) in the browser of another computer. But my opencv + python code could not capture any frame.</p>
  
  <p>Code for ffserver</p>
  
  <pre><code>HTTPPort 8090
  HTTPBindAddress 0.0.0.0
  MaxHTTPConnections 2000
  MaxClients 1000
  MaxBandWidth 2000
  
  &lt;Feed feed1.ffm&gt;
     File ./tmp/feed1.ffm
     FileMaxSize 1G
     ACL allow 127.0.0.1
  &lt;/Feed&gt;
  
  &lt;Stream cam1.asf&gt;
    Feed feed1.ffm
    Format asf
    VideoCodec msmpeg4v2
    VideoFrameRate 30
    VideoSize vga
  &lt;/Stream&gt;
  </code></pre>
  
  <p>FFmpeg </p>
  
  <pre><code>$ffmpeg -f video4linux2 -i /dev/video0 192.168.1.3 /cam1.ffm
  </code></pre>
  
  <p>This stream can be seen in the browser</p>
  
  <p>But with opencv code </p>
  
  <pre><code>import sys
  import cv2.cv as cv
  import numpy
  
  video="http://http://192.168.1.3:8090/cam1.asf"
  capture =cv.CaptureFromFile(video)
  cv.NamedWindow('Video Stream', 1 )
  while True:
    # capture the current frame
    frame = cv.QueryFrame(capture)
    #if frame is None:
     # break
    #else:
      #detect(frame)
    cv.ShowImage('Video Stream', frame)
    if cv.WaitKey(10) == 27:
      print 'ESC pressed. Exiting ...'
      break
  </code></pre>
  
  <p>I donot get any output in the stream</p>
  
  <p>My aim is to work with the web camera video both at the base station (ie where the web camera is connected) and also at the network location</p>