特殊:Badtitle/NS100:UVC:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:UVC}} | {{Languages|UbuntuHelp:UVC}} | ||
<<Include(Tag/NeedsExpansion)>> | <<Include(Tag/NeedsExpansion)>> | ||
UVC | 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 == | == UVC Linux Driver == | ||
The GNU/Linux UVC Driver page is at http://linux-uvc.berlios.de/ and includes a list of supported devices | The GNU/Linux UVC Driver page is at [http://linux-uvc.berlios.de/#devices Linux USB Video Class device driver home (Supported Devices)] and includes a list of supported devices. | ||
Instructions for downloading the driver are here [http://linux-uvc.berlios.de/#download 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 == | == UVC support in Ubuntu == | ||
=== 9.04 === | === 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 [ | 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 [http://linuxtv.org/hg/~pinchartl/uvcvideo/shortlog/tip 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 === | ==== 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. | 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: | You can find out which version of Linux kernel you have by issuing the command: | ||
第18行: | 第19行: | ||
sudo apt-get install linux-headers-`uname -r` | sudo apt-get install linux-headers-`uname -r` | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Install for 9.04 === | ==== Install for 9.04 ==== | ||
Navigate to the 'uvcvideo-1b4c7a6b9d26' directory (or some similar name) containing the source and run | Navigate to the 'uvcvideo-1b4c7a6b9d26' directory (or some similar name) containing the source. If you want to customize which drivers to compile, run: | ||
<pre><nowiki> | |||
make menuconfig | |||
</nowiki></pre> | |||
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 | |||
<pre><nowiki> | <pre><nowiki> | ||
make | make | ||
</nowiki></pre> | </nowiki></pre> | ||
then run | then, to install the compiled drivers to the appropriate module directories, run | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo make install | sudo make install | ||
第45行: | 第51行: | ||
UVC support is not included and you'll have to install it yourself. | UVC support is not included and you'll have to install it yourself. | ||
== Installing UVC == | == 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 located [ | UVC has not released any 'snapshots' yet and has not been packaged and included in the Ubuntu repositories. There is a debian package located [http://packages.debian.org/unstable/graphics/linux-uvc-source here] but the best way at the moment is to grab the latest build from the [http://linuxtv.org/hg/~pinchartl/uvcvideo/shortlog/tip LinuxTV uvcvideo development repository] and compile it yourself. | ||
=== Checkout from SVN === | === Checkout from SVN (this source is deprecated) === | ||
If you do not already have subversion installed get it with: | '''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: [http://linuxtv.org/hg/~pinchartl/uvcvideo/shortlog/tip LinuxTV uvcvideo development repository].''' | ||
<<BR>>If you do not already have subversion installed get it with: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install subversion | sudo apt-get install subversion | ||
第56行: | 第63行: | ||
</nowiki></pre> | </nowiki></pre> | ||
This will make the directory 'trunk' containing the source in your working directory | This will make the directory 'trunk' containing the source in your working directory | ||
=== Build === | === Build === | ||
Make sure you have kernel header files. In Ubuntu 7.10 and later, you need | Make sure you have kernel header files. In Ubuntu 7.10 and later, you need |
2009年11月17日 (二) 21:04的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UVC }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/af | • {{#if: UbuntuHelp:UVC|Afrikaans| [[::UVC/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ar | • {{#if: UbuntuHelp:UVC|العربية| [[::UVC/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/az | • {{#if: UbuntuHelp:UVC|azərbaycanca| [[::UVC/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/bcc | • {{#if: UbuntuHelp:UVC|جهلسری بلوچی| [[::UVC/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/bg | • {{#if: UbuntuHelp:UVC|български| [[::UVC/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/br | • {{#if: UbuntuHelp:UVC|brezhoneg| [[::UVC/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ca | • {{#if: UbuntuHelp:UVC|català| [[::UVC/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/cs | • {{#if: UbuntuHelp:UVC|čeština| [[::UVC/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/de | • {{#if: UbuntuHelp:UVC|Deutsch| [[::UVC/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/el | • {{#if: UbuntuHelp:UVC|Ελληνικά| [[::UVC/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/es | • {{#if: UbuntuHelp:UVC|español| [[::UVC/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/fa | • {{#if: UbuntuHelp:UVC|فارسی| [[::UVC/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/fi | • {{#if: UbuntuHelp:UVC|suomi| [[::UVC/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/fr | • {{#if: UbuntuHelp:UVC|français| [[::UVC/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/gu | • {{#if: UbuntuHelp:UVC|ગુજરાતી| [[::UVC/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/he | • {{#if: UbuntuHelp:UVC|עברית| [[::UVC/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/hu | • {{#if: UbuntuHelp:UVC|magyar| [[::UVC/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/id | • {{#if: UbuntuHelp:UVC|Bahasa Indonesia| [[::UVC/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/it | • {{#if: UbuntuHelp:UVC|italiano| [[::UVC/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ja | • {{#if: UbuntuHelp:UVC|日本語| [[::UVC/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ko | • {{#if: UbuntuHelp:UVC|한국어| [[::UVC/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ksh | • {{#if: UbuntuHelp:UVC|Ripoarisch| [[::UVC/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/mr | • {{#if: UbuntuHelp:UVC|मराठी| [[::UVC/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ms | • {{#if: UbuntuHelp:UVC|Bahasa Melayu| [[::UVC/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/nl | • {{#if: UbuntuHelp:UVC|Nederlands| [[::UVC/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/no | • {{#if: UbuntuHelp:UVC|norsk| [[::UVC/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/oc | • {{#if: UbuntuHelp:UVC|occitan| [[::UVC/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/pl | • {{#if: UbuntuHelp:UVC|polski| [[::UVC/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/pt | • {{#if: UbuntuHelp:UVC|português| [[::UVC/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ro | • {{#if: UbuntuHelp:UVC|română| [[::UVC/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/ru | • {{#if: UbuntuHelp:UVC|русский| [[::UVC/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/si | • {{#if: UbuntuHelp:UVC|සිංහල| [[::UVC/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/sq | • {{#if: UbuntuHelp:UVC|shqip| [[::UVC/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/sr | • {{#if: UbuntuHelp:UVC|српски / srpski| [[::UVC/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/sv | • {{#if: UbuntuHelp:UVC|svenska| [[::UVC/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/th | • {{#if: UbuntuHelp:UVC|ไทย| [[::UVC/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/tr | • {{#if: UbuntuHelp:UVC|Türkçe| [[::UVC/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/vi | • {{#if: UbuntuHelp:UVC|Tiếng Việt| [[::UVC/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/yue | • {{#if: UbuntuHelp:UVC|粵語| [[::UVC/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/zh | • {{#if: UbuntuHelp:UVC|中文| [[::UVC/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/zh-hans | • {{#if: UbuntuHelp:UVC|中文(简体)| [[::UVC/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UVC | UbuntuHelp:UVC | {{#if: | :}}UVC}}/zh-hant | • {{#if: UbuntuHelp:UVC|中文(繁體)| [[::UVC/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UVC|:UVC|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UVC/zh | | {{#ifexist: UVC/zh | | {{#ifeq: {{#titleparts:UVC|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UVC|1|-1|}} | zh | | }}
<<Include(Tag/NeedsExpansion)>> 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
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 located here 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/media to INSTALL_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.