[Debian] Как установить Веб-каимеру.

danilov

Собсно вот...
Подключил, но ни одна тула не видит.
Какие доп процедуры нужно сделать?

SCIF32

через что камеру подключаешь?

danilov

Ээээ... не очень понял
Через usb. Это имелось ввиду?

SCIF32

именно это и имелось (а не то что вы подумали :) )
что пишет lsusb?

SCIF32

или cat /proc/bus/usb/devices

danilov

Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 2001:f115 D-Link Corp. [hex]
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 041e:30d0 Creative Technology, Ltd
Bus 001 Device 004: ID 046e:5575 Behavior Tech. Computer Corp.
Bus 001 Device 001: ID 0000:0000
D-Link - ватета оно

SCIF32

ну дальше я хз.
в гугл :)

danilov

был бы инет, яп туда первым делом полез

SCIF32

модель камеры?

danilov

D-Link DSB-C120

SCIF32

с ходу ничего путного не нашел.
кидаю некое how-to (там много лишнего, но может чем-то поможет)
2. Enabling Support for Your (Webcam) Hardware in Linux
2.1. Drivers and Modules
For your webcam to work you will need support for the connection and support for the actual camera hardware. Those who are already versed in kernels and modules and how to load them should skip to Section 2.2, which addresses support of the connection type. If you know your USB, IEEE 1394 or whatever bus you will be connecting your camera to is already configured and working, you should move on to the list of specific webcam hardware listed in Section 2.3.
Webcam drivers are usually available one of three ways: within the kernel, as a compilable stand alone module, or available as a pre-compiled (packaged) binary driver from your Linux distribution.
2.1.1. Module or In-Kernel?
As a rule, often the stock kernel, or working part of the operating system, of your initial installation may already have support for what you need. Your Linux distribution vendor has likely enabled the most common options already, including the bus, or connection type, and drivers for common camera models. The driver exists either as a loadable module or within the already running kernel.
An easy way to tell if the driver is enabled is to use the dmesg command piped into less (for easy paging) to look for an acknowledgement that it was loaded when your system started up:
$ dmesg | less
...which may yield something like the following, depending on your hardware:
Dec 18 17:35:18 localhost kernel: hub 5-0:1.0: USB hub found
Dec 18 17:35:18 localhost kernel: hub 5-0:1.0: 2 ports detected
Dec 18 17:35:18 localhost kernel: Linux video capture interface: v1.00
Dec 18 17:35:18 localhost kernel: quickcam: QuickCam USB camera found (driver version QuickCam USB $Date: 2005/01/07 13:29:53 $)
Dec 18 17:35:18 localhost kernel: quickcam: Kernel:2.6.7 bus:1 class:FF subclass:FF vendor:046D product:0840
Dec 18 17:35:18 localhost kernel: quickcam: Sensor HDCS-1000/1100 detected
Dec 18 17:35:18 localhost kernel: quickcam: Registered device: /dev/video0
Dec 18 17:35:18 localhost kernel: usbcore: registered new driver quickcam
If you don't see it, the particular driver may exist as a loadable module. If you know what that module is named, try using find; in this example we are looking for the 'ibmcam' module:
$ find /lib/modules -name ibmcam.o
Note that up until the 2.4 series modules had the suffix .o; for 2.6+ series kernels this was replaced with .ko.
You can get a list of all modules available by typing the following at the command line:
$ ls -R /lib/modules/`uname -r`/kernel
Where `uname -r`, surrounded by forward tick marks, is your kernel version number. The following output is an example of what you might find in a USB webcam-ready kernel , where everything is loaded as a module (all but the relevant lines have been edited for brevity):
./usb: usbvideo.o usbcore.o ibmcam.o
Once you know which module your camera needs you can find out if it is already loaded by typing the following at the command line:
# lsmod
As shown by the prompt above, you will need to have root privileges to do this. You should get output similar to the following:
cdrom 29312 0 (autoclean) [sr_mod]
usb-ohci 17888 0 (unused)
usbcore 56768 0 [scanner ibmcam usbvideo usb-ohci]
ibmcam 39680 0
Most stock kernels are compiled with kmod, which enabling automatic loading of necessary modules when the appropriate hardware is detected. It may not always do so, however, so if you don't have the particular module you're seeking loaded and you think the module may be available, try loading it manually with modprobe, as in the following using the ibmcam module as an example:
# modprobe -v ibmcam
Drivers for specific webcam models, or links to project pages hosting code for drivers, are outlined in Section 2.3. The drivers are usually available one of three ways: within the kernel, as a compilable stand alone module, or available as a pre-compiled binary from your Linux distribution.
If the support for your driver is not found either enabled statically within the kernel or as a module, don't despair. Drivers for numerous models are in the Linux kernel source (available directly from kernel.org source code repository or in code offered separately from the kernel that can be configured to work with your current setup as oulined in Section 2.1.2. If your webcam driver is available in the kernel source but not enabled as a module or otherwise in your default system, you can either recompile the kernel from the source code you have or obtain a new version of the kernel source, either pre-packaged by your Linux distributor or directly from the previous link (as a so-called "vanilla" kernel). If you are unfamiliar with the prerequisites and procedure of compiling your own kernel, I direct you to the Kernel HOWTO for more information.
2.1.2. Patching, Source-Only or Precompiled Binary?
You may find that your webcam is supported by only a kernel patch, by a source-only driver not requiring a kernel recompile, or you may even be lucky enough to have a distribution that makes a pre-compiled and packaged binary driver available for your computer's architecture. The procedure involved in the former is largely beyond the scope of this document and is probably best outlined in the documentation available on the web page of your particular model's driver found in Section 2.3. Some further more general documentation on these processes are, however, addressed in Section 5
2.2. Supporting the Connection Type
2.2.1. USB Webcams
If you have a USB webcam, it is likely a Linux driver has been written for your device. There are two ways of supporting USB devices in Linux. One is the more traditional kernel support, and the other is through libusb. For at least one webcam category, the STV0680-based models, working libusb support is recommended, at least according to the Sourceforge page on the subject.
Unless you know your driver requires libusb support, you should probably stick with the more conventional in-kernel support for USB devices beginning in Section 2.2.1.2.
2.2.1.1. Libusb
Libusb is a library that allows access to the USB functions in Linux through userspace and without the need to enable kernel support and insert modules. Most distributions, at this point, are offering libusb in their stable branches (and some install it by default so if you don't already have kernel support for USB devices, then you may only have to install the libusb package in order to access your device. You must have USB device filesystem support enabled in your kernel, which most distributions do. To find out for sure, issue the following at the command line:
$ cat /proc/filesystems
You should see (among others):
nodev usbdevfs
nodev usbfs
You may need to mount usbdevf
Оставить комментарий
Имя или ник:
Комментарий: