dogking 发表于 2005-11-25 01:29:27

随便问问,关于linux下使用摄像头~~~

大家有没有人解决ML2.0rc或者其他linux下使用中微星301p摄像头的问题阿?

公社上有个帖子是关于中微星的驱动下载的,但是我是教育网。下载不了,谁下载了,给个源码包阿~~

我从别的网站下载了个301的linux驱动,有zc301b.o(支持库文件) zc301b.sh(脚本)camstream(可执行软件)

我看了看。看了看~~不会用~~
唉!!


:(

dogking 发表于 2005-11-25 01:31:04

顺便贴出那个脚本内容
#
# Load the needed modules for the zc301 driver.
#

# you may need these commented out lines if your insmod is too old.
#IS24=`uname -r | grep -c ^2.2`
#
#if [ $IS24 == "1" ]
#then
#insmod /lib/modules/2.2.14/misc/videodev.o
#else
#insmod /lib/modules/2.4.0-test10/kernel/drivers/media/video/videodev.o
#fi

#
# Load the modules.
#

# Video4Linux Support
/sbin/insmod videodev

# USB Core Module
/sbin/insmod usbcore

# USB UHCI/OHCI Controller Modules (new)
/sbin/insmod usb-uhci
#/sbin/insmod usb-ohci

# USB UHCI Controller Modules (old)
#/sbin/insmod uhci

# that for the sys request key, comment it out if the quickcam works well.
# if you get any erors: use Alt + SysRq + S = Emergency Sync (write everything on HDD)
#                        use Alt + SysRq + U = Unmount all HDD's
#                        use Alt + SysRq + B = Reboot system immediatly
echo "1" > /proc/sys/kernel/sysrq

# zc301.o is in current directory, after copying in /lib/modules/.../usb,
# use insmod zc302.
/sbin/insmod ./zc31b.o

/sbin/lsmod

demonlj 发表于 2005-11-25 08:11:16

用kde提供的2.6.13.4配套的摄像头驱动可以驱动一般的摄像头。

dogking 发表于 2005-11-25 09:54:47

:-)
愿闻其详~~~

xx_zz 发表于 2005-11-25 15:56:02

RC1自带的spca5xx驱动是可以驱动301p的摄像头的。

toytrain 发表于 2005-11-25 16:43:53

我的杂牌摄像头都驱动了

dogking 发表于 2005-11-25 17:17:38

大家详细一点阿~~
怎么做,,用什么软件,怎么驱动?

toytrain 发表于 2005-11-25 18:25:14

直接执行命令 spcaview或spcagui,rc1本身就捆绑了驱动

dogking 发表于 2005-11-25 18:44:11

$ spcaview
Spcaview version: 1.1.1 date: 01:10:2005 (C) [email protected]
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
ERROR opening V4L interface
: No such file or directory
$ spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
ERROR opening V4L interface
: No such file or directory
都不行阿~~
我的usb摄像头已经插好了

xx_zz 发表于 2005-11-26 13:12:41

试试
MAKEDEV -v video0
创建设备,然后再运行spcaview
这个问题我在1.2F上也遇到过。

dogking 发表于 2005-11-26 16:44:13

我用root运行了MAKEDEV -video0

再用普通用户运行spacview显示
Spcaview version: 1.1.1 date: 01:10:2005 (C) [email protected]
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
ERROR opening V4L interface
: Permission denied
用root运行spcaview
Spcaview version: 1.1.1 date: 01:10:2005 (C) [email protected]
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
ERROR opening V4L interface
: No such device


还是不行,我已经创建了video0设备了阿。。。。。这么奇怪。

:-(

matri 发表于 2005-11-28 01:30:11

和你一个问题,纳闷中

KDE 发表于 2005-11-28 20:53:18

就目前而言,连我本人的老摄像头都不能驱动。spca5xx 驱动 11月5日 版目前支持 176 种芯片,仅中星公司就有一批芯片尚未在支持之列。除非厂商开放技术标准,否则很难全部兼容。

dogking 发表于 2005-11-28 21:45:39

看来没戏了~~呵呵。。。
:cry:

0071 发表于 2005-11-28 21:57:35

怎么关闭图象呀??我的信息如下:
$ spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0

$spcaview
Spcaview version: 1.1.1 date: 01:10:2005 (C) [email protected]
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
**************** PROBING CAMERA *********************
Camera found: Z-star Vimicro zc0301p
Bridge found: ZC301-2
Bridge find ZC301-2 number 13
StreamId: JPEG Camera
Bridge find ZC301-2 number 13
Available Resolutions width 640heigth 480 native
Available Resolutions width 352heigth 288 decoded
Available Resolutions width 320heigth 240 native *
Available Resolutions width 176heigth 144 decoded
*****************************************************
grabbing method default MMAP asked
VIDIOCGMBUF size 4915232frames 4offets=0 offsets=1228808
VIDIOCGPICT
brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0
depth=12 palette=15
VIDIOCSPICT
brightness=32768 hue=0 color=0 contrast=32768 whiteness=0
depth=24 palette=15

cvsync err
: Interrupted system call
VIDIOCSPICT
brightness=32768 hue=0 color=65024 contrast=32768 whiteness=0
depth=24 palette=15

Used 21933ms for 158 images => 138ms/image 7fps.
Quiting SDL.
Decoded frames:158 Average decode time: 10.000000
unmapping
我按下ctrl-c
closing
closed
Destroy Picture thread ...
Quiting....
页: [1] 2
查看完整版本: 随便问问,关于linux下使用摄像头~~~