Problem with ZM and Logitech Quickcam 9000 Pro& Advice?

Forum for questions and support relating to the 1.24.x releases only.
Locked
force
Posts: 8
Joined: Wed Jan 26, 2011 12:03 pm

Problem with ZM and Logitech Quickcam 9000 Pro& Advice?

Post by force »

Hello Folks,

i run a Ubuntu 10.10 System and ZoneMinder 1.24.2.

I installed Ubuntu on a old PC (P4 with ~2Ghz i think^^), and installed ZoneMinder via the Synaptic Pakets.


I already can accsess ZM via network, but the Logitech wont show up any pictures. The Cam works with Cheese and the suggestied programm from the wiki (xierTV or something like this?)

I did everything they said in http://www.zoneminder.com/wiki/index.ph ... m_Pro_9000

BUT

it wont work.

something strange, when i run
zmu -d /dev/video0 --verbose -V1 --query
i get this:

Code: Select all

Video Device: /dev/video0
Video Capabilities
  Name: UVC Camera (046d:0990)
  Type: 1
    Can capture
  Video Channels: 1
  Audio Channels: 0
  Maximum Width: 960
  Maximum Height: 720
  Minimum Width: 48
  Minimum Height: 32
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 320
  Height: 240
Picture Attributes
  Palette: 0 - Unknown
  Colour Depth: 0
  Brightness: 32896
  Hue: 0
  Colour :8224
  Contrast: 8224
  Whiteness: 0
Channel 0 Attributes
  Name: Camera 1
  Channel: 0
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL

(I noticed that the picture attributes are kinda messed up?)


Current settings are

General:
Source Type: Local
Function: Monitor
Enabeld: (marked)

Source:
device path: /dev/video0
capure method: video for linux vers. 2
device channel: 0
device format: pal
capture palette: yuyv
capt. width: 960
capture height: 720




last bot not least: I want to monitor a small office. 24/7 because some drunk ppl tried to break in about 2 days ago. (its a funeral-director's office - dont know what they expected in here)

i want to set up another (IP-)Camera, had in Mind to set up a SHARP IP-E-134-100b

Is that easier because i only have to access the camera-ip or even harder to set up that damn logitec webcam? :/

im not a pro at linux, but i know some basics and i am willing to learn. but im a bit afraid they will try to break in again this weekend :x

thanks for your help in advance
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

Can you enable debugging and post what your logs show?
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
force
Posts: 8
Joined: Wed Jan 26, 2011 12:03 pm

Post by force »

that was dumb, im sorry
01/27/11 09:08:33.715126 zmc_dvideo0[8308].INF-zm_debug.c/292 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.08308]
01/27/11 09:08:33.724501 zmc_dvideo0[8308].ERR-zm_monitor.cpp/378 [Can't shmget, probably not enough shared memory space free: Invalid argument]
01/27/11 09:11:55.265404 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:12:05.266789 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:12:15.267946 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:12:25.269211 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:12:35.270497 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:12:45.271723 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:12:55.272967 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:13:05.274244 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:13:15.275488 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
01/27/11 09:13:25.276941 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
im not a genius, but i think there is something wrong with the shared momory :D


cat /proc/sys/kernel/shmall

Code: Select all

2097152
and

cat /proc/sys/kernel/shmmax

Code: Select all

33554432
i did

Code: Select all

echo 33554432 >/proc/sys/kernel/shmall
echo 33554432 >/proc/sys/kernel/shmmax 
but nothing happend after restarting zm

google brought me to another thread and a quadrozillion other hits, told me to
chmod 666 /dev/mem
chmod: Beim Setzen der Zugriffsrechte für „/dev/mem“: Die Operation ist nicht erlaubt
(operation not allowed)


:/

*edit*
01/27/11 09:54:10.031395 zmdc[9623].INF [Starting pending process, zmc -d /dev/video0]
01/27/11 09:54:10.033393 zmdc[9623].INF ['zmc -d /dev/video0' starting at 11/01/27 09:54:10, pid = 9669]
01/27/11 09:54:10.078413 zmdc[9623].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
01/27/11 09:54:30.012439 zmdc[9623].INF [Starting pending process, zmc -d /dev/video0]
01/27/11 09:54:30.014593 zmdc[9623].INF ['zmc -d /dev/video0' starting at 11/01/27 09:54:30, pid = 9674]
01/27/11 09:54:30.066982 zmdc[9623].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

What kind of specs does your system have? Also, I'm not sure, but I think your system has to be restarted for the kernel memory parameters to take effect, or you need to run sysctl/sysconfig (something like that). Also make sure /dev/videox has full permissions.

FWIW, try starting 'small' with ZM... ie: just monitor mode, cut your buffer sizes down very low, and make sure you also use the correct parameters for your camera. For example, my cams will only work at 640x480. If I specify anything else, I will get errors. The shared memory errors can mean any number of things, and it's best to rule out whatever you can before chasing it down.
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
force
Posts: 8
Joined: Wed Jan 26, 2011 12:03 pm

Post by force »

Also make sure /dev/videox has full permissions.
well, how to? :/
force
Posts: 8
Joined: Wed Jan 26, 2011 12:03 pm

Post by force »

Well, due to the fact that there is no reason to that error ill change to another programm. bb all
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

01/27/11 09:08:33.724501 zmc_dvideo0[8308].ERR-zm_monitor.cpp/378 [Can't shmget, probably not enough shared memory space free: Invalid argument]
Can't shmget is almost always not enough shared memory set, the explanation and fix is here: http://www.zoneminder.com/wiki/index.ph ... solutions.
01/27/11 09:12:35.270497 zmwatch[8315].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
The "can't get shared memory id xxxxxxxxx" usually only means there's nothing there to get. Fix your shared memory settings and you'll be back on the right track

"edit": if your current values are 134217728 then increase 150% to 201326592, if you still get the can't shmget error increase to 200%
mythedoff
Posts: 25
Joined: Sat Dec 04, 2010 5:21 pm

Post by mythedoff »

I use the same webcam
using:
$ cat /proc/sys/kernel/shmall
134217728
$ cat /proc/sys/kernel/shmmax
805011456
Locked