Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'

I am trying to capture video throught this tutorial: http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html but when I try to use the last source code I give this error message:

python record_video.py 
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
Traceback (most recent call last):
  File "record_video.py", line 7, in <module>
    fourcc = cv2.VideoWriter_fourcc()
AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'

Sorry for my English :)

click to hide/show revision 2
retagged

updated 2014-03-26 07:10:06 -0500

berak gravatar image

AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'

I am trying to capture video throught this tutorial: http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html but when I try to use the last source code I give this error message:

python record_video.py 
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
Traceback (most recent call last):
  File "record_video.py", line 7, in <module>
    fourcc = cv2.VideoWriter_fourcc()
AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'

Sorry for my English :)