title: get(cv2.CAP_PROP_FOURCC) return errors with openCV and python
body: <p>I have to read a local <code>.avi</code> files and make it shaw on a window.Here is my code:</p>
  
  <pre><code>import os,cv2
  user=os.path.expanduser('~')
  capture=cv2.VideoCapture(str(user)+"/Downloads/vehicle/Sunny/april21.avi")
  if(capture.isOpened()):
      print "Open"
  else:
      print "Fail to open!"
  fps=capture.get(cv2.CAP_PROP_FPS)
  fourcc=capture.get(cv2.CAP_PROP_FOURCC)
  print fourcc#why fourcc is return 0.0?
  print "fps:%d"%fps
  size=(int(capture.get(cv2.CAP_PROP_FRAME_WIDTH))/2,
      (int)(capture.get(cv2.CAP_PROP_FRAME_HEIGHT))/2
      )
  isStop=1
  while isStop:
      grabbed,frame=capture.read()#frame is None
      cv2.namedWindow("window")
      img=cv2.resize(frame,size,interpolation=cv2.INTER_CUBIC)
      cv2.imshow("window",img)
      c=0xFF&amp;cv2.waitKey(1)
      if c ==27:
          isStop=False
          cv2.destroyAllWindows()
  </code></pre>
  
  <p>But now the result is :</p>
  
  <pre><code>Open
  0.0
  fps:29
  OpenCV Error: Assertion failed (ssize.area() &gt; 0) in resize, file /Users/tom/opencv-3.1.0/modules/imgproc/src/imgwarp.cpp, line 3229
  Traceback (most recent call last):
    File "/Users/tom/Documents/readVideo.py", line 20, in &lt;module&gt;
      img=cv2.resize(frame,size,interpolation=cv2.INTER_CUBIC)
  cv2.error: /Users/tom/opencv-3.1.0/modules/imgproc/src/imgwarp.cpp:3229: error: (-215) ssize.area() &gt; 0 in function resize
  </code></pre>
  
  <p>The only thing I am sure is these codes are right,cause I have created a <code>.avi</code> files through <code>cv2.VideoWriter</code> and it can be read and shown on a window. Thanks for answer.</p>