Zoneminder with Firefox in localhost = CPU overload
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
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
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
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
Regards,
Cordel
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
James
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
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
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
James
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
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
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK