Multiple USB Web Cameras
Posted: Fri Apr 04, 2008 5:33 pm
I am setting up ZM with several cams. They will not show up at the same time. digging in the forums leads me to believe that the issue is shared memory. I set the shared memory like mentioned in the FAQ. that is not correcting the problem. I am wondering if I did not compile a necessary option at compile time.
Is it possible that my problem is not shared mem?
zmdc.log
04/04/08 10:18:28.091603 zmdc[5241].INF [Starting pending process, zmc -m 4]
04/04/08 10:18:28.099782 zmdc[5241].INF ['zmc -m 4' starting at 08/04/04 10:18:28, pid = 13469]
04/04/08 10:18:31.128770 zmdc[5241].ERR ['zmc -m 4' exited abnormally, exit status 255]
04/04/08 10:28:31.072576 zmdc[5241].INF [Starting pending process, zmc -m 4]
04/04/08 10:28:31.076775 zmdc[5241].INF ['zmc -m 4' starting at 08/04/04 10:28:31, pid = 14529]
04/04/08 10:28:34.117695 zmdc[5241].ERR ['zmc -m 4' exited abnormally, exit status 255]
/var/log/messages
Apr 4 10:55:50 zone-minder zmdc[17872]: INF ['zmc -d /dev/video1' started at 08/04/04 10:55:50]
Apr 4 10:55:50 zone-minder zmdc[17253]: INF ['zmc -d /dev/video1' starting at 08/04/04 10:55:50, pid = 17872]
Apr 4 10:55:50 zone-minder zmc_dvideo1[17872]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:55:50 zone-minder zmwatch[17288]: INF ['zmc -d /dev/video1' starting at 08/04/04 10:55:50, pid = 17872]
Apr 4 10:55:53 zone-minder zmc_dvideo1[17872]: INF [Starting Capture]
Apr 4 10:55:53 zone-minder zms[17319]: INF [Got signal (Terminated), exiting]
Apr 4 10:56:00 zone-minder zms[17892]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:56:05 zone-minder zms[17901]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:56:12 zone-minder zmc_dvideo0[17275]: INF [Cam1: 2000 - Capturing at 8.93 fps]
Apr 4 10:57:12 zone-minder zmc_dvideo1[17872]: INF [cam2: 1000 - Capturing at 12.66 fps]
Apr 4 10:58:04 zone-minder zmc_dvideo0[17275]: INF [Cam1: 3000 - Capturing at 8.93 fps]
Apr 4 10:58:21 zone-minder zmdc[17253]: INF [Starting pending process, zmc -m 4]
Apr 4 10:58:21 zone-minder zmdc[17253]: INF ['zmc -m 4' starting at 08/04/04 10:58:21, pid = 18027]
Apr 4 10:58:21 zone-minder zmdc[18027]: INF ['zmc -m 4' started at 08/04/04 10:58:21]
Apr 4 10:58:21 zone-minder zmc_m4[18027]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:58:21 zone-minder zmc_m4[18027]: INF [Starting Capture]
Apr 4 10:58:32 zone-minder zmc_dvideo1[17872]: INF [cam2: 2000 - Capturing at 12.50 fps]
root@zone-minder:/tmp# zmu -d /dev/video0 -q -v
Error, failed to open video device /dev/video0: Device or resource busy
root@zone-minder:/tmp# zmu -d /dev/video1 -q -v
Error, failed to open video device /dev/video1: Device or resource busy
root@zone-minder:/tmp#
lsusb
sudo lsusb
Password:
Bus 004 Device 011: ID 046d:08a2 Logitech, Inc. Labtec WebCam Pro
Bus 004 Device 007: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 004 Device 005: ID 0424:2507 Standard Microsystems Corp.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04fc:0561 Sunplus Technology Co., Ltd Flexcam 100
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 05fe:1010 Chic Technology Corp.
Bus 001 Device 001: ID 0000:0000
Is it possible that my problem is not shared mem?
zmdc.log
04/04/08 10:18:28.091603 zmdc[5241].INF [Starting pending process, zmc -m 4]
04/04/08 10:18:28.099782 zmdc[5241].INF ['zmc -m 4' starting at 08/04/04 10:18:28, pid = 13469]
04/04/08 10:18:31.128770 zmdc[5241].ERR ['zmc -m 4' exited abnormally, exit status 255]
04/04/08 10:28:31.072576 zmdc[5241].INF [Starting pending process, zmc -m 4]
04/04/08 10:28:31.076775 zmdc[5241].INF ['zmc -m 4' starting at 08/04/04 10:28:31, pid = 14529]
04/04/08 10:28:34.117695 zmdc[5241].ERR ['zmc -m 4' exited abnormally, exit status 255]
/var/log/messages
Apr 4 10:55:50 zone-minder zmdc[17872]: INF ['zmc -d /dev/video1' started at 08/04/04 10:55:50]
Apr 4 10:55:50 zone-minder zmdc[17253]: INF ['zmc -d /dev/video1' starting at 08/04/04 10:55:50, pid = 17872]
Apr 4 10:55:50 zone-minder zmc_dvideo1[17872]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:55:50 zone-minder zmwatch[17288]: INF ['zmc -d /dev/video1' starting at 08/04/04 10:55:50, pid = 17872]
Apr 4 10:55:53 zone-minder zmc_dvideo1[17872]: INF [Starting Capture]
Apr 4 10:55:53 zone-minder zms[17319]: INF [Got signal (Terminated), exiting]
Apr 4 10:56:00 zone-minder zms[17892]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:56:05 zone-minder zms[17901]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:56:12 zone-minder zmc_dvideo0[17275]: INF [Cam1: 2000 - Capturing at 8.93 fps]
Apr 4 10:57:12 zone-minder zmc_dvideo1[17872]: INF [cam2: 1000 - Capturing at 12.66 fps]
Apr 4 10:58:04 zone-minder zmc_dvideo0[17275]: INF [Cam1: 3000 - Capturing at 8.93 fps]
Apr 4 10:58:21 zone-minder zmdc[17253]: INF [Starting pending process, zmc -m 4]
Apr 4 10:58:21 zone-minder zmdc[17253]: INF ['zmc -m 4' starting at 08/04/04 10:58:21, pid = 18027]
Apr 4 10:58:21 zone-minder zmdc[18027]: INF ['zmc -m 4' started at 08/04/04 10:58:21]
Apr 4 10:58:21 zone-minder zmc_m4[18027]: INF [Debug Level = 0, Debug Log = <none>]
Apr 4 10:58:21 zone-minder zmc_m4[18027]: INF [Starting Capture]
Apr 4 10:58:32 zone-minder zmc_dvideo1[17872]: INF [cam2: 2000 - Capturing at 12.50 fps]
root@zone-minder:/tmp# zmu -d /dev/video0 -q -v
Error, failed to open video device /dev/video0: Device or resource busy
root@zone-minder:/tmp# zmu -d /dev/video1 -q -v
Error, failed to open video device /dev/video1: Device or resource busy
root@zone-minder:/tmp#
lsusb
sudo lsusb
Password:
Bus 004 Device 011: ID 046d:08a2 Logitech, Inc. Labtec WebCam Pro
Bus 004 Device 007: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 004 Device 005: ID 0424:2507 Standard Microsystems Corp.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04fc:0561 Sunplus Technology Co., Ltd Flexcam 100
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 05fe:1010 Chic Technology Corp.
Bus 001 Device 001: ID 0000:0000