video.start() .. invokes an IOError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-v4l2capture |
Fix Released
|
Undecided
|
Fredrik Portström |
Bug Description
sorry if this is wrong, I am very new to Python.
I have install the module but when running the code supplied, i get the following:
./capture_
libv4l2: error turning on stream: Invalid argument
Traceback (most recent call last):
File "./capture_
IOError: [Errno 22] Invalid argument
I am pretty sure the camera is working using v4l2 as using ffmap as follows works:
vlc-wrapper -vvv v4l2:///dev/video0 :v4l2-fps=2 :v4l2-brightness=-1 :v4l2-contrast=-1 :v4l2-saturation=-1 :v4l2-black-
I am using a USB "Z-Star Microelectronics Corp. ZC0303 Webcam" (Driver: zc3xx) and I am on Ubuntu 9.10
(uname -a output: "Linux nb-03 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:05:19 UTC 2010 i686 GNU/Linux")
Please let me know if you any more information... .or if I am missing something or doing something wrong.
Many thanks,
-Ben
I've heard about this problem before. It seems to be that some devices require Video_device. queue_all_ buffers to be called before Video_device.start. I've made a new release with the example script forked into two separate scripts, capture_picture.py which should work for you and capture_ picture_ delayed. py which is equal to the old script except new comments. Tell if this solves your problem.