pygame + webcam issues

4 posts
by legalto » Sun Jun 24, 2012 3:02 pm
Hey all-

I'm currently using the debian OS on my pi. For my application I installed Python 2.7.3 and pygame 1.9.1. When I try to start the camera object:

I get the following error:

EnvironmentError: ioctl(VIDIOC_STREAMON) failure : 4008, Unknown error 4008

When I run my program, I can see the small green led on the camera light up, but then it quickly turns off and I see the error above on my terminal.

I used Rpi-Update to install the video driver for my quickcam pro 5000, and the device appears as /dev/video0.

Really at a loss here...anyone get there webcam working in debian with pygame?
Posts: 2
Joined: Sun Jun 24, 2012 2:56 pm
by Yam » Sun Jun 24, 2012 10:17 pm is experimental (according to the docs)
Probably be a while before it works on raspberry assuming someone is working on it
Posts: 68
Joined: Wed May 16, 2012 12:14 pm
by legalto » Mon Jul 02, 2012 1:00 pm
Update for anyone else trying to do this...

The problem was with my webcam (quick cam pro 5000). I ordered a PS3 eyetoy and it worked out of the box.

For anyone else trying this, does work on the raspberry pi; however, you must first compile from source python 2.7.3 and pygame 1.9.1!
Posts: 2
Joined: Sun Jun 24, 2012 2:56 pm
by merlz42 » Mon Jul 02, 2012 2:12 pm
I think the webcam not working is due to the raspberry pi missing a lot of webcam drivers. The eyetoy seems to work every time, other cameras rarely or not at all. Hopefully this will be fixed as the OS distribution matures.
Posts: 20
Joined: Sun May 13, 2012 1:19 pm