Linux uses USB camera __linux

Source: Internet
Author: User
Tags chmod

http://www.linuxsir.org/main/node/221?q=node/221

The above post is about the camera (WebCam) in Linux using Spcaserv set up network Video Monitoring Server (V0.1B).

Here I will simply talk about Linux install Linux camera driver.

In the new Linux kernel there is a majority of USB camera drivers. So you can choose to drive directly from inside the kernel.

First you have to determine your camera model:

$ Lshal | grep Webcam info.product = ' ov511+ Webcam ' (string) usb_device.product = ' ov511+ Webcam ' (string)

You can conclude that the model is 0v511 and then edit the kernel.

Device drivers--> <*> Multimedia support  --->  [*]   video capture adapters  --->  [*]   v4l USB devices  --->  <M>   USB OV511 Camera support (deprecated) Select the model, and then compile, after compiling, you can not restart, directly under the linux/drivers/media/video/directly #insmod ov511 or run modprobe ov511, now position driver installed. The next step is to install the camera software. I'm using the Spcaview. #emerge Spcaview about Spcaview specific usage can refer to the above website. In the installation process may encounter many problems, one problem is that you do not have/dev/fb0 device, first of all, to determine the kernel has been compiled framebuffer, and then start in Grub Framebuffer, as follows: #vim/boot/grub/ Menu.lst title           Gentoo, Kerner 2.6.33.6  Root           &N BSP; (hd0,0) kernel          /kernel-genkernel-x86_64-2.6.35.4 root=/dev/mapper/ Volgroup-ubuntu ro DOLVM vga=0x318 initrd          /initramfs-genkernel-x86_64-2.6.35.4 After kernel, add vga=0x318 to start framebuffer. Some systems for Spcaview support is not very good, there are a lot of errors, you can refer to the Camorama tool, #emerge Camorama start Camorama or Spcaview when you may encounter the problem of/dev/video permissions, then need to repairChange their permissions: #chmod 666/dev/video #chmod 666/dev/fb0 $camorama This time, there should be no big problem.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.