特殊:Badtitle/NS100:Webcam
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Webcam }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/af | • {{#if: UbuntuHelp:Webcam|Afrikaans| [[::Webcam/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ar | • {{#if: UbuntuHelp:Webcam|العربية| [[::Webcam/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/az | • {{#if: UbuntuHelp:Webcam|azərbaycanca| [[::Webcam/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/bcc | • {{#if: UbuntuHelp:Webcam|جهلسری بلوچی| [[::Webcam/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/bg | • {{#if: UbuntuHelp:Webcam|български| [[::Webcam/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/br | • {{#if: UbuntuHelp:Webcam|brezhoneg| [[::Webcam/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ca | • {{#if: UbuntuHelp:Webcam|català| [[::Webcam/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/cs | • {{#if: UbuntuHelp:Webcam|čeština| [[::Webcam/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/de | • {{#if: UbuntuHelp:Webcam|Deutsch| [[::Webcam/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/el | • {{#if: UbuntuHelp:Webcam|Ελληνικά| [[::Webcam/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/es | • {{#if: UbuntuHelp:Webcam|español| [[::Webcam/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/fa | • {{#if: UbuntuHelp:Webcam|فارسی| [[::Webcam/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/fi | • {{#if: UbuntuHelp:Webcam|suomi| [[::Webcam/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/fr | • {{#if: UbuntuHelp:Webcam|français| [[::Webcam/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/gu | • {{#if: UbuntuHelp:Webcam|ગુજરાતી| [[::Webcam/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/he | • {{#if: UbuntuHelp:Webcam|עברית| [[::Webcam/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/hu | • {{#if: UbuntuHelp:Webcam|magyar| [[::Webcam/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/id | • {{#if: UbuntuHelp:Webcam|Bahasa Indonesia| [[::Webcam/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/it | • {{#if: UbuntuHelp:Webcam|italiano| [[::Webcam/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ja | • {{#if: UbuntuHelp:Webcam|日本語| [[::Webcam/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ko | • {{#if: UbuntuHelp:Webcam|한국어| [[::Webcam/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ksh | • {{#if: UbuntuHelp:Webcam|Ripoarisch| [[::Webcam/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/mr | • {{#if: UbuntuHelp:Webcam|मराठी| [[::Webcam/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ms | • {{#if: UbuntuHelp:Webcam|Bahasa Melayu| [[::Webcam/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/nl | • {{#if: UbuntuHelp:Webcam|Nederlands| [[::Webcam/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/no | • {{#if: UbuntuHelp:Webcam|norsk| [[::Webcam/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/oc | • {{#if: UbuntuHelp:Webcam|occitan| [[::Webcam/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/pl | • {{#if: UbuntuHelp:Webcam|polski| [[::Webcam/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/pt | • {{#if: UbuntuHelp:Webcam|português| [[::Webcam/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ro | • {{#if: UbuntuHelp:Webcam|română| [[::Webcam/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/ru | • {{#if: UbuntuHelp:Webcam|русский| [[::Webcam/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/si | • {{#if: UbuntuHelp:Webcam|සිංහල| [[::Webcam/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/sq | • {{#if: UbuntuHelp:Webcam|shqip| [[::Webcam/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/sr | • {{#if: UbuntuHelp:Webcam|српски / srpski| [[::Webcam/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/sv | • {{#if: UbuntuHelp:Webcam|svenska| [[::Webcam/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/th | • {{#if: UbuntuHelp:Webcam|ไทย| [[::Webcam/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/tr | • {{#if: UbuntuHelp:Webcam|Türkçe| [[::Webcam/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/vi | • {{#if: UbuntuHelp:Webcam|Tiếng Việt| [[::Webcam/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/yue | • {{#if: UbuntuHelp:Webcam|粵語| [[::Webcam/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/zh | • {{#if: UbuntuHelp:Webcam|中文| [[::Webcam/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/zh-hans | • {{#if: UbuntuHelp:Webcam|中文(简体)| [[::Webcam/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Webcam | UbuntuHelp:Webcam | {{#if: | :}}Webcam}}/zh-hant | • {{#if: UbuntuHelp:Webcam|中文(繁體)| [[::Webcam/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Webcam|:Webcam|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Webcam/zh | | {{#ifexist: Webcam/zh | | {{#ifeq: {{#titleparts:Webcam|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Webcam|1|-1|}} | zh | | }}
Driver installation
Many cameras work out-of-the-box. If needed, try EasyCam, a tool for installing webcam drivers. If you are unable to manage installing your Webcam using EasyCam, you may try installing your camera manually. At the end of this page are some links to help you with this.
Testing your webcam
There is a nifty little application called camorama to view, alter and save images from a webcam. Simply install it via apt:
sudo apt-get install camorama
xawtv is another program you can use to test the camera.
sudo apt-get install xawtv
Additional software
If you want to have a little tray system icon that notifies you when your webcam is on, try Camera Monitor. There is even a debian/ubuntu package available. Webcam support is built in to aMSN, kopete and ekiga. As usual, install with
sudo apt-get install kopete sudo apt-get install amsn sudo apt-get install ekiga
Recording to an AVI file
MPlayer is capaple of displaying a webcam video stream, for example with the command line
mplayer tv:// -tv driver=v4l:width=640:height=480:device=/dev/video0
The resolution (width=??? & height=??? ) should be chosen to match the output of your device. The companion to MPlayer, MEncoder can record from a webcam to video files such as AVI, for example without audio:
mencoder tv:// -tv driver=v4l:width=320:height=240:device=/dev/video0 -ovc lavc -o webcam.avi
and with audio
mencoder tv:// -tv driver=v4l:width=320:height=240:device=/dev/video0:forceaudio:adevice=/dev/dsp1 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi
Type 'man mencoder' for more info on the audio options. In the example, /dev/dsp1 refers to the webcam USB Audio device, while /dev/dsp would refer to the sound card You may need to install these programs with
sudo apt-get install mplayer mencoder
Manual installation instructions
Installing spca5xx manually
You can find howto's for manual installation of the spca5xx driver here.
Installing ov51x manually
You can find howto's for manual installation of the ov51x driver here.
Installing ov51x-jpeg manually
This is a hacked driver by http://www.rastageeks.org/ and more info is available at http://www.rastageeks.org/ov51x-jpeg/index.php/Main_Page Suported hardware http://www.rastageeks.org/ov51x-jpeg/index.php/Working_Webcams My webcam is a Creative Live! Cam Vista IM and I found the instructions ready to go on the wiki very good. Installed it in 30 seconds
Installing UVC manually
The UVC module is included in 7.10, and possibly earlier but the included version has problems with some webcams. If you need to install/update it you can find a howto here
Edgy troubleshooting : pwc driver is broken
On Edgy, the pwc driver in the kernel is broken. List of the working webcams with pwc. An easy check to see if your pwc driver is broken :
$ lsmod | grep pwc pwc 51964 1 <- Your driver is broken ! (around 50kb) pwc 93984 0 <- your driver seems ok. (around 90kb)
How to get your webcam working ? 1) Install build-essential and the kernel-headers for your kernel (linux-headers-2.6.17-6-686 for me). 2) Download latest driver from http://www.saillard.org/linux/pwc/ (http://www.saillard.org/linux/pwc/files/pwc-10.0.12-rc1.tar.bz2 for me) 3) Unpack and go into extracted directory 4)
make
5)
sudo modprobe -r pwc
6)
sudo cp pwc.ko /lib/modules/`uname -r`/kernel/drivers/media/video/pwc/pwc.ko.saillard
7)
cd /lib/modules/`uname -r`/kernel/drivers/media/video/pwc
8)
sudo mv pwc.ko pwc.ko.ubuntu
9)
sudo ln -s pwc.ko.saillard pwc.ko
10)
sudo depmod -a
11)
sudo modprobe pwc
12) Enjoy! :)
See also
- InstallingLogitechQuickcamPro5000OnEdgy
- Installing the Eyetoy as a Webcam with Kopete