Page 4 of 4

zmviewer

Posted: Tue Oct 20, 2009 9:57 pm
by _jOSe_
In my case I use zmviewer-winqt-0.1.6 and works well on windows, but when I run zmviewer-0.2-preview or zmviewer-winqt-0.2 is extremely slow, I tested on Windows 2000, XP and Fedora Core 11 and get the same result, what is going on?
my server is zoneminder 1.23.3 zm in FC10, dual core 1.8 ghz, 2GB RAM, 1TB HD.
Help me pliss!

phantom session problem

Posted: Thu Dec 03, 2009 1:23 am
by kriznol
Hi,

ZMViewer 0.2 under the ZMLarch distro. Looking at my session list, I see:

Session 1 - All fields are blank except for Port which is "-1" and State which is "connected".

Session 2 - localhost/zm/root/QMYSQL/3306/Connected

Session 2 is working fine. Session 1 generatres a "Can not connect with Database at host " error message every time I start ZMViewer. I've deleted it, but the session just reappears when I start ZMViewer up. How can I get rid of this session for good?

Posted: Tue Jun 22, 2010 10:13 pm
by gsupp
Leandro,

First, thank you very much for all your work on Zonemninder Viewer. It's a stable and professional looking program that suits my needs much better than the previous program I was using (zm4ms). I have a ZM system with 20 cameras watching a corporate building. They like to have a large LCD TV with the montage view displaying a feed from all cameras. Zoneminder Viewer displays a superior frame rate and has never crashed on me compared to the previous program. That being said, I've noticed a few changes that could potentially help my deployment greatly.

I noticed that by turning on bilinear filtering for a camera, the perceived quality of the image is much better. The system that has Zoneminder Viewer installed on has plenty of CPU resources. I would like an option to enable bilinear filtering for all cameras by default, or have this option remembered between closing / opening the program.

I would like to be able to turn off the display of the text "New Events Detected", similar to the option to display camera numbers or not. For my use of ZoneMinder Viewer, the less extra information displayed on the screen the better. I've already found the Fullscreen option and unchecked both toolbars, which helped a lot.

After a certain amount of time (usually 15 to 30 minutes or so), at least one of the camera streams will stop, with the error "Stopped by server. Press play to try again" Could you add a feature to automatically try to re-play stopped cameras? Right now I have a script that automatically presses F5 every 20 minutes, which helps but it's just a work around.

I would like to be able to specify the order that the cameras are displayed in. They appear to be ordered in the order MySQL provides them. Adding an "ORDER BY Name" clause to the SQL statement that gets all the camera information would help me greatly. This would allow me to add a number in front of the name to specify the order the cameras are displayed in.

I realize this is a lot to ask and it appears that development of the project hasn't continued. However I desperately need at least some of these features implemented for my deployment. I'm running on a Win32 platform and have tried unsuccessfully to compile the source code. I'm not familiar with Qt, but thought I may be able to hack my way through some of the simpler features I need. Here are the steps I'm taking to try and compile zmviewer:

1. Download and extract zmviewer source from http://zmviewer.svn.sourceforge.net/vie ... z?view=tar
2. Install "Qt SDK for Windows", install cmake 2.8.1, install MinGW
3. Run "Qt Command Prompt" and execute the following:
cd \trunk\zmviewer
mkdir build && cd build
cmake -G "MinGW Makefiles" ..
mingw32-make

I'm left with a zmviewer.exe file that errors out when executed--"The procedure entry point _Z13qFlagLocationPKc could not be located in the dynamic link library QtCore4.dll". I tried copying Qt*.dll from C:\Qt\2010.03\bin\ on the build machine, but end up with a similar error message--"The procedure entry point _Z21qRegisterResourceDataiPKhS0_S0_ could not be located in the dynamic link library QtCore4.dll". Does anyone know what I'm doing wrong or what steps to take to compile zmviewer on Win32?

ZMViewer consumes memory

Posted: Wed Jun 30, 2010 1:35 pm
by kp4djt
Folks,
I have been doing some testing with ZMViewer, nice app. On my ZMLarch machine it
runs just fine, sucks up some resources, but works, I do not see any funnies.

I got it running remotely on other machines. All of them are Ubuntu 10.04. When I run it
on one of those machines all looks good but pretty soon the machine starts slowing down
if it sets there for a few minutes the GUI will finally die and restart. (X only) I started looking
at what was going on and notice that as soon as ZMViewer starts on one of these machines
memory starts going away.
Here are some top screens, the first one is prior to starting ZMViewer
Image

Here is top just after starting ZMViewer, note memory usage, it would go up due to additional
usage
Image

Now a few seconds later, it is still going up.
Image

This is the last screen shot, at this point it will start using swap big time and the system
gets very slow
Image

I was going to try to capture one with heavy swap usage but it gets so slow that X dies
and restarts.

Anyone have any idea as to why ZMViewer is doing this?

I watch it on the server machine and it does not do this, I think it my use up a few megs
of memory but nothing out of the ordinary.

Posted: Wed Jun 30, 2010 1:36 pm
by kp4djt
I tried to load ZMViewer on my SuSE 11.2 machine but it complains that it needs qt-mysql.
I try to find that package, and the only thing I find is a old package that will not work.

Any idea on that one?

Re: ZoneMinder linux/windows/mac/*nix client Qt Viewer

Posted: Wed Jun 15, 2011 8:41 pm
by elusive
Hello,

I have the same problem on an Ubuntu Server 11.04 64 bits : using all the RAM until it uses all SWAP (high HDD activity) and then nothing responding.

It's really sad to see a so nice work no more developped :-(

Any idea ?

Re: ZoneMinder linux/windows/mac/*nix client Qt Viewer

Posted: Wed Jun 15, 2011 8:51 pm
by kp4djt
Yes it must be sort of abandoned, I have not been able to find out anything either. It works nice and gives a nice monitor front end for ZM for those folks who like to see a bunch of little boxes with camera video in them, but same thing, it sets there and Hoovers up memory, then swap and dies.

Re: ZoneMinder linux/windows/mac/*nix client Qt Viewer

Posted: Wed Jun 15, 2011 9:22 pm
by gsupp
elusive wrote:Hello,

I have the same problem on an Ubuntu Server 11.04 64 bits : using all the RAM until it uses all SWAP (high HDD activity) and then nothing responding.

It's really sad to see a so nice work no more developped :-(

Any idea ?
Sorry no ideas, but I ended up switching to a modified version of stalkercam: http://www.zoneminder.com/forums/viewto ... f=9&t=5579 I have a script that launches an instance of stalkercam for each camera and passes the X and Y coordinates of where I want the window to be displayed. I found a border-less theme for Ubuntu that keeps lines between windows to 1px.

Example script:

Code: Select all

#!/bin/sh

/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=24&scale=77" -x 0 -y 555 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=17&scale=77" -x 272 -y 555 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=22&scale=77" -x 544 -y 555 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=26&scale=77" -x 816 -y 555 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=19&scale=77" -x 1088 -y 555 &

sleep 1

/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=1&scale=77" -x 0 -y 370 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=11&scale=77" -x 272 -y 370 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=2&scale=77" -x 544 -y 370 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=3&scale=77" -x 816 -y 370 &
/usr/local/bin/stalkercam -X "http://192.168.1.9/cgi-bin/nph-zms?mode=single&monitor=23&scale=77" -x 1088 -y 370 &
EDIT: it looks like the original download location at http://dig.hopto.org/stalkercam/ is down, I've uploaded it to for the time being to http://www.inthrive.com/stalkercam_mod_by_maciekc.tgz (not sure how long I can keep that up). I tried to attach it to this post but got "The file is too big, maximum allowed size is 256 KiB."

Re: ZoneMinder linux/windows/mac/*nix client Qt Viewer

Posted: Thu Jun 16, 2011 12:06 am
by kp4djt
I think this did not like my 64bit machine...

Re: ZoneMinder linux/windows/mac/*nix client Qt Viewer

Posted: Mon Jun 20, 2011 6:14 pm
by elusive
Hello,

I compiled a lot of different revisions in order to find which one caused the bugs we described earlier (RAM full after one minute), unfortunatly I can't display my cameras picture with revisions earlier than 186 (I suspect the new ui is causing that bug) ...

I think here we have a base for a great ZoneMinder GUI working on all major platforms (Windows, Linux, MacOS), unfortunatly I don't have the necessary programming knowleges but maybe someone would like to give it a try ?

Let's wait and see ;-)