I cannot use another camera.

Forum for questions and support relating to the 1.24.x releases only.
Locked
magicloud
Posts: 7
Joined: Tue Sep 20, 2011 5:40 am

I cannot use another camera.

Post 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.
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Re: I cannot use another camera.

Post 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.
magicloud
Posts: 7
Joined: Tue Sep 20, 2011 5:40 am

Re: I cannot use another camera.

Post 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.
magicloud
Posts: 7
Joined: Tue Sep 20, 2011 5:40 am

Re: I cannot use another camera.

Post 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
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: I cannot use another camera.

Post by mastertheknife »

Use 640x480 YUYV with both cameras. What error(s) do you see in the system log?

mastertheknife
Kfir Itzhak.
magicloud
Posts: 7
Joined: Tue Sep 20, 2011 5:40 am

Re: I cannot use another camera.

Post by magicloud »

The only error I got was zmc exited abnormally. Exit code is 255.
Locked