Webcam in Ubuntu
Feb 07
Bored, My Life, Ubuntu 74 Comments
i dont know why all this while im not using webcam in linux until last week i try to plug the webcam in my ubuntu. It appear great result because the webcam driver detected by need to do something more to make its working better … now lets start by checking the device detected ..
fenris@thinkbuntu:~$ lsusb
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 001 Device 004: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 001 Device 003: ID 0a5c:2110 Broadcom Corp.
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
Bus 003 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 002: ID 17ef:1003
Bus 004 Device 001: ID 0000:0000
With this information we can know the Vendor_id=0ac8 and the Product_id=301b . We could also see this using the graphical user interfase usbview. Another thing that we can see is the manufacturer of the chipset Z-Star/Vimicro (that is also used in many other cheap webcams) Among the output of the usbview program, we can see somthing like this Manufacturer: Vimicro Corp.
I’m going to summarize the steps I took:
1) Download and untar the file gspcav120071224.tar.gz:
wget -c http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
tar xvfz gspcav1ÂÂ20071224.tar.gz
2) Compile and install the driver:
cd gspcav1-20071224
make clean
make
sudo make install
3) This is the extra step that I had to do:
sudo gedit /etc/modprobe.d/options
and add an option for this driver:
options gspca force_rgb=1
sudo apt-get install camorama
then try to open camorama, if cant open the application,try this:
$sudo lsmod |grep gspca
gspca 660176 0
videodev 28160 2 gspca,zc0301
usbcore 134280 7 gspca,zc0301,usb_storage,libusual,ehci_hcd,uhci_hcd
Remove the zc0301 module:
$sudo modprobe -r zc0301
Insert module gspca back:
$ sudo modprobe gspca
Give a check first:
$ lsmod |grep gspca
gspca 660176 0
videodev 28160 1 gspca
usbcore 134280 6 gspca,usb_storage,libusual,ehci_hcd,uhci_hcd
Let it be more confident:
$ lsmod | grep videodev
videodev 28160 1 gspca
v4l1_compat 15236 1 videodev
v4l2_common 25216 1 videodev
If it still can’t run the camorama :
check the device permission:
$ ls -l /dev/video0
crw-rwâ€â€- 1 root video 81, 0 2008-01-27 08:10 /dev/video0
Device video0 running with user group video,so u should change the permission:
$ sudo chmod 777 /dev/video0
$ ls -l /dev/video0
crwxrwxrwx 1 root video 81, 0 2008-01-27 08:10 /dev/video0
@ the easier way is installing the gspca from repo (i forgot to check in repo, gspca is in it):
fenris@thinkbuntu:~$ sudo apt-get install gspca-sourceHope it working for u all because its working for me!!
Gud Luck!!
RSS
Sep 29, 2010 @ 14:03:26
Valuable info and glorious design you bought here! I would love to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up
Oct 02, 2010 @ 04:35:35
very cool post indeed.
Oct 05, 2010 @ 01:06:05
inca webcam driverini bulam?yorum yard?mc? olun te?ekkürler
Oct 06, 2010 @ 16:32:27
I love seeing websites that NFL Jerseys understand the value of providing a quality resource for free. Thanks for this great resource!
Oct 08, 2010 @ 21:34:59
sitenizi rasgele buldum çok ho? olmu?.Ba?ar?lar?n?z?n Devam?n? dilerim
Oct 09, 2010 @ 01:07:14
Vrea s? p?c?leasc? milioane de suporteri” presa, cred ca de ea vorbeai, nu? ca altfel te crezi vreun sondaj, vreun barometru sau
Oct 10, 2010 @ 16:38:26
I will post a NFL Jerseyslink to this page on my blog. I am sure my visitors will find that very useful.
Oct 10, 2010 @ 16:39:18
Snowboarding self-adhesive Wall Stickers Set contains 4 sheets asOil Paintings shown that may be placed together or separately to create a unique design.It is made of vinyl and reusable. Repositionable with a self-adhesive backing. It also has a vinyl coated protection for fast clean-up with mild soap….
Oct 10, 2010 @ 16:40:45
AdoAdore the template of this blog, simple yet efficient. Its hard tocoated discover the discover the correct balance occasionally but this website loads quick and looks perfect
Oct 12, 2010 @ 11:12:52
Valuable info and glorious design you bought here! I would love to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up
Oct 13, 2010 @ 15:27:38
nice post bro
menjadi blogger yang bahagia
Oct 18, 2010 @ 11:40:51
Hey there guys. This is probably the fifth great idea I’ve gotten from your site today!
Oct 19, 2010 @ 01:13:01
Iam newbie in ubuntu I try to install ZC0301 webcam but failed, error to try command make clean, and the error is :
~/Downloads/gspcav1-20071224$ make clean
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err
can you help me about this problem?? I use ubuntu 10.04
Oct 25, 2010 @ 13:43:17
I was looking for crucial information on this subject. The information was important as I am about to launch my own portal. Thanks for providing a missing link in my business.
Oct 29, 2010 @ 22:00:23
it is interesting and informative article. This has been very helpful understanding a lot of things. I’m sure a lot of other people will agree with me.
Oct 29, 2010 @ 22:01:33
So beautiful sharing!Thank you very much.
Best wishes!Your article is very good!
It is so nice.
Nov 02, 2010 @ 17:28:23
I am the first time on this site and am really enthusiastic about and so many good articles. I think it’s just very good.
Always yours
Nov 03, 2010 @ 11:22:16
well,I think it’s just very good.
Nov 07, 2010 @ 03:44:19
thanx man
Feb 17, 2012 @ 16:28:19
Some of students don’t realize they can buy essay online and forget about their academic writing problems!