Posts Tagged ‘webcam’

Logitech QuickCam Messenger on Linux using Skype

9. November 2008

Update: Ubuntu 9.04 Users klick here…

I am surprised how many people visit my site because their looking for a solution to get a Logitech QuickCam Messenger (046d:08f0) running on Linux using Skype

Since my last post seems to be a bit buggy for newer kernels, I updated my system to Debian (Lenny, 2.6.26-1-686) and gave it try.

All you need before we start:

apt-get install libgstreamer0.10-dev pkg-config subversion linux-headers-$(uname -r) build-essential

Plug in your webcam.
Remove the old quickcam_messenger module:

rmmod quickcam_messenger

To make sure it is not going to be loaded again we add

blacklist quickcam_messenger

at the end of /etc/modprobe.d/blacklist

Download the new qcmessener module:

wget http://home.mag.cx/messenger/source/qc-usb-messenger-1.8.tar.gz
tar xzvf qc-usb-messenger-1.8.tar.gz

Now if you are running kernel 2.6.26 or newer , it is necessary to patch some files.

wget http://bugs.gentoo.org/attachment.cgi?id=167504 -O patch.txt
patch -p0 < patch.txt

Continue installing:

cd qc-usb-messenger-1.8
make
make install
insmod ./qcmessenger.ko

Remember to be root when running make install

Give it a test:

qcset /dev/video0 compat=dblbuf
gst-launch-0.10 v4lsrc device=/dev/video0 ! ffmpegcolorspace ! ximagesink

If every thing works go on and install Gstfakevideo:

svn checkout http://gstfakevideo.googlecode.com/svn/trunk/ gstfakevideo
cd gstfakevideo
make
make install

Create a new file called skype.sh and add these lines:

#!/bin/sh
gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace

And run:

chmod +x skype.sh

Now reload the module

rmmod qcmessenger
modprobe qcmessenger compatible=6 video_nr=1

Create a new file /etc/modprobe.d/qcmessenger and add:

options qcmessenger compatible=6 video_nr=1

This makes sure, that your webcam will always be /dev/video1 and uses “dblbuf”.

Finally fire up Skype by running skype.sh. That’s it!

Please leave a comment if you got some problems or want to give me feedback.

Update:
Here is a test image.

QuickCam, Linux and Skype – it works!

27. April 2008

Update: Click here to go to a newer version of this article…

This weekend I successfully installed my Logitech QuickCam Messenger (046d:08f0) on my Debian box. In fact it worked out of the box with all kind of programs except for Skype. That was bad because Skype is my main video conference software and I don’t get the point of buying new hardware for Linux.
Anyway, this is the picture you get if you would have skyped me before:
quickcamThat is why I dragged some information together, which you can find all over the web but never on one single page, to fix that problem.

Lets start. On https://wiki.ubuntu.com/SkypeWebCams the Logitech QuickCam Messengerm (046d:08f0) is listed as a ‘Fiddle to Get Working’ webcam:

Logitech QuickCam Messenger (046d:08f0) – On 32-bit systems, works with “quickcam” driver and gstfakevideo.

Debian comes along with quickcam_messenger which has to be removed:

rmmod quickcam_messenger

You need:

apt-get install xawtv kdetv linux-headers-$(uname -r) subversion

And you are ready to go:

wget -v http://home.mag.cx/messenger/source/qc-usb-messenger-1.7.tar.gz
tar xzvf ./qc-usb-messenger-1.7.tar.gz
cd ./qc-usb-messenger-*
./quickcam.sh

If every thing worked well you should be able to get some pictures with camoramic or xawtv.
After that we load the module, move /dev/video0 to /dev/video1 because video0 is reserved for Gstfakevideo.

mv /dev/video0 /dev/video1

Better would be a new udev rule. Create a new line in /etc/udev/rules.d/99-perso.rules (if the file doesn’t exists, create it):

KERNEL=="video0", ATTR{name}=="QuickCam USB", NAME="video1"

Run

/etc/init.d/udev reload

and reconnect your Webcam.

Now we install Gstfakevideo:

apt-get install libgstreamer0.10-dev pkg-config
svn checkout http://gstfakevideo.googlecode.com/svn/trunk/ gstfakevideo
cd gstfakevideo
make
make install

Create a new file called skype.sh and add these lines:

#!/bin/sh
qcset /dev/video1 compat=dblbuf
gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace

And run:

chmod +x skype.sh

Now fire up Skype by running skype.sh.

You shoud get somthing like this:
gstfakevideo
If not something went wrong. Leave a comment so I might be able to help you out.

Update:
After a few Kernel updates (>2.6.23) I had problems compiling the quickcam module:

qc-usb-messenger-1.7/qc-driver.c: In function ‘qc_int_init’:
qc-usb-messenger-1.7/qc-driver.c:850: warning: passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer type
qc-usb-messenger-1.7/qc-driver.c: In function ‘qc_isoc_start’:
qc-usb-messenger-1.7/qc-driver.c:2209: warning: assignment from incompatible pointer type
qc-usb-messenger-1.7/qc-driver.c:3649:1: error: unterminated #ifdef

I found a patch on Ubuntuforums.org witch you can download here:
Quickcam Patch

Save it (/usr/src/) und run

patch -p0 > qc-usb-messenger-17-for-2624patch.txt

Follow the instructions and enter the full path to qc-driver.c.
Now edit qc-driver.c and uncomment line 3484:

//hardware: VID_HARDWARE_QCAM_USB,

Run:

make clean && make all && make install

Install it

insmod quickcam.ko

Have fun :)

PS: The patch also works with 2.6.25