个人工具

“UbuntuHelp:UVC”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/UVC}} {{Languages|UbuntuHelp:UVC}} UVC Stands for 'USB Video Class'. It defines video streaming functionality on the Universal Serial Bus. UVC com...)
 
第6行: 第6行:
 
== UVC support in Ubuntu ==
 
== UVC support in Ubuntu ==
 
=== 7.10 and later ===
 
=== 7.10 and later ===
In 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 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 ===
 
=== 7.04 and earlier ===
 
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.
第22行: 第22行:
 
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
 +
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:
 +
<pre><nowiki>
 +
sudo apt-get install linux-headers-`uname -r`
 +
</nowiki></pre>
 
Navigate to the 'trunk' directory containing the source and run:
 
Navigate to the 'trunk' directory containing the source and run:
 
<pre><nowiki>
 
<pre><nowiki>
第28行: 第35行:
 
=== Install ===
 
=== 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 :
 
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''
+
<pre><nowiki>
 +
INSTALL_MOD_DIR := usb/media
 +
 
 
to
 
to
''INSTALL_MOD_DIR:= ubuntu/media/usbvideo''
+
 
 +
INSTALL_MOD_DIR := ubuntu/media/usbvideo
 +
</nowiki></pre>
 
then run
 
then run
 
<pre><nowiki>
 
<pre><nowiki>
make install
+
sudo make install
 
</nowiki></pre>
 
</nowiki></pre>
 
=== Insert Modules ===
 
=== Insert Modules ===

2008年4月23日 (三) 12:02的版本

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 http://linux-uvc.berlios.de/ and includes a list of supported devices

UVC support in Ubuntu

7.10 and later

In 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 [url 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 Subversion repository and compile it yourself.

Checkout from SVN

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

Insert Modules

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