Ask Your Question

zzdts's profile - activity

2015-05-29 01:24:44 -0600 received badge  Editor (source)
2015-05-28 23:46:10 -0600 answered a question Video Not Saving - Python Binding OpenCV

I have the same problem too ...

2015-05-28 23:46:10 -0600 asked a question why i can't save video?

I used the sample in doc/py_tutorials/py_gui/py_video_display/py_video_display.markdown I can see the video display in window but i can't get video saved in disk,no file was created. the strace message : link text

video is from camera. ubuntu12.04 opencv3.0 in following code:

code:

  fourcc =cv2.VideoWriter_fourcc(*'XVID')
  out =cv2.VideoWriter("/home/jone/out.avi",fourcc, 30.0, (640,480),True)
  if out.isOpened()==False:
      print "VideoWriter fourcc  failed!! ",fourcc       
      os._exit(0) 
  else:
      print "fourcc is ",fourcc

I found out.isOpened() returned a False??? why??