Webcam compatibility


12 posts
by sorvad » Sun Mar 25, 2012 10:26 am
I"ve tried searching and people are saying they are going to use webcams, and no one seems bothered about whether they work with ARM Linux, so can I presume that all webcams work with ARM Linux out of the box (obviously supplied software won"t) but presume Linux supports any webcam ? Or is there something I need to look out for to get a webcam that works with the Pi ?

By the way I'm talking USB webcams here.
Posts: 44
Joined: Thu Dec 22, 2011 11:04 am
by alexeames » Sun Mar 25, 2012 1:01 pm
I wouldn't assume anything to be honest. I thought my old (2006) logitech quickcam would work plug and play with ubuntu lucid - it doesn't. :(
My Pi uses 2 watts - what what? ---- HiRes early production Pi photos RS Front Back | Farnell Front Back
User avatar
Posts: 2018
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
by sorvad » Sun Mar 25, 2012 5:36 pm
Thanks, I wanted to develop some code in a test Linux system before deployment to the Pi when I get my hands on the actual hardware, but not knowing if the webcam will work before hand scuppers that idea. I will keep on searching you tube etc. to see if anyone with the early boards has tried connecting a cam
Posts: 44
Joined: Thu Dec 22, 2011 11:04 am
by rmm200 » Sun Mar 25, 2012 6:08 pm
I would say take your favorite Linux distribution and try your webcam on that. If an appropriate driver is in the normal distribution, there is a very good chance it is in arm also. Conversely if your webcam does not work on normal Linux - try a different one...
Posts: 259
Joined: Sat Mar 03, 2012 10:25 pm
by SirLagz » Mon Mar 26, 2012 7:30 am
All the drivers for webcams are in the kernel.

If it works on that kernel, then chances are it will work on a different architecture running the same kernel version except for that architecture.

I have plans for a baby cam for my Pi when it comes. Chew even less power than what I'm using as my baby cam now, and hopefully will run better, but with around the same cpu grunt as my current one I'll need to wait to get one before I can find out.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by lyzby » Mon Mar 26, 2012 10:58 am
The Logitec Quickcam Deluxe for Notebooks and Logitec Quickcam Pro 9000 work on various devices under openWrt using such software as mjpg-streamer and motion, and under debian on a dockstar or linux PC. These webcams will surely "just work" on the R-pi, as will any "UVC" webcam, and many others--but by no means all.

See here for an example: http://www.picaxeforum.co.uk/s......php?13705

and here: http://www.picaxeforum.co.uk/s.....d.php?9425

A decent little device in the R-pi cost range for pre-testing +some+ R-pi features is the TP-Link WR703N available here: http://www.volumerates.com/sea.....ord/wr703n

Note this would be running openWrt, a limited Linux OS (only thousands of packages available), unlike the full-featured linuxes which the R-pi can run. Only 4 meg of flash and 32 meg of ram, so you have to be thrifty.
Posts: 24
Joined: Sun Nov 20, 2011 3:34 am
by jgoewert » Thu Apr 19, 2012 6:09 pm

These webcams will surely "just work" on the R-pi, as will any "UVC" webcam, and many others–but by no means all.


I thought the same thing, but low and behold, uvcvideo is not a module included and since I am not much of a kernel level guy, trying to figure out how to hammer it in. Unfortunately, Google gives me a long line of broken links and links to links that link to broken links and most point out that it should be in post 2.6 kernels.
Posts: 3
Joined: Mon Sep 19, 2011 1:07 pm
by SirLagz » Fri Apr 20, 2012 5:30 am
Grab the Pi kernel source and uncompress it  (This I think)

go into the directory and run

make menuconfig as root

you may need to download some extra packages if it errors out

once you're in there, go to device drivers -> multimedia support -> video capture adapters -> V4L USB devices -> select USB video class and press "m"

Should add a m into the brackets if not already there

save and quit by pressing "Esc" a few times

then run "make modules && make modules_install"

then modprobe uvcvideo  <– I *think* that's what the module is called.

Then you'll have the uvc module loaded and ready to use if Debian doesn't load it up itself when you plug in a webcam

*note* Those are the standard instructions, not sure if they differ for the Pi or not.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by timgiles » Fri Apr 20, 2012 8:17 am
http://www.ideasonboard.org/uvc/

You'll find it hard to buy a webcam that will not work at all with linux, but there are some. Use the above or buy cheap and blind. Good luck.
Posts: 101
Joined: Thu Jan 12, 2012 8:58 am
by jgoewert » Mon Apr 23, 2012 1:34 am
SirLagz said:



once you're in there, go to device drivers -> multimedia support -> video capture adapters -> V4L USB devices -> select USB video class and press "m"


Thanks. This is about the closest I have gotten to get it installed. Unfortunately, V4L doesn't show up int the video capture adapters. Almost every adapter execept it.

And I do know my camera is a uvc as I have had it running on Debian ARM 2.6 on a Sheevaplug.
Posts: 3
Joined: Mon Sep 19, 2011 1:07 pm
by jgoewert » Tue Apr 24, 2012 11:20 am
Well, after enough repeated attempts to get uvcvideo to work in Debian, I loaded the ArchLinux build and plugged my webcam in and it just worked.

Guess I will use it.
Posts: 3
Joined: Mon Sep 19, 2011 1:07 pm
by SirLagz » Thu Apr 26, 2012 4:18 pm
If you want to keep using Debian, could always see if the kernel in the ArchLinux build has the drivers as a module or built into the kernel.

If it's built in, just rip the kernel out and put it into the Debian System. Otherwise if it's using modules, rip the kernel and the /usr/lib/modules folder out and import over to Debian.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia