Page 1 of 1

I cannot use another camera.

Posted: Tue Sep 20, 2011 7:47 am
by magicloud
Hi there,
I have a Lenovo laptop with a webcam and a Logitech USB webcam. And I am using Debian sid.
At first, I installed ZoneMinder. Then I could start either internal cam or external cam. Both worked well.
Then I do not know what changed. I cannot start the external cam. I changed shared memory according to the installation document. But zmc still reports exit code 255 (abnormally exited) in zmdc.log. And the meantime, the internal cam works.
Searched through the forum and internet. All information I got was related to shared memory. I do not know what else I could do. Please help.

Re: I cannot use another camera.

Posted: Wed Sep 21, 2011 4:58 am
by Flasheart
udev has a habit of changing what priority things get mounted as. (You can script its behavior)

With usb cams, it's worth checking that the cam has been mounted in the same place it has been set up in zm. /dev/video0 or /dev/video1 - it can change on reboot or reconnection and break things.

Re: I cannot use another camera.

Posted: Wed Sep 21, 2011 5:22 am
by magicloud
Flasheart wrote:udev has a habit of changing what priority things get mounted as. (You can script its behavior)

With usb cams, it's worth checking that the cam has been mounted in the same place it has been set up in zm. /dev/video0 or /dev/video1 - it can change on reboot or reconnection and break things.
That is a point.
I will check that later.

Re: I cannot use another camera.

Posted: Wed Sep 21, 2011 3:17 pm
by magicloud
Hi there,
I stopped zoneminder, and got following information. I think this indicated that both video0/video1 were fine.

2011/09/21 Wed 23:14:49 magicloud@magiclouds:pts/0 ~
$ zmu -d /dev/video0 -qv
Video Device: /dev/video0
General Capabilities
Driver: uvcvideo
Card: Lenovo EasyCamera
Bus: usb-0000:00:1d.0-1.4
Version: 1.1.0
Type: 0x4000001
Supports video capture (X)
Does not support video output
Does not support frame buffer overlay
Does not support VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Does not support read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
Formats:
YUV 4:2:2 (YUYV) (YUYV)
Crop Capabilities
Bounds: 640 x 400
Default: 640 x 400
Inputs: 1
Input 0
Name: Camera 1
Type: Camera
Audioset: 00000000
Standards: 0x0
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
2011/09/21 Wed 23:15:29 magicloud@magiclouds:pts/0 ~
$ zmu -d /dev/video1 -qv
Video Device: /dev/video1
General Capabilities
Driver: uvcvideo
Card: UVC Camera (046d:080a)
Bus: usb-0000:00:1d.0-1.2
Version: 1.1.0
Type: 0x4000001
Supports video capture (X)
Does not support video output
Does not support frame buffer overlay
Does not support VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Does not support read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
Formats:
YUV 4:2:2 (YUYV) (YUYV)
MJPEG (MJPG)
Crop Capabilities
Bounds: 640 x 480
Default: 640 x 480
Inputs: 1
Input 0
Name: Camera 1
Type: Camera
Audioset: 00000000
Standards: 0x0
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected

Re: I cannot use another camera.

Posted: Wed Sep 21, 2011 5:20 pm
by mastertheknife
Use 640x480 YUYV with both cameras. What error(s) do you see in the system log?

mastertheknife

Re: I cannot use another camera.

Posted: Thu Sep 22, 2011 8:04 am
by magicloud
The only error I got was zmc exited abnormally. Exit code is 255.