Debian-Linux UVCインストール

UVCインストール



apt-get install subversion
apt-get install linux-headers-`uname -r'

svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
cd trunk
make
make install

USBカメラを接続してドライバーが起動するかどうかを確認。

dmesgで見える。
または/var/log/messagesや/var/log/syslogを覗けばメッセージが見れる。

インストールしたときはドライバーが起動しなかったように見えたが、別の日に同様に行った時はUSBカメラを接続するとドライバーが起動するのが見えた。

syslog:
Feb 14 12:30:55 debian kernel: usb 4-4: new high speed USB device using ehci_hcd and address 7
Feb 14 12:30:55 debian kernel: usb 4-4: configuration #1 chosen from 1 choice
Feb 14 12:30:55 debian kernel: uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62e0)
Feb 14 12:30:55 debian kernel: uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
Feb 14 12:30:55 debian kernel: input: USB 2.0 Camera as /class/input/input6
Feb 14 12:30:55 debian NetworkManager: <debug info>^I[1234582255.487693] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_c45_62e0_noserial').
Feb 14 12:30:55 debian NetworkManager: <debug info>^I[1234582255.624580] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_c45_62e0_noserial_if1').
Feb 14 12:30:55 debian NetworkManager: <debug info>^I[1234582255.758414] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_c45_62e0_noserial_if0').
Feb 14 12:30:55 debian NetworkManager: <debug info>^I[1234582255.819409] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_c45_62e0_noserial_if0_video4linux').
Feb 14 12:30:55 debian NetworkManager: <debug info>^I[1234582255.983489] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_c45_62e0_noserial_usbraw').
Feb 14 12:30:56 debian NetworkManager: <debug info>^I[1234582256.232919] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_c45_62e0_noserial_if0_logicaldev_input').


messages:
Feb 14 12:30:55 debian kernel: usb 4-4: new high speed USB device using ehci_hcd and address 7
Feb 14 12:30:55 debian kernel: usb 4-4: configuration #1 chosen from 1 choice
Feb 14 12:30:55 debian kernel: uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62e0)
Feb 14 12:30:55 debian kernel: uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
Feb 14 12:30:55 debian kernel: input: USB 2.0 Camera as /class/input/input6


fswebcamで動作確認


UVCはV4L2対応らしい。V4L2に対応したアプリでなければ動作しないようだ。

apt-get install libgd2-dev
mkdir workdir
cd workdir
wget http://www.firestorm.cx/fswebcam/files/fswebcam-20070108.tar.gz
tar zxvf fswebcam-20070108.tar.gz
cd fswebcam-20070108
./configure
make
make install

$ fswebcam -d /dev/video0 -p YUYV -r 352x288 output.jpeg


暗いし、同期がずれている。いまのところ対処不明。

2011.3.21追記

ubuntu 10.10にて確認したところ、以下のように状況は変化していました。
旧:apt-get install libgd2-dev
新:apt-get install libgd2-xpm-dev


カメラがLogicoolになったので色々違うが、同期も正常、明るさも問題なくなっていた。
あと、ubuntu-10ではuvcドライバはデフォルトで組み込み済みなのでインストールの必要ありません。





































最終更新:2011年03月21日 15:22
添付ファイル