Page 1 of 1
montage performance issue
Posted: Tue Jun 15, 2004 8:50 am
by djsb
When i try to display all the cameras in the montage view.
The total of 16 b/w cameras at 320x240 have a framerate very low. Some of the cameras show a frame in 20 or more seconds.
My viewing pc has plenty of resources and the cpu is about 80% idle when viewing the montage.
The zoneminder server has 50% of idle cpu time when i view the montage.
The card i'm using is a 8 chip and i'm using 16 inputs.
When using the software that came with the card (for windows and for demo purposes only) it can show the 16 inputs with a good framerate (about 10frames/s).
Is this a zm issue?
Posted: Tue Jun 15, 2004 10:12 pm
by zoneminder
Are you trying to view the cameras in stills, mpjpeg or mpeg mode? The montage view isn't very intelligent in that it doesn't try and balance the bandwidth between each camera (at present). Perhaps trying swithing to a lower bandwidth mode and seeing if that makes a difference for an experiment.
This will probably change in the next version btw.
Phil
Posted: Wed Jun 16, 2004 12:33 pm
by djsb
I am using jpg image stream.
Yes changing it to medium bandwidth improves the view but for a local network viewing is it important to see it with a better framerate and a medium bandwidth is very slow.
BTW, don't you think for montage it should only open one cambozola showing all cameras? Maybe a cambozola hack could do the trick.
BTW(2), don't you think when viewing only one camera by clicking where it says (16 monitors) should not refresh the site and have to open cambozola again? I guess it should use the same cambozola and the cgi that send the image changes itself the monitor.. This will prevent the delay in opening a new cambozola.
Posted: Wed Jun 16, 2004 1:20 pm
by zoneminder
Using one stream for the whole montage view would be ideal to some extent, except you'd get one huge image. The main difficulty in that would be that if you have 3 cameras capturing at different frame rates, eg. 3 fps, 5fps and 16fps then it becomes a bit trickier in terms of knowing when to schedule image updates, plus several of the images would be resent each time the fastest camera changed it's image even though their images hadn't.
So I don't think having one huge montage window will reduce bandwidth very much, and all the images would have to be overlaid on the large image all the time. As I said before, one thing that does need to change is the way that bandwidth is managed. Also I am developing a new java GUI which will handle streaming natively, this will allow for more options in things like montage streaming. It's a little way away yet though.
A couple more question though and maybe things to try. Are you using the compact montage, I assume you are. If so have you tried setting the montage width and height to smaller values (maybe half the real height) to reduce load and bandwidth?
Finally, I didn't understand your 'BTW(2)' comment, can you explain?
Phil,
Posted: Wed Jun 16, 2004 1:45 pm
by djsb
With smaller image for compact montage it has the same problem.
My second BTW is explained in the link in the next line:
What happens is:
- i got 16 cameras
- in montage it shows may repeated cameras instead of differente cameras.
- this is random, if i refresh the window it could get all right or not..
- If i get the camera properties i see that the streaming link is also wrong so it would not be a java or cambozola problem.
Link:
http://www.domingos-bruges.com/files/montage.JPG
Posted: Wed Jun 16, 2004 1:54 pm
by zoneminder
If you do a 'top' on your server what kind of load average is it using in total and for the zms processes. Also are your cameras in 'Modect', or another mode?
Regarding the link, are you saying that where in the montage window you have images duplicated that the link for the image is also duplicate? I've seen duplicated image in montages before but the page to the image was always correct and just F5 would fix it. Not that I've ever tried it with 16 cameras!
Phil,
Posted: Wed Jun 16, 2004 2:08 pm
by djsb
zoneminder wrote:If you do a 'top' on your server what kind of load average is it using in total and for the zms processes. Also are your cameras in 'Modect', or another mode?
Regarding the link, are you saying that where in the montage window you have images duplicated that the link for the image is also duplicate? I've seen duplicated image in montages before but the page to the image was always correct and just F5 would fix it. Not that I've ever tried it with 16 cameras!
Phil,
A top is my other post in this forum that is named "system load" that talks about strange times when the system load raises a lot. I have made experiencies and i guess it raises when i open the zoneminder main page. Those day, month statistics are heavy for 16cameras with 80.000 events each (about a month) of recording in modet.
About the montage view, the page has wrong links that repeat some monitors. But then again, this appears in a random way and not very often.
Posted: Wed Jun 16, 2004 6:36 pm
by fernando
motage varies on the OS and java version and browser.. some times it start well 12 cameras 3fps each. i tried on all os linux mac ¨mac explorer suck¨ win98/95/2000/xp all act diferent.
other repeat
other see the the half of the java.
very complicated.
phil i think the fast solution is to create montage nonframed one page for all. in compact. if you want to see the activity go to framed windows.