Camera Not Working With Zoneminder

Forum for questions and support relating to the 1.24.x releases only.
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Camera Not Working With Zoneminder

Post by zdunham »

Hi all.

My issue here seems to happen more than a little bit; I have seen a few topics on it but none have solved my issue. I am using a Logitech Quickcam attached locally to the machine. I am running Ubuntu Jaunty. I have tested the camera with XawTV and it works with that and has a great picture. In Zoneminder the camera will not produce any video, the monitor window will pop up and I just get a blank box where the video should be. I have been talking with someone on linuxquestions.org and have some output for anyone to see what is going on here. Thanks in advance for any help.

First my setup, in the "General" tab for the camera setup:

Code: Select all

Name:                       Monitor-1
Source Type:                Local
Function:                   Modect
Enabled:                    Yes
Linked Monitors:            Monitor-1
Max FPS:                    None
Alarm Max FPS:              None
Reference Image Blend %ge:  7
Triggers:                   None Available
Then in the "Source" tab of the camera setup:

Code: Select all

Device Path:                /dev/video0
Capture Method:             Video for Linux 2
Device Channel:             0
Device Format:              PAL
Capture Palette:            RGB24
Capture Width:              320
Capture Height:             240
Preserve Aspect Ratio:      No
Orientation:                Normal
I tried a load of different device formats and capture palettes and nothing changed. I probably didn't cover every possible combination but I did a lot. I left it at PAL and RGB24 because those seem to be the most common for Logitech cams that I have seen in other posts.

I tailed zmdc.log as well and this is what I got:

Code: Select all

10/05/2009 16:22:32.055844 zmdc[22302].INF [Starting pending process, zmc -d /dev/video0]
10/05/2009 16:22:32.057722 zmdc[22302].INF ['zmc -d /dev/video0' starting at 09/10/05 16:22:32, pid = 19336]
10/05/2009 16:22:32.099510 zmdc[22302].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
I am almost 100% sure the camera is /dev/video0 because I ran:

Code: Select all

ls /dev/video*
and that returned just /dev/video0. I only have that one camera attached at the moment.

Any help would be great and thanks in advance!
mitch
Posts: 169
Joined: Thu Apr 30, 2009 4:18 am

Post by mitch »

See http://www.zoneminder.com/wiki/index.ph ... leshooting pastebin the zmc specific debug log file as mentioned there.
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

tried some of the stuff in that link, still no luck, thanks for the try though
mitch
Posts: 169
Joined: Thu Apr 30, 2009 4:18 am

Post by mitch »

i wasn't trying anything, i was providing details on how you can generate a debug log so we can assist you and figuring out your problem.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

Capture Palette: RGB24
Try BGR24
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

whatboy wrote:
Capture Palette: RGB24
Try BGR24
Still nothing with BGR24
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

Sorry Mitch somehow I missed that part about the debug log.

Code: Select all

10/08/09 09:24:16.040690 zmc_dvideo0[10255].INF-zm_debug.c/292 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.10255]
10/08/09 09:24:16.041073 zmc_dvideo0[10255].DB1-zm_monitor.cpp/1712 [Got 1 monitors]
10/08/09 09:24:16.041154 zmc_dvideo0[10255].DB2-zm_local_camera.cpp/286 [V4L2 support enabled, using V4L2 api]
10/08/09 09:24:16.041932 zmc_dvideo0[10255].DB1-zm_monitor.cpp/338 [monitor purpose=1]
10/08/09 09:24:16.041955 zmc_dvideo0[10255].DB1-zm_monitor.cpp/345 [mem.size=9217192]
10/08/09 09:24:16.055658 zmc_dvideo0[10255].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
10/08/09 09:24:16.058028 zmc_dvideo0[10255].DB1-zm_monitor.cpp/458 [Monitor Monitor-1 has function 2]
10/08/09 09:24:16.058045 zmc_dvideo0[10255].DB1-zm_monitor.cpp/459 [Monitor Monitor-1 LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
10/08/09 09:24:16.058057 zmc_dvideo0[10255].DB1-zm_monitor.cpp/460 [Monitor Monitor-1 IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
10/08/09 09:24:16.058284 zmc_dvideo0[10255].DB1-zm_zone.cpp/889 [Got 1 zones for monitor Monitor-1]
10/08/09 09:24:16.058306 zmc_dvideo0[10255].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 319,0 319,239 0,239]
10/08/09 09:24:16.058321 zmc_dvideo0[10255].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 319,0 319,239 0,239']
10/08/09 09:24:16.058335 zmc_dvideo0[10255].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
10/08/09 09:24:16.058346 zmc_dvideo0[10255].DB3-zm_zone.cpp/796 [Got coordinate 319,0 from polygon string]
10/08/09 09:24:16.058357 zmc_dvideo0[10255].DB3-zm_zone.cpp/796 [Got coordinate 319,239 from polygon string]
10/08/09 09:24:16.058368 zmc_dvideo0[10255].DB3-zm_zone.cpp/796 [Got coordinate 0,239 from polygon string]
10/08/09 09:24:16.058383 zmc_dvideo0[10255].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
10/08/09 09:24:16.058396 zmc_dvideo0[10255].DB1-zm_zone.cpp/50 [Initialised zone 2/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0, OF: 0]
10/08/09 09:24:16.060602 zmc_dvideo0[10255].DB1-zm_monitor.cpp/1814 [Loaded monitor 2(Monitor-1), 1 zones]
10/08/09 09:24:16.060621 zmc_dvideo0[10255].INF-zmc.cpp/188 [Starting Capture]
10/08/09 09:24:16.060885 zmc_dvideo0[10255].DB3-zm_local_camera.cpp/349 [Opening video device /dev/video0]
10/08/09 09:24:16.060930 zmc_dvideo0[10255].DB2-zm_local_camera.cpp/355 [V4L2 support enabled, using V4L2 api]
10/08/09 09:24:16.060944 zmc_dvideo0[10255].DB3-zm_local_camera.cpp/360 [Checking video device capabilities]
10/08/09 09:24:16.060965 zmc_dvideo0[10255].DB3-zm_local_camera.cpp/370 [Setting up video format]
10/08/09 09:24:16.060996 zmc_dvideo0[10255].FAT-zm_local_camera.cpp/386 [Failed to set video format: Invalid argument]
10/08/09 09:24:16.061373 zmc_dvideo0[10255].INF-zm_signal.cpp/64 [Got signal 6 (Aborted), exiting and forcing backtrace]
10/08/09 09:24:16.061509 zmc_dvideo0[10255].ERR-zm_signal.cpp/84 [Signal address is (nil), from 0xb806e430]
10/08/09 09:24:16.061779 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: [0xb806e430]]
10/08/09 09:24:16.061856 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: [0xb806e430]]
10/08/09 09:24:16.061898 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /lib/tls/i686/cmov/libc.so.6(gsignal+0x50) [0xb7b796d0]]
10/08/09 09:24:16.061953 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7b7b098]]
10/08/09 09:24:16.062002 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x805582d]]
10/08/09 09:24:16.062051 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x80688cf]]
10/08/09 09:24:16.062100 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x80691a4]]
10/08/09 09:24:16.062148 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804c4db]]
10/08/09 09:24:16.062197 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7b64775]]
10/08/09 09:24:16.062246 zmc_dvideo0[10255].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804c041]]
10/08/09 09:24:16.062295 zmc_dvideo0[10255].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
10/08/09 09:24:16.062354 zmc_dvideo0[10255].INF-zm_signal.cpp/126 [addr2line -e /usr/local/bin/zmc 0xb806e430 0xb806e430 0xb7b796d0 0xb7b7b098 0x805582d 0x80688cf 0x80691a4 0x804c4db 0xb7b64775 0x804c041]
codabiz
Posts: 59
Joined: Sun Jan 04, 2009 10:16 am
Location: London, UK

Post by codabiz »

Just for the record, I can use a Logitech Quickcam Pro 9000 (version2) at 1600x1200 at 5fps, using zm 1.24.2 on Ubuntu Server 9.04, with no problems.

Source:
Device Path: /dev/video0
Capture Method: Video for Linux 2
Device Channel: 0
Device Format: PAL
Capture Palette: YUYV
Capture Width: 1600
Capture Height: 1200
Preserve Aspect Ratio: No
Orientation: Normal

Remember that some Logitech cameras are buggy under Linux. Check for compatiblity here http://linux-uvc.berlios.de/
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

codabiz wrote:Just for the record, I can use a Logitech Quickcam Pro 9000 (version2) at 1600x1200 at 5fps, using zm 1.24.2 on Ubuntu Server 9.04, with no problems.

Source:
Device Path: /dev/video0
Capture Method: Video for Linux 2
Device Channel: 0
Device Format: PAL
Capture Palette: YUYV
Capture Width: 1600
Capture Height: 1200
Preserve Aspect Ratio: No
Orientation: Normal

Remember that some Logitech cameras are buggy under Linux. Check for compatiblity here http://linux-uvc.berlios.de/
This camera definitely works with Linux it works great with both Cheese and XawTV, perfect picture.
codabiz
Posts: 59
Joined: Sun Jan 04, 2009 10:16 am
Location: London, UK

Post by codabiz »

Have you tried Capture Palette: YUYV . What is the Device ID: output from command: lsusb . Apologies if I've missed that from a previous post!
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

codabiz wrote:Have you tried Capture Palette: YUYV . What is the Device ID: output from command: lsusb . Apologies if I've missed that from a previous post!
Here is the output from lsusb about the camera:

Code: Select all

Bus 001 Device 002: ID 046d:08c5 Logitech, Inc. Quickcam Pro 5000
I did try YUYV and that also did not work. Thanks for the replies.
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

codabiz, could you possibly link me to where you got any drivers for your camera for Ubuntu? Or did you not need anything extra? Just in case I am missing somethign I'd like to check. Thanks a lot.
codabiz
Posts: 59
Joined: Sun Jan 04, 2009 10:16 am
Location: London, UK

Post by codabiz »

According to the Logitech UVC Frame list here for 08c5 Quickcam


http://www.quickcamteam.net/devices/log ... t_list.pdf

Only 640x480 or 640x360 under Colour Palette YUYV are supported

Others formats are supported under MJPG
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

codabiz wrote:According to the Logitech UVC Frame list here for 08c5 Quickcam


http://www.quickcamteam.net/devices/log ... t_list.pdf

Only 640x480 or 640x360 under Colour Palette YUYV are supported

Others formats are supported under MJPG
That is a very informative PDF not sure why I never found it before. I tried both of those resolutions with YUYV and neither worked. Do you know if the device format is supposed to be PAL? I'm not very knowledgeable about this stuff. Thanks very much for your help.
codabiz
Posts: 59
Joined: Sun Jan 04, 2009 10:16 am
Location: London, UK

Post by codabiz »

Followed the excellent wiki for installing from SVN, and I didn't have do anything other than increase shared memory. I am using a P4 2.8Ghz with 2Gb memory.

My shared memory settings, which is plenty are:

kernel.shmall = 268435456
kernel.shmmax = 268435456

From what I understand, default install will only do 320x240. so you will need
to increase shared memory to run 640x480 Palete YUYV.

Not sure, but I think the 640x480 format is NTSC/PAL compatible
Locked