jnohlgard / python-v4l2capture

Python extension to capture video with video4linux2 (fork of https://launchpad.net/python-v4l2-capture)
133 stars 83 forks source link

Resource temporarily unavailable #2

Open salamanders opened 11 years ago

salamanders commented 11 years ago

I'm getting an error with the image_capture script:

python capture_picture.py 
Traceback (most recent call last):
  File "capture_picture.py", line 43, in <module>
    image_data = video.read()
IOError: [Errno 11] Resource temporarily unavailable

It seems to be installed ok:

python list_devices.py 
/dev/video0
    driver:       STV06xx
    card:         Camera
    bus info:     usb-bcm2708_usb-1.2
    capabilities: readwrite, streaming, video_capture
jnohlgard commented 11 years ago

Does the device work in any other programs, e.g. gstreamer or cheese?

salamanders commented 11 years ago

Sorta. I can get it to work under a generic v4l c program, but only in raw mode. But it works pretty consistently when I do that. Other apps I've tried (motion, etc) don't work. I think it is because the "Logitech QuickCam Messenger" has a dodgy support history in v4l and v4l2. (Googling on it turned up pages and pages of linux patch discussions, yikes)

Actually, now with a bit more research, I think it is because it only supports RAW, not RGB or JPEG. Is the python wrapper "cool" with that?