ic0n_: I rolled back to the Oct 2016 build I have... It's the nph-zms servers streaming to the browser which are consumer way more cpu...
In Oct build, they use ~1.3% of cpu
in the one I built yesterday, they were using more than 4%
jbehrends joined the channel
leemar has quit
leemar joined the channel
mastertheknife
Bhaal: interesting. are you using mpeg streaming?
jbehrend_ joined the channel
Bhaal
mastertheknife: No, just regular mjpeg
waiting and waiting and waiting for rexd666 to get the h264 -> browser direct working... And stopping ZM from decoding to jpeg when doing record only...
Doo joined the channel
Schrottie joined the channel
mastertheknife: What kind of cpu temp increase have you noticed with ZM running on a Pi?
xnxs
from shit to hot shit?
Bhaal frowns at xnxs
haha
Bhaal
temp=67.5'C <--- Temp with IR board off during the day ... Last time I checked at night it was sitting at 83.3'C ...
At 85 it starts slowing down the CPU or may shut it down completely, I cannot remember...
anyway .. bbl
meeting to go to
barjac has quit
barjac joined the channel
imox joined the channel
The_Sage joined the channel
The_Sage
Ichanged the data type for the AutoTimeOut field in the Monitors Table from DEC(5,2) TO DEC(6,2) , THEN all my recorded events disappeared. Is this related, or did something else happen
Also, no events are recorded any more for this zone
Schrottie has quit
I think I found the issue, it was a faulty delete event filter Thanks for listening.
Schrottie joined the channel
The_Sage has left the channel
markus_e92 has quit
markus_e92 joined the channel
Ryushin joined the channel
e-anima joined the channel
seg has quit
seg joined the channel
mastertheknife
Bhaal: I haven't installed ZM on a Pi. I am optimizing some of the motion detection code for ARM's Neon instruction set
Bhaal: So far its been fun, managed to get 2.5x - 3.0x speedups yesterday, it seems the ARM loves parallelism and prefetching
knnniggett joined the channel
Bhaal
mastertheknife: Ahhhh
Well seems I will have to give it a test
Bodkin joined the channel
ic0n_
bhaal I can't image what might have change to increase cpu load of zms.
ic0n_: Is that a quick one line change to un-jpeg-turbo?
ic0n_
it comes down to build time detection...
Bhaal
Ok, well in that case, nothing has changed on the server
ic0n_
Hmm... I wonder if it is doing scaling now... unnnessessarily.
You may notice that there are now option to use a fixed width/height on montage... maybe I screwed something up in the zms url...
Bhaal
All mine are scaled to 37%
I don't use the normal montage ...
ic0n_
you might compare the url to zms in now verse oct 22
Bhaal
Hrm... ok
ic0n_: Version I compiled last night: /zm/cgi-bin/nph-zms?0=mode%3Djpeg&1=scale%3D37&2=maxfps%3D5&monitor=9
And Oct 22 compile: /zm/cgi-bin/nph-zms?mode=jpeg&scale=37&maxfps=5&monitor=9
ic0n_
uh yeah... you said you are using your own customised montage? I changed how parameters are passed when generating the img url... so I think that is screwing up your zms
Bhaal
I will pastebin the code
It's just a cut down version of the normal montage I have removed all the cruft
yeah so getStreamHTML now takes an array of options. So you are probably passing "scale=$scale" or "scale=37" but now you want to pass array('scale'=>37)
ok.. so getStreamSrc, I changed it to take a hash, not an array of string containing =
so $streamSrc = $monitor->getStreamSrc( array( "mode=jpeg", "scale=".$monitor->MontageScale, "maxfps=".ZM_WEB_VIDEO_MAXFPS ) );
ic0n_: If I am happy with having ZM on the Pi's then I might be more likely to do motion detection ... Then the thing I'd like to see in the console is "Motion Events"
syrex: you have to reload the tmpfiles.d service. See the systemd docs. Describing your environment and how you are attempting to install zoneminder would be very helpful here.
ic0n_
knnniggett: You can use this url. It will insert a user into your zm
ic0n_: By design of the latest commit, the CSRF check will not run when processing logins
syrex
I’m on ArchLinux and building from current master. It works now, but seems to require manual intervention on the one or other occasion. Will check out how to reload the temporary files.
ic0n_
ok, looks like a merge problem as my tree is different than master.
knnniggett
syrex: that's because you haven't reloaded the tmpfiles.d service. Most packaging scripts take care of that for you, but if you are building from-source then you've got to do it manually (or just reboot).
ic0n_
knnniggett: okay, I'm good with the csrf. DO you wore people to test it or shall I just merge?
Bhaal
What do I need to test?
knnniggett
ic0n_: let me post another message in that pr to see if we can get a response/blessing from asker or mmn (?)
syrex
Reboot does not help and there is no zoneminder*.* in /usr/lib/tmpfiles.d/. Do I have to put it in there manually or have I missed something in the cmake configuratino?
ic0n_
bhaal: update, turn on csrf protection in options. then go to the url I posted above and see if you have a new user named attacker1
Bhaal
What is csrf?
syrex
CMakeLists.txt says: “Do not install the misc files by default” and there are no installation instructions for system files. Are there intended to be placed manually if building from source?
ic0n_
so if you have a tab open logged in to zm... and in another tab you browse to a malicious site... the malicious site can post to zm as your authenticated user
Bhaal
Really??? Why have I not heard of this...
knnniggett
syrex: Yes, you have to manually put all the config and init files into their proper place when you build from-source
syrex
Alright, that’s what I needed to know. Thanks, knnniggett.
Bhaal
ic0n_: What browsers?
ic0n_
all of them
Bhaal
:(
knnniggett
syrex: So every distro is different when it comes to where to put all the config & init files. Systemd helped standardize a lot of that, but there are still differences. If if it not obvious where something should go, then the best place to look would be in an Archlinux forum. They tend to have really good (better than most) zoneminder related information.
Bhaal
ic0n_: I didn't turn on the CSRF thing, I went to that URL which then redirected and went to a login thing.. But no new users on my server...