2

I'm trying to capture an image from my webcam (Raspberry Pi, Rasbpbian). Using the following command:

uvccapture -v

I get the following output:

Using videodevice: /dev/video0
Saving images to: snap.jpg
Image size: 320x240
Taking snapshot every 0 seconds
Taking images using mmap
Unable to set format: 22.
 Init v4L2 failed !! exit fatal

Any suggestions? What exactly is error 22? I didn't have any luck googling it. I tried adding the -r flag but instead it then produced the error /dev/video0 does not support read i/o.

I've managed to get the webcam to work using motion but it's not suitable for my needs.

Thanks!

1 Answer 1

3

Try to add the -m switch. It tells the program to use another color format. It worked fine with my camera on my RPi.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .