|
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 |
|