lon83129 发表于 2006-2-9 23:46:54

红旗4.1普通用户如何用摄像头

root可能用
而普通用户不可以用

看图就知道了

lon83129 发表于 2006-2-10 12:40:13

汗,没人懂吗

lon83129 发表于 2006-2-10 13:04:15

$ spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
ERROR opening V4L interface
: Permission denied
$ su
Password:
# spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
ERROR opening V4L interface
: No such device

这是没插上摄像头时的内容

$ spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
ERROR opening V4L interface
: Permission denied
$ su
Password:
# spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
Camera found: Z-star Vimicro zc0301p

VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=24 palette=4
Bridge found: ZC301-2

Unable to find a StreamId !!
StreamId: 6 Unknow Camera
try palette 15 depth 12
Available palette 15
try palette 3 depth 16
Available palette 3
try palette 4 depth 24
Available palette 4
try palette 5 depth 32
Available palette 5
probe size in
Available Resolutions width 640 heigth 480
VIDIOCSWIN reject width 384 height 288
Available Resolutions width 352 heigth 288
Available Resolutions width 320 heigth 240
VIDIOCSWIN reject width 192 height 144
Available Resolutions width 176 heigth 144
grabbing method default MMAP asked
VIDIOCGMBUF size 4915232 frames 4 offets=0 offsets=1228808
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
VIDIOCSPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15

这是插上以后

cobranail 发表于 2006-2-10 13:47:54

chmod 777 /dev/video0
如果还不行,就不知道了,没有遇到这种问题

lon83129 发表于 2006-2-10 14:14:11

行,搞定了

lon83129 发表于 2006-2-10 14:23:19

看看
页: [1]
查看完整版本: 红旗4.1普通用户如何用摄像头