Page 1 of 2

Webpage Montage

Posted: Tue Dec 18, 2007 12:20 am
by jameswilson
web page with static views

Hi all

Im looking to create a basic webpage like the montage view but with jpeg stills updated say every 10 secs.

Dont suppose one of you nice people can point me in the right direction, its for 32 monitors

James

Posted: Tue Dec 18, 2007 5:17 am
by Lee Sharp
Not what you are looking for but... One way to effectively do this is to enable authentication. Then limit the bandwidth of that user to something very low that works out to about 3 frames per second. That way 10 seconds will give you about 1 pass.

Posted: Tue Dec 18, 2007 10:41 am
by jameswilson
Useful to know thanks but your right wont help me here lol

Posted: Wed Dec 19, 2007 10:57 pm
by cottonfoo
Could you wget or zmu the images every N seconds through cron and reference them with some static HTML page?

Steve.

Posted: Thu Dec 20, 2007 12:35 am
by jameswilson
getting the jpgs isnt a problem i can get them from zms as jpegs. The issue is to have all those images refreshing every n seconds and actually laying them out

Posted: Thu Dec 20, 2007 5:45 pm
by zoneminder
Hi James,

You can either have them as a constant stream from zms but with the actual content only changing periodically or you will need to use Javascript and do a bit of double buffering which is the way that Montage works in stills mode. In other words you show an image, and then you fetch the next frame to a hidden image element and then swap them and repeat. That way you don't see the image loading. I can do a demo sort of thing if you would like me to.

Layout-wise, you have two main choices. Either use an html table of which ZM is littered or (my preference nowadays) use css to lay them out either absolutely (ie using window coordinates) or just let them flow. It depends what you want it to look like really.

Posted: Thu Dec 20, 2007 6:15 pm
by jameswilson
zoneminder wrote:Hi James,

You can either have them as a constant stream from zms but with the actual content only changing periodically or you will need to use Javascript and do a bit of double buffering which is the way that Montage works in stills mode. In other words you show an image, and then you fetch the next frame to a hidden image element and then swap them and repeat. That way you don't see the image loading. I can do a demo sort of thing if you would like me to.

Layout-wise, you have two main choices. Either use an html table of which ZM is littered or (my preference nowadays) use css to lay them out either absolutely (ie using window coordinates) or just let them flow. It depends what you want it to look like really.
Thanks Phil
Ideally id like something like the stripped montage view with say 5 columns updated every 5 seconds. If you could knock something up as a started project i can post my final results on the wiki if needed. Maybe we could do a 4 way one based on mpeg aswell?

Posted: Thu Dec 20, 2007 6:21 pm
by zoneminder
Can you draw me a simple picture of what you want it to look like?

Posted: Thu Dec 20, 2007 6:23 pm
by jameswilson
lol now your talking....

I was thinking of having a graphic with the splits inside, like zm4ms but on the page. I will knock up a basic graphic when i leave the office and add some dummy images.

James

Posted: Fri Dec 21, 2007 12:25 am
by jameswilson
Now i know this cant be done directly but if i were to grab a high quality say 1024 x 768 jpg of the the zm4ms main viewer background could we fill in the middle with images?

Image

Posted: Fri Dec 21, 2007 12:28 am
by jameswilson
maybe we should limit to 4 and have the buttons accross the top mean
1-4, 5-8, 9-12 etc etc

Posted: Fri Dec 21, 2007 11:00 am
by zoneminder
You can use a jpeg as a page background and overlay streams on top of that so the answer to your question would be yes. It might be a bit strange if the buttons are also part of the background but it would do as a start.

Posted: Fri Dec 21, 2007 1:28 pm
by jameswilson
Would it be best to have the buttons seperate then?

Posted: Fri Dec 21, 2007 3:46 pm
by zoneminder
Possibly but they could just be chopped out of the image and overlaid. There is nothign technically to stop you have them on the background but most people expect some kind of dynamic response from a button and you wouldn't get that if you just use one static image.

Posted: Fri Dec 21, 2007 5:13 pm
by jameswilson
the 'response' can be in version 2 lol
Ill create a proper jpeg as the back drop then with no button accross the top.
I will then add a tool strip on the right with the selectors on, can we do a 4 way and 9 way one? i think 9 is enough