Webpage Montage

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Webpage Montage

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Useful to know thanks but your right wont help me here lol
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
cottonfoo
Posts: 1
Joined: Wed Dec 19, 2007 10:54 pm

Post by cottonfoo »

Could you wget or zmu the images every N seconds through cron and reference them with some static HTML page?

Steve.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you draw me a simple picture of what you want it to look like?
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

maybe we should limit to 4 and have the buttons accross the top mean
1-4, 5-8, 9-12 etc etc
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Would it be best to have the buttons seperate then?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Post Reply