uvc摄像头
来源:互联网 发布:iphone酷狗连不上网络 编辑:程序博客网 时间:2024/04/27 03:09
UVC stands for 'USB Video Class'. It defines video streaming functionality on the Universal Serial Bus. UVC compliant peripherals only need a generic driver; much like mass storage devices (USB flash disks, External disc enclosures, etc.) can be managed by a single driver because they conform to the USB Mass Storage specification.
UVC Linux Driver
The GNU/Linux UVC Driver page is at Linux USB Video Class device driver home (Supported Devices) and includes a list of supported devices. Instructions for downloading the driver are here Linux USB Video Class device driver home (Download). Only source code is available. Instructions for compiling the source code is included in this wiki.
UVC support in Ubuntu
10.04
In 10.04 the UVC module has been included, what I want to add here is how to change parameters for the driver like brightness and so on , I simply use guvcview install it and start it up using the command line if it is not working from the menu , try guvcview -d /dev/videoX change X to 0 1 2 and test, every change I make in the settings here remains active for other applications like Skype
UVC module included in Ubuntu might not be up to date and your webcam might not be recognized. This tutorial explains how to build the latest v4l-dvb modules from source. Works for Karmic and Lucid as well.
9.04
In 9.04 the UVC module has been included which means that some webcams 'just work' but it is recommended you still download the source code at LinuxTV uvcvideo development repository. On the left sidebar, choose your preferred compressed archive (they all contain the same files). Then build the UVC module as shown here:
Build for 9.04
Make sure you have kernel header files. In Ubuntu 9.04 the header files package should be at least 2.6.28-11 or later.
You can find out which version of Linux kernel you have by issuing the command:
uname -r
Then ensure you have the header files for building the UVC module with:
sudo apt-get install linux-headers-`uname -r`
Install for 9.04
Navigate to the 'uvcvideo-1b4c7a6b9d26' directory (or some similar name) containing the source. If you want to customize which drivers to compile, run:
make menuconfig
If you do not know what to do with the options that come up, just accept the defaults and exit by pressing ESC twice.
To compile the drivers, run
make
then, to install the compiled drivers to the appropriate module directories, run
sudo make install
followed by
sudo depmod -a
After that you should not even need to plug your webcam in, although ensure you can see it by running:
lsusb
If it is there, then run:
sudo modprobe uvcvideo
And you should now be done! See below for other versions.
7.10 to 8.x
From 7.10 the UVC module has been included which means that some webcams 'just work' however UVC is still at an early stage and device support and bugfixes are being added all the time. It may well be necessary to update to the latest version to get your hardware to work, in particular Skype will only work properly if you have uvc version 166 or above, earlier driver versions freeze up after a minute or so with some cameras.
7.04 and earlier
UVC support is not included and you'll have to install it yourself.
Installing UVC
UVC has not released any 'snapshots' yet and has not been packaged and included in the Ubuntu repositories. There is a debian package locatedhere but the best way at the moment is to grab the latest build from the LinuxTV uvcvideo development repository and compile it yourself.
Checkout from SVN (this source is deprecated)
This section describes the steps to download the sources (which are now deprecated) from the Subversion repository. The best place to get the drivers instead: LinuxTV uvcvideo development repository.
If you do not already have subversion installed get it with:
sudo apt-get install subversion
Then get that latest source from the repository with:
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
This will make the directory 'trunk' containing the source in your working directory
Build
Make sure you have kernel header files. In Ubuntu 7.10 and later, you need the header files package specific to your CPU architecture, for example,linux-headers-2.6.22-14-386 in addition to just linux-headers-2.6.22-14. You can do this with:
sudo apt-get install linux-headers-`uname -r`
Navigate to the 'trunk' directory containing the source and run:
make
Install
Ubuntu keeps the kernel module for UVC in /lib/modules/your kernel/ubuntu/media/usbvideo and the makefile has to be altered slightly to install to the correct directory. Open the the makefile in a text editor and change :
INSTALL_MOD_DIR := usb/mediatoINSTALL_MOD_DIR := ubuntu/media/usbvideo
then run
sudo make install
Update dependencies
sudo depmod -a
Insert Modules
Plug in your camera and enter the following command :
sudo modprobe uvcvideo
If you're running 7.10 this may complain that the module's already loaded. In that case unplug your camera and remove the old module with :
sudo modprobe -r uvcvideo
then insert the new one again as above.
- uvc摄像头
- uvc摄像头
- UVC摄像头移植成功
- UVC摄像头移植总结
- 测试UVC摄像头驱动
- porting uvc 摄像头
- 摄像头是否支持uvc
- uvc摄像头代码解析
- uvc摄像头代码解析
- UVC 摄像头厂商列表
- RK3288 uvc摄像头调试
- RK3288 UVC 摄像头调试
- UVC驱动外接摄像头
- uvc摄像头代码解析
- RK3288 uvc摄像头调试
- ubuntu下使用UVC摄像头
- linux UVC摄像头驱动 简介
- uvc摄像头代码解析1
- ldconfig命令作用
- linux下 删除乱码文件名
- Hibernate Restrictions用法
- windowsXP笔记本创建无线热点共享上网
- Hibernate merge
- uvc摄像头
- 条码系统在事务报告之后加入自己的报告信息。
- 概念篇-SOA,ESB, JBI, SCA区别 .
- 文档抽象模型xml,xml解析生成pdf,word文档
- asp.net发邮件
- 朱大鸣:中国金融危机到底有多严重
- C++沉思录读书笔记
- Visual Studio 2010 编译ICU库
- 中国驻澳大使-给中国投资者戴政治帽子不公平-中国企业海外运营-中澳合作-中国投资者