个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:Webcam”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Webcam”的源代码
来自Ubuntu中文
←
UbuntuHelp:Webcam
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Webcam}} {{Languages|UbuntuHelp:Webcam}} === 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 [http://camorama.fixedgear.org/ camorama] to view, alter and save images from a webcam. Simply install it via apt: <pre><nowiki> sudo apt-get install camorama </nowiki></pre> ''xawtv'' is another program you can use to test the camera. <pre><nowiki> sudo apt-get install xawtv </nowiki></pre> === Additional software === If you want to have a little tray system icon that notifies you when your webcam is on, try [http://infinito.f2o.org/cameramonitor/ Camera Monitor]. There is even a [http://infinito.f2o.org/cameramonitor/cameramonitor_0.1-1_i386.deb debian/ubuntu package] available. Webcam support is built in to [http://amsn.sourceforge.net/ aMSN], [http://kopete.kde.org/ kopete] and [http://www.gnomemeeting.org/ ekiga]. As usual, install with <pre><nowiki> sudo apt-get install kopete sudo apt-get install amsn sudo apt-get install ekiga </nowiki></pre> === Recording to an AVI file === [https://help.ubuntu.com/community/MPlayer MPlayer] is capaple of displaying a webcam video stream, for example with the command line <pre><nowiki> mplayer tv:// -tv driver=v4l:width=640:height=480:device=/dev/video0 </nowiki></pre> The resolution (width=??? & height=??? ) should be chosen to match the output of your device. The companion to MPlayer, [https://help.ubuntu.com/community/MEncoder MEncoder] can record from a webcam to video files such as AVI, for example without audio: <pre><nowiki> mencoder tv:// -tv driver=v4l:width=320:height=240:device=/dev/video0 -ovc lavc -o webcam.avi </nowiki></pre> and with audio <pre><nowiki> 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 </nowiki></pre> 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 <pre><nowiki> sudo apt-get install mplayer mencoder </nowiki></pre> === Manual installation instructions === ==== Installing spca5xx manually ==== You can find howto's for manual installation of the spca5xx driver [[UbuntuWiki:Spca5xx|here]]. ==== Installing ov51x manually ==== You can find howto's for manual installation of the ov51x driver [[UbuntuHelp:Ov51x|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 [[UbuntuHelp:UVC|here]] === Edgy troubleshooting : pwc driver is broken === On Edgy, the pwc driver in the kernel is [https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.17/+bug/56090 broken]. [http://www.lavrsen.dk/twiki/bin/view/PWC/WorkingWebcamsWithPWC List of the working webcams with pwc.] An easy check to see if your pwc driver is broken : <pre><nowiki>$ lsmod | grep pwc pwc 51964 1 <- Your driver is broken ! (around 50kb) pwc 93984 0 <- your driver seems ok. (around 90kb) </nowiki></pre> 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) <pre><nowiki> make </nowiki></pre> 5) <pre><nowiki> sudo modprobe -r pwc </nowiki></pre> 6) <pre><nowiki> sudo cp pwc.ko /lib/modules/`uname -r`/kernel/drivers/media/video/pwc/pwc.ko.saillard </nowiki></pre> 7) <pre><nowiki> cd /lib/modules/`uname -r`/kernel/drivers/media/video/pwc </nowiki></pre> 8) <pre><nowiki> sudo mv pwc.ko pwc.ko.ubuntu </nowiki></pre> 9) <pre><nowiki> sudo ln -s pwc.ko.saillard pwc.ko </nowiki></pre> 10) <pre><nowiki> sudo depmod -a </nowiki></pre> 11) <pre><nowiki> sudo modprobe pwc </nowiki></pre> 12) Enjoy! :) === See also === * InstallingLogitechQuickcamPro5000OnEdgy * [https://help.ubuntu.com/community/InstallingEyetoyAsAWebcam Installing the Eyetoy as a Webcam with Kopete] ---- [[category:CategoryDocumentation]] [[category:CategoryCleanup]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Webcam
。