找回密码
 注册
搜索
热搜: 超星 读书 找书
查看: 2503|回复: 0

[【推荐】] ubuntu 使用gspca安装摄像头

[复制链接]
发表于 2009-8-6 14:30:10 | 显示全部楼层 |阅读模式
ubuntu version: 9.04
kernel version: 2.6.28-14-server
gcc version:  4.3.3

gspca webcam drivers 是linux下摄像头支持的最广泛的一个驱动, 这是由一个法国医生(http://mxhaard.free.fr/)所设计编写的.不过从2007年底开始,已经不再维护, 最后一个版本为20071224.

ubuntu中可以在通过apt-get install gspca-source安装代码, 不过此代码再2.6.26以上内核会编译出错.

而从lwn.net(http://lwn.net/Articles/291054/)得知, 从2.6.26开始, gspca已经合并到内核中间,
名称为UVC(USB Video Class Linux device driver), 在driver/media/video/gspca目录. 编译时只需勾选相关的模块即可.



如果想使用最新的gspca代码可以从以下几个站点下载到:

http://linuxtv.org/hg/~jfrancois/gspca/
http://linuxtv.org/hg/~eandren/gspca-m5602/
http://linuxtv.org/hg/~pinchartl/uvcvideo/



建议下载最新的gspca代码, 可能修正了最新的bug.

# wget http://linuxtv.org/hg/~jfrancois/gspca/archive/tip.tar.bz2 -O gspca.tar.bz2
# tar -jxvf gspca.tar.bz2
# cd gspca-xxx
# make menuconfig # 选择编译选项
# make
# make install



使用usb camera插入时即可自动加载模块, 可通过v4l-info命令查看/dev/video相关信息.

# v4l-info





测试摄像头可用以下几个软件:
webcam
luvcview
spcaview
camorama
通过 aptitude install xxx 即可

示例:
# lucview -d /dev/video0 -L
查询设备的相关信息



相关引用:


http://lwn.net/Articles/291036/
http://mentors.debian.net/cgi-bi ... ails;package=libv4l
http://hansdegoede.livejournal.com/4789.html
http://fedoraproject.org/wiki/Fe ... pport#Documentation

Linux UVC driver and tools

QuickCam Team

Drivers


Linux USB Video Class (UVC) driver — by Martin Rubli
SPCA webcam driver family — by Martin Rubli
Philips USB webcam driver — by Martin Rubli
QuickCam Messenger & Communicate driver — by Martin Rubli
QuickCam USB camera driver — by Martin Rubli

V4L2-compatible software

luvcview — by Martin Rubli — Small video capture program ideal for webcam testing and problem debugging.

Ekiga — by Martin Rubli — Audio and video conferencing software supporting H.232 and SIP.
FFmpeg — by Martin Rubli — Program suite to record and convert audio and video streams.
fswebcam — by Martin Rubli — Command-line tool to capture webcam images.
GStreamer — by Martin Rubli — V4L2 plugin for the GStreamer multimedia framework.
MJPG-streamer and UVC-streamer — by Martin Rubli — Resource-friendly IP-based webcam streaming server
uvccapture — by Martin Rubli — Command-line tool to capture webcam images.
UVC incompatible software — by Martin Rubli — List of a few programs that have V4L2 support but do not work with the Linux UVC driver because of implementation limitations.
unicap and ucview — by Martin Rubli — Video capture library with supporting GTK widgets

V4L1-only software

GStreamer — by Martin Rubli — V4L plugin for the GStreamer multimedia framework.
Motion — by Martin Rubli — Motion detection software.
Camorama — by Martin Rubli — GTK+ application to display webcam streams.
ZoneMinder — by Martin Rubli — Web-based camera surveillance and security solution.
V4L1/V4L2 hybrid software — by Martin Rubli — A list of software that works with both, V4L1 and V4L2.
JMF — by Martin Rubli — Java Media Framework
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|网上读书园地

GMT+8, 2024-11-3 02:34 , Processed in 0.266300 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表