Outils pour utilisateurs

Outils du site


Action disabled: diff
camerauvc

Ceci est une ancienne révision du document !


Camera UVC

à faire

commander camera logitech

prendre une global shutter!!!!!!

matthieu herbb previent qu'il faut se mefier car logiteck commercialise sous une meme appelation des hard différents

j'arrive à utiliser la Isight du mac sous kubuntu. dmesg me retourne

[ 2640.175547] usb 2-1: new high speed USB device using ehci_hcd and address 2
[ 2640.500269] usb 2-1: configuration #1 chosen from 1 choice
[ 2640.829367] Linux video capture interface: v2.00
[ 2640.880580] uvcvideo: Found UVC 1.00 device Built-in iSight (05ac:8507)
[ 2640.966809] usbcore: registered new interface driver uvcvideo
[ 2640.966891] USB Video Class driver (v0.1.0)

uvc sur vieux ubuntu

Check to see if your webcam is supported with the Linux-UVC driver.

I'll first point you to the Supported Device Section of the official Linux-UVC home page (http://linux-uvc.berlios.de). That should give you a list of supported Webcam models with the Linux-UVC driver itself.

You can find that out if the Webcam is working (or is detected by the UVC driver) by reading the Kernel System log, using a program called System Log Viewer. You will find this program in the System menu on your task bar:- System→Administration→System Log

Select the “kernel.log” and carefully read (line by line) until you see something like the following:-

Code: Oct 27 10:19:07 core2-desktop kernel: [ 32.416587] uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c1) Oct 27 10:19:07 core2-desktop kernel: [ 32.430238] usbcore: registered new interface driver uvcvideo Oct 27 10:19:07 core2-desktop kernel: [ 32.430242] USB Video Class driver (v0.1.0)

If you find the “uvcvideo” lines in the kernel.log, then its safe to say that your webcam is detected and uses the Linux-UVC drivers.

If you don't see any line that states “uvcvideo”, then its safe to say that you don't have a UVC Webcam. And so the webcam will not work with the Linux-UVC driver. There is lots of other Linux webcam drivers that may support your webcam. And here is more information about webcam drivers and applications.

UPDATE:- more web cam driver support info can be found from tuxmobil.org

Installing or upgrading the Linux-UVC driver

Ubuntu-7.04 and 7.10 already has the Linux-UVC Driver installed in the kernel. However, this does not mean that it will just work out of the box for everybody. The Linux driver is new (just around 2 years) and is improving with more supported web cam models added every month or so.

Copy and past the following code into a terminal, to upgrade the Linux-UVC driver:-

For Hardy (Ubuntu-8.04) and Gutsy (Ubuntu-7.10) Code:

sudo apt-get install subversion build-essential linux-headers-$(uname -r) && 
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk &&
cd trunk &&
make &&
sudo cp -av /lib/modules/$(uname -r)/ubuntu/media/usbvideo/uvcvideo.ko /lib/modules &&
sudo install -v -m644 uvcvideo.ko /lib/modules/$(uname -r)/ubuntu/media/usbvideo/uvcvideo.ko &&
sudo depmod -ae $(uname -r)
Reboot

Note: You have a backup of the original driver located at “/lib/modules/uvcvideo.ko”, in case the upgrade turned out for the worst. You only need to copy it back to /lib/modules/$(uname -r)/ubuntu/media/usbvideo/ 
to restore the original driver. You can try to upgrade again at later date after the developers release some updates.


For Ubuntu-7.04
Code:
  sudo apt-get install subversion build-essential linux-headers-$(uname -r) &&

svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk &&
cd trunk &&
make &&
sudo cp -av /lib/modules/$(uname -r)/kernel/ubuntu/media/usbvideo/uvcvideo.ko /lib/modules &&
sudo install -v -m644 uvcvideo.ko /lib/modules/$(uname -r)/kernel/ubuntu/media/usbvideo/uvcvideo.ko &&
sudo depmod -ae
Reboot

Note: You have a backup of the original driver located at “/lib/modules/uvcvideo.ko”, in case the upgrade turned out for the worst. You only need to copy it back to /lib/modules/$(uname -r)/kernel/ubuntu/media/usbvideo/ to restore the original driver. You can try to upgrade again at later date after the developers release some updates.

The Linux-UVC driver only supports V4L2 (Video 4 Linux 2) applications. You should be able to use Ekiga by using the V4L2 plug in found in Ekiga preferences (Edit→preferences:- Video device section).

There is a unofficial WiKi page that details the applications that work (or not) with your supported webcam. Have a look at the “Known Problems” section for workarounds and patches, that you might need. The Wiki also details on how to use an official test program called luvcview. It is recommended to use luvcview, to see if your Webcam is working correctly with the Linux-UVC driver. Last edited by linux23dragon; May 16th, 2008 at 10:29 PM.. Reason: Included the backup information

module driver uvc

lsmod

si le driver uvc n'apparait pas, le charger avec

insmod /root/uvcvideo.ko 

on peut décharger un module: ex disable USB2.0 support for the host:

rmmod ehci-hcd

You will be able to use only USB1 devices on the host … You can “re-enable” USB2.0 by

modprobe ehci-hcd 

site interessant

utilisation webcam linux

http://www.linux.com/news/hardware/peripherals/8211-five-fun-ways-to-use-a-linux-webcam

http://www.mcentral.de/wiki/index.php5/Linux-uvc

sudo apt-get install mercurial  
sudo apt-get -F install 
sudo apt-get install mercurial  

pour tester l'image, utiliser vlc ( http://linuxfr.org/forums/41/20739.html) le periph de capture est /dev/video0

vlc -vvv v4l://:v4l-vdev="/dev/video":v4l-adev="/dev/dsp" --sout "#transcode{vcodec=mp4v,vb=128,scale=0.5}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.1:1234}}"
vlc -vvv v4l://:v4l-vdev="/dev/video" --sout "#transcode{vcodec=mp4v,vb=128,scale=0.5}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.1:1234}}"
mencoder tv://0 -tv driver=v4l2:width=640:height=480:outfmt=yuy2:device=/dev/video0 -o tv.avi -ovc lavc
mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -nosound -ovc lavc -o capture.avi

affichage du flux video de la caméra (probleme, c'est tout vert uni…)

 mplayer -cache 128 -tv driver=v4l2:width=640:height=480:outfmt=i420 -fps 15 -vo x11 tv://
probleme virtualbox et usb isochrone

Actually the VBox EHCI controller (used for the USB 2.0 emulation) currently does not support isochronous transfers. Older webcams for USB 1.1 should work (we tested some in the past) but I admit that missing EHCI support will make many USB webcams currently unusable with VirtualBox. We are working on adding support for isochronous transfers into one of the next releases.

Infos

Utilisation drivers UVC avec Gumstick

vrac

camera logiteck quickcam 4000

non uvc, j'arrive à l'utiliser avec virtualbox

[ 922.452023] usb 1-1: new full speed USB device using ohci_hcd and address 3 [ 924.839738] usb 1-1: configuration #1 chosen from 1 choice [ 924.931215] pwc: Logitech QuickCam 4000 Pro USB webcam detected. [ 924.933660] pwc: Registered as /dev/video0.

cela affiche bien le flux video

mplayer -cache 128 -tv driver=v4l2 -fps 15 -vo x11 tv://

en plein ecran

mplayer -cache 128 -tv driver=v4l2 -fps 15 -fs -zoom -vo x11 tv://
camerauvc.1256813537.txt.gz · Dernière modification : 2009/10/29 11:52 de 88.188.170.167