+ -
当前位置:首页 → 问答吧 → 摄像头使用问题

摄像头使用问题

时间:2009-01-29

来源:互联网

已经在内核中添加了对video for linux的支持,而且也把基本驱动都编译进去了.安装SDL和SPCAVIEW也成功了.但是在使用的时候却提示查找不到摄像头.
在网站:mxhaard.free.fr/spca5xx.html 中,我可以查到我的摄像头为:
Wasam 107 0x0ac8 0x301b Wasam Wa350R Zc0301P Pb0330 Yes jpeg spca5xx/LE gspca v4l1/v4l2 ****
驱动属于Zc0301P,也就是gspca_zc3xx模块.但是我使用的时候提示驱动不对,无法使用摄像头.请高手指点一二.

linyin ~ # uname -a
Linux linyin 2.6.27-gentoo-r8 #6 Thu Jan 29 17:27:13 CST 2009 i686 VIA Samuel 2 CentaurHauls GNU/Linux

linyin ~ # lsusb
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
Bus 001 Device 001: ID 1d6b:0001

linyin ~ # lsmod
Module Size Used by
gspca_zc3xx 45088 0
gspca_main 17344 1 gspca_zc3xx
videodev 27904 1 gspca_main
v4l1_compat 12132 1 videodev

linyin ~ # spcaserv -s 320x240 -w 192.168.1.6:7070
size width: 320 height: 240
Port should be between 1024 to 65536 set default 7070 !.
Spcaview version: 1.1.8 date: 25:12:2007 (C) [email protected]
video /dev/video0
Camera found: PC Camera
VIDIOCGPICT brightnes=32896 hue=0 color=0 contrast=32768 whiteness=39321depth=8 palette=0
Bridge found: zc3xx
Not an Spca5xx Camera !!
wrong spca5xx device
StreamId: -1 Camera
try palette 21 depth 8
Damned second try fail
try palette 15 depth 12
Damned second try fail
try palette 4 depth 24
Damned second try fail
try palette 3 depth 16
Damned second try fail
try palette 5 depth 32
Damned second try fail
probe size in
Available Resolutions width 640 heigth 480
Available Resolutions width 384 heigth 288
Available Resolutions width 352 heigth 288
Available Resolutions width 320 heigth 240
Available Resolutions width 192 heigth 144
Available Resolutions width 176 heigth 144
Available Resolutions width 160 heigth 120
Invalid palette in check palette fatal !!
Format asked 15 check -1
VIDIOCSPICT brightnes=32896 hue=0 color=0 contrast=32768 whiteness=39321depth=12 palette=15
VIDIOCGPICT brightnes=32896 hue=0 color=0 contrast=32768 whiteness=39321depth=8 palette=0
could't set video palette Abort !

作者: linyin   发布时间: 2009-01-29

Bridge found: zc3xx
Not an Spca5xx Camera !!
你的摄像头的驱动不对?

作者: blackwhite   发布时间: 2009-01-29

Wasam 107 0x0ac8 0x301b Wasam Wa350R Zc0301P Pb0330 Yes jpeg spca5xx/LE gspca v4l1/v4l2 ****

驱动应当是没问题的.因为这摄像头在FREEBSD下就是用的spca5xx的驱动

作者: linyin   发布时间: 2009-01-29