Page 1 of 1

Several performance-related questions

Posted: Fri Mar 17, 2006 4:07 pm
by GabiAPF
Hello again. Does any of you know of a way to view snapshots rather than streaming from an external web page (as in other than the ZoneMinder console) without having to make a self-refreshing page which blinks whenever it's refreshed?

Or any way to reduce the CPU usage without having to wait longer than 1 second between frames? Or, if this long delay isn't the normal behaviour when viewing snapshots, does anyone know what the problem may be?

And is there a way to use streaming on a web page without killing the CPU when the page has 20+ hits?

Thanks in advance.

Posted: Fri Mar 17, 2006 5:36 pm
by jameswilson
the issue i think is that you need to create a jpeg file via zms every time the image is refreshed which is obviously heavy on resources. There has been some effort (including mine but i broke my server trying) to get mmx optimisations into zm. Unfortunatly 20 requests will need a fair amount of hardware. I put a little thought into this a while ago now and the best i could come up with was a small sql query that calcualted the last saved image name and location and then request that image. As this uses apache rather than zms, and it doesnt need to create a new jpeg every time this would be lighter but i have never tried this. One thing i did try and am currently writing is a windows streaming app through zm4ms that will stream the images it has on request. As windows has good support for mmx and sse2 etc this is much more efficient. Not sure if it could handle 20 succesive requests though but when it approaches completeion i will stress test it.