Zoneminder with Firefox in localhost = CPU overload

Support and queries relating to all previous versions of ZoneMinder
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

In my oppinion this would not solve the issue.


also imagine 16 cams at 5 fps each... it will increase disk writting and reads....


i really think the right solution would be something different.

Thanks

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

Post by jameswilson »

but why 5 fps on live view 1 fps would do per image and if linux cache the disk like i think it does it wouldnt increase disk read write as it would still be in cache?

But was just an idea


I have tried doing it with 1 cam and it does not increase load at all (machine stays at about 11% proc usage. I have done this manually by cycling through the jpeg list with the arrow key in the events folder.

Also Victor not all commercial dvr's are caperble of 16way live split maybe we could limit it to 9 way and switch the 9 way view ie 1-9 first page, 10-18 second page etc etc

James
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

Hmmm.

I dont think this will sounds good to possible customers...

cordel, what do you think ? i really likes the idea of make something capable 16 cameras and WITHOUT the need of a browser, possibly using shared memory to get images (that should be fast).

i really think writing to the disk and reading refreshing it is a bad idea... you can do exactly same thing in memory very faster.

Thanks Again

Victor Diago
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Like I said I don't think it was designed to use share memory but could be a base framework to develop on. I personaly am not excited about how it's laid out, for viewing stored images is okay, but would need some work on the lay out for live images. I'm learning how to put the GUI together and as soon as I have it fully laid out, I will post it where others can have a look. I don't think I'll be able to lay the code for it though as that is beyond me for now.
Regards,
Cordel
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

Hi again.

Thats why ive asked phil to teach us how zoneminder works in this way.

Let me understand, you have made a front end to ZoneMinder ?

Thanks

Victor Diago
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

Any other have a clue ?

Thanks

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

Post by jameswilson »

victor, i know you dont think much of my idea, but run with me for a moment. If we forget about disk io is it possible/easy to refresh a jpeg from disk. I was thinking of using a ramdisk if disk io is an issue but it cant be that hard to make a quad split or 9 way using saved jpegs from disk or ram. Do you know of a linux app that can be scripted and only shows jpegs?

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

Post by jameswilson »

forget my idea. lol

another thought when streaming is the default 5 fps per image if this was lowered to say 2 this would half your montage load?

James
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

hi james.

i have tried your idea and things went bad... i have not much CPU utilization, but the sync between the images was broken in a little time.


Yes, lowering Fps would make things lightweight, but i ask you, wen you need to cross a highway, do you cross it at 10km/h only to ensure your motor will not be hurt or do you accelerate to 100km/h because you know that if others cars do that then you should make your one do that too ?

What i mean is that we are dealing open source here. And one of the most strong advantage of using it is the possibility to change the code to fit our needs. Would you buy a car that only do 10km/h ?

Surely there is a way to do that, and once it gets ready all the work will be rewarded, because its an important feature to zoneminder and surely it increases it market value.

Thanks

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

Post by jameswilson »

I agree but we need a way to get the images captured straight out of ram which i assume is this shared memory thing. None of us that i know of here are caperble of this job. I would love to have a native client that worked on a light x (fluxbox or lighter) and would look totally customised. Unfortunatly we need somebosy with serious knowledge for this. I havnt a clue even when to start but ill design a splash screen for it lol

James
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

as i have said i know some c/c++ code, learned php and others.

If phil put me on the way, i can write this.

After the backend in c/c++, the rest of the GUI could be written in Gambas or even Kdevelop;

Again i ask, please phil, how do zoneminder deals imagens since the capture ? where do it save them and how they make them jpegs ?

Thanks

Victor Diago
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you look into the zms source, the code should be there to retrive the images from shared memory ;)
Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Locked