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

Post by zdunham »

codabiz wrote: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
Would you possibly have a link to that wiki you mentioned? Thanks. I just want to make sure everything is good.

I tried increasing shared memory and it did not change anything.

Thanks again for your time.
codabiz
Posts: 59
Joined: Sun Jan 04, 2009 10:16 am
Location: London, UK

Post by codabiz »

Used Mikets's guide from here:

http://www.zoneminder.com/forums/viewtopic.php?t=14281

Took about 20 minutes to install after previously installing Ubuntu 9.04 Server 32 bit, from Wiki installation guide

There is now a 1.24.2.1 deb package available.

ftp://ftp.northern-ridge.com.au/zoneminder/1.24/ubuntu/
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

codabiz wrote:Used Mikets's guide from here:

http://www.zoneminder.com/forums/viewtopic.php?t=14281

Took about 20 minutes to install after previously installing Ubuntu 9.04 Server 32 bit, from Wiki installation guide

There is now a 1.24.2.1 deb package available.

ftp://ftp.northern-ridge.com.au/zoneminder/1.24/ubuntu/
For some reason I thought the wiki you were talking about was for Logitech drivers. For some reason I think a driver is not working correctly on my machine. Did you install any extra drivers for your camera or was it compatible from the get-go?

EDIT: Nevermind I just was doing a little researched and realized that the UVC drivers are included in Jaunty. I'm a little slow apparently.
-Zach
codabiz
Posts: 59
Joined: Sun Jan 04, 2009 10:16 am
Location: London, UK

Post by codabiz »

I cannot see any reason why your Logitech does not work with 640x480 Colour Palette YUYV assuming you have enough shared memory and FPS is set to a reasonable rate. If it helps

My general tab settings currently are

Name: Logitech_9000
Source Type: Local
Function: Modect
Enabled: Yes
Linked Monitors:
Max FPS: 5.00
Alarm Max FPS: 5.00
Reference Image Blend %ge: 7
Triggers: None Available

Initially I did have to create a new monitor after I accidentally deleted the first!
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

codabiz wrote:I cannot see any reason why your Logitech does not work with 640x480 Colour Palette YUYV assuming you have enough shared memory and FPS is set to a reasonable rate. If it helps

My general tab settings currently are

Name: Logitech_9000
Source Type: Local
Function: Modect
Enabled: Yes
Linked Monitors:
Max FPS: 5.00
Alarm Max FPS: 5.00
Reference Image Blend %ge: 7
Triggers: None Available

Initially I did have to create a new monitor after I accidentally deleted the first!
That is basically the same as mine except I didn't set Max FPS or Alarm Max FPS. I wouldn't think that should make the video not work. I've tried mine on both Monitor mode and Modect mode and that didn't matter either. Thanks for all your help though. This really is a mystery.
-Zach
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

I have figured out that ffmpeg is not working at all and could be the reason Zoneminder isn't working. This is the error I get when I try to run it from the command line:

Code: Select all

someone@somewhere:# ffmpeg -f video4linux2 -s 720x480 -r 30000/1001 -i /dev/video0 -y webcam.avi
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec --disable-vis --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 10 2009 23:18:41, gcc: 4.3.3
[video4linux2 @ 0x8bb9ac0][3]Capabilities: 4000001
[video4linux2 @ 0x8bb9ac0]Cannot find a proper format.
/dev/video0: I/O error occurred
Usually that means that input file is truncated and/or corrupted.
someone@something:#
-Zach
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

OK, I reformatted the box and followed a different tutorial. After doing the whole installation from scratch, I got the source showing up green instead of red in the Zoneminder WUI. There is still no picture when I open up the monitor but I go to settings and there is nothing set for brightness, hue, etc. If I try to set them I get this error:

Code: Select all

Notice: Undefined offset: 1 in /var/www/includes/actions.php on line 217
There were three of these and the offset went 1, 2, then 3. Any ideas?
-Zach
zdunham
Posts: 17
Joined: Wed Oct 07, 2009 11:57 am

Post by zdunham »

This is going to sound really dumb, maybe, but can these webcams record and save video without a capture card? They are locally attached via USB.
-Zach
Locked