FrontPage

Linux 2.6.26 and newer includes the Linux UVC driver natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.
てことで今だとUVC のを買うといいです

camera

  • Logicool Qcam messenger(QV-40)
    若松通商にて白箱\1,980-

camera driver

driver make

$ tar xvzf qc-usb-messenger-1.3.tar.gz
$ cd qc-usb-messenger-1.3
$ view README
$ ./quickcam.sh

kernel source が無い

apt-get install kernel-source-xxx
$ ./quickcam.sh

kernel header が(ry

apt-get install linux-headers-xxx
$ ./quickcam.sh

gcc-3.4 が無い。

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
--snip--
gcc バージョン 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
$ grep gcc-3.4 *

???

$ view README
You should also compile the kernel and the camera driver with same versions
of gcc. Check gcc version with "gcc -v" and the version which was used
for compiling the kernel with "cat /proc/version".
$ cat /proc/version
Linux version 2.6.12-10-386 (buildd@terranova) (gcc version 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)) #1 Mon Jun 12 22:04:42 UTC 2006
#  ap-get install gcc-3.4
$ ./quickcam.sh

ok

$ lsmod|grep cam
quickcam               96200  0
videodev                9344  1 quickcam
usbcore               104316  10 quickcam,ehci_hcd,uhci_hcd,ohci_hcd,snd_usb_audio,snd_usb_lib,usbhid,usbnet,usb_storage

usb camera 接続

$ dmesg|tail
[4792702.709000] quickcam: QuickCam USB camera found (driver version QuickCam Messenger/Communicate USB 1.3 $Date: 2006/06/06 10:00:00 $)
[4792702.709000] quickcam: Kernel:2.6.12-10-386 bus:1 class:FF subclass:FF vendor:046D product:08F0
[4792702.709000] quickcam [27.778302]: poisoning qc in qc_usb_init
[4792702.712000] quickcam [27.780872]: E00A contains 08F0
[4792702.712000] quickcam: Sensor VV6450 detected
[4792702.738000] quickcam [27.807058]: Quickcam snapshot button registered on usb-0000:00:1d.0-1/input0
[4792702.748000] quickcam: Registered device: /dev/video0
[4792702.756000] quickcam [27.824866]: Very quick shutdown in int_handler !!
[4792702.756000] quickcam [27.824882]: The driver probably failed to initialize the usb-interface.
[4792702.756000] quickcam [27.824895]: Please reload module:  rmmod quickcam ; modprobe quickcam
$ sudo rmmod quickcam ; sudo modprobe quickcam

test

$ xawtv

※最近のUbuntu だと違うDriver が入ってしまう.とりあえず以下のようにして回避.

$ sudo rmmod quickcam_messenger
$ sudo modprobe quickcam

camera2

  • ELECOM UCAM-E1C10MDWH
    10万画素なので色々辛い.

camera2 driver

恐らくsonix - sonic-snap, sn9c102 webcam application for linux
http://www.stolk.org/sonic-snap/

Debian Etch では,gspca-modules でいける様になってる.

camera3

Creative Live! Cam Notebook Pro(VF0400)

camera2 が壊れたので購入. PC ボンバーにて展示品\2,500-

WindowsXP 専用っぽい.Mac でも不可だった.

  • dmesg
    [234621.856952] usb 1-1: new full speed USB device using uhci_hcd and address 2
    [234622.038479] usb 1-1: configuration #1 chosen from 1 choice
    [234622.368300] usb 1-2: new full speed USB device using uhci_hcd and address 3
    [234622.525023] usb 1-2: configuration #1 chosen from 1 choice
    [234622.530046] hub 1-2:1.0: USB hub found
    [234622.533169] hub 1-2:1.0: 7 ports detected
    [234623.020313] usbcore: registered new interface driver snd-usb-audio
  • lsusb
    $ lsusb
    Bus 002 Device 001: ID 0000:0000  
    Bus 001 Device 002: ID 041e:4061 Creative Technology, Ltd 
    Bus 001 Device 003: ID 0e0f:0002  
    Bus 001 Device 001: ID 0000:0000

    $ sudo lsusb -vvv -s 001:002 > lsusb-vvv_VF0400
    filelsusb-vvv_VF0400

Linux に繋いでPID で検索するとドライバ発見.

DebianEtch? のapt で検索してみるとov511 というのは見つかったけど,ov51x は見つからず. soure を持ってきてbuild する.
#Ark Linux/Debian lenny/Debian sid/ubuntu gutsy/ubuntu hardy にはなんかパッケージがあるみたい.

wget http://www.rastageeks.org/downloads/ov51x-jpeg/ov51x-jpeg-1.5.6.tar.gz
tar xvzf ov51x-jpeg-1.5.6.tar.gz 
cd ov51x-jpeg-1.5.6/
make
sudo make install
  • dmesg
    [236045.339271] usb 1-1: new full speed USB device using uhci_hcd and address 4
    [236045.500948] usb 1-1: configuration #1 chosen from 1 choice
    [236045.925158] Linux video capture interface: v2.00
    [236045.935034] /home/mk/src/ov51x-jpeg-1.5.6/ov51x-jpeg-core.c: USB OV519 video device found
    [236046.455846] /home/mk/src/ov51x-jpeg-1.5.6/ov51x-jpeg-core.c: Sensor is an OV7670
  • /dev/video0
    $ ls -l /dev/video0 
    crw-rw---- 1 root video 81, 0 2008-03-03 23:32 /dev/video0

xawtc/ARToolkit ではさくっと動作した. しかし,Firefox 上でJustin.tv/Ustream.tv は動作しなかった.Flush と相性が良くないのだろうか?デバイス名まで出ているのだが画面は真っ黒になっている.
fileJTV.png
fileUst.png

KOHJINSHA SA1F で試したので別のマシンで再度試してみる予定. MacBook 上のXubuntu でも同じ症状.Flash かなぁ….
V4L はOK だけどV4L2 は駄目らしい>Flash
10で直らないかな?

10 でV4L2 もサポートされた.

camera4(IO-DATA USB-CAM30MS)

20090829 QC PASS にて\380

lsusb

ID 0c45:6030 Microdia VideoCAM ExpressII

DeviceDatabase/USB - Debian Wiki によると sn9c102 となっている.
sonic-snap, sn9c102 webcam application for linux

camera5

秋葉の駐車場?のジャンク売り場 で新品@300 で売られていたもの
Ubuntu9.10 ではzc3xx として認識された.
まあ普通のUVC の物が普通に1000円で買えるので悩みたくない人はそっち買った方がいいかと.#最近だと東映の\670-がいい感じかも.

$ dmesg| tail -6 > 0ac8:301b.txt
$ sudo lsusb -v -s 4:3 >> 0ac8\:301b.txt 

file0ac8:301b.txt

Debian Lenny だと,gspca module を入れると使えた.

$ apt-cache search gspca
gspca-modules-2.6-amd64 - Driver for webcams and digicams based on spca5xx chipset for Linux 2.6 on AMD64
gspca-modules-2.6-openvz-amd64 - Driver for webcams and digicams based on spca5xx chipset for Linux 2.6 on AMD64
gspca-modules-2.6-vserver-amd64 - Driver for webcams and digicams based on spca5xx chipset for Linux 2.6 on AMD64
gspca-modules-2.6.26-2-amd64 - Driver for webcams and digicams based on spca5xx chipset for Linux 2.6.26 on AMD64
gspca-modules-2.6.26-2-openvz-amd64 - Driver for webcams and digicams based on spca5xx chipset for Linux 2.6.26 on AMD64
gspca-modules-2.6.26-2-vserver-amd64 - Driver for webcams and digicams based on spca5xx chipset for Linux 2.6.26 on AMD64
gspca-source - source for the gspca v4l kernel module

webcam

$ cat ~/.webcamrc
[ftp]
host = hpv.cc
user = ********
passive = 1
dir = /home/maty/public_html/lab/webcam
file = licam.jpg
tmp = uploading.jpg
auto = 0
local = 0
ssh = 1
[grab]
device = /dev/video0
text = "matoken webcam test %Y-%m-%d %H:%M:%S"
delay = 30
rotate = 0
top = 0
left = 0
bottom = -1
right = -1
quality = 70
trigger = 0
once = 0
archive = %y%m%d-%H%M%S.jpg

host とパスフレーズ無し鍵交換をして`ssh = 1' でssh 転送。
30sec 毎に転送でもAirEDGE で大丈夫。
Server 側ではclientpull で自動的にreload.

http://hpv.cc/~maty/lab/webcam/


  • sl-c でmake 出来ないかな? -- matoken? 2006-07-10 (月) 17:10:53

spam 避けですcheck を付けて下さい

添付ファイル: file0ac8:301b.txt 1256件 [詳細] fileUst.png 1326件 [詳細] fileJTV.png 445件 [詳細] filelsusb-vvv_VF0400 1926件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-02-22 (月) 23:56:34 (2680d)