'Failed to open video device /dev/video0: Permission denied'
Posted: Fri Aug 14, 2015 2:38 pm
Hello,
I have Zoneminder V1.28.1 installed under Ubuntu Server 14.04.3 LTS. I'm testing with a single Logitech USB camera. Zoneminder runs, I can access the web interface and I've set up a monitor with the camera, but I get no video from it. The Zoneminder console displays (under the Source column) '/dev/video0 (0)' in orange.
1) lsusb shows the camera:
Bus 001 Device 004: ID 046d:08dd Logitech, Inc. QuickCam for Notebooks
2) zmu -d /dev/video0 -q -v returns something odd:
Error, failed to enumerate standard 0: Success
3) Permissions on /dev/video0:
ls -al /dev/video0
crwxrwxrwx 1 root video 81, 0 Aug 14 07:02 /dev/video0
4) cat /etc/group contains this (amongst others):
video44:www-data
5) v4l-info returns info about the camera:
### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "gspca_zc3xx"
card : "USB Camera (046d:08dd)"
bus_info : "usb-0000:00:14.0-3"
version : 3.19.8
capabilities : 0x85200001 [VIDEO_CAPTURE,?,READWRITE,STREAMING,(null)]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "gspca_zc3xx"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "JPEG"
pixelformat : 0x4745504a [JPEG]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 640
fmt.pix.height : 472
fmt.pix.pixelformat : 0x4745504a [JPEG]
fmt.pix.field : NONE
fmt.pix.bytesperline : 640
fmt.pix.sizeimage : 113870
fmt.pix.colorspace : JPEG
fmt.pix.priv : 4276996862
6) I turned on debugging and looked at the log files. One zm_debug log shows:
08/14/15 06:00:03.429537 zmc_dvideo0[15892].FAT-zm_local_camera.cpp/673 [Failed to open video device /dev/video0: Permission denied]
I'm at a loss. =( Could anyone offer some advice on how to proceed from here?
Thanks.
I have Zoneminder V1.28.1 installed under Ubuntu Server 14.04.3 LTS. I'm testing with a single Logitech USB camera. Zoneminder runs, I can access the web interface and I've set up a monitor with the camera, but I get no video from it. The Zoneminder console displays (under the Source column) '/dev/video0 (0)' in orange.
1) lsusb shows the camera:
Bus 001 Device 004: ID 046d:08dd Logitech, Inc. QuickCam for Notebooks
2) zmu -d /dev/video0 -q -v returns something odd:
Error, failed to enumerate standard 0: Success
3) Permissions on /dev/video0:
ls -al /dev/video0
crwxrwxrwx 1 root video 81, 0 Aug 14 07:02 /dev/video0
4) cat /etc/group contains this (amongst others):
video44:www-data
5) v4l-info returns info about the camera:
### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "gspca_zc3xx"
card : "USB Camera (046d:08dd)"
bus_info : "usb-0000:00:14.0-3"
version : 3.19.8
capabilities : 0x85200001 [VIDEO_CAPTURE,?,READWRITE,STREAMING,(null)]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "gspca_zc3xx"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "JPEG"
pixelformat : 0x4745504a [JPEG]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 640
fmt.pix.height : 472
fmt.pix.pixelformat : 0x4745504a [JPEG]
fmt.pix.field : NONE
fmt.pix.bytesperline : 640
fmt.pix.sizeimage : 113870
fmt.pix.colorspace : JPEG
fmt.pix.priv : 4276996862
6) I turned on debugging and looked at the log files. One zm_debug log shows:
08/14/15 06:00:03.429537 zmc_dvideo0[15892].FAT-zm_local_camera.cpp/673 [Failed to open video device /dev/video0: Permission denied]
I'm at a loss. =( Could anyone offer some advice on how to proceed from here?
Thanks.