#zoneminder

/

      • compdoc has quit
      • Bhaal
        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.
      • Bhaal
        I can try it again
      • just to confirm
      • Just as an example:
      • 18991 www-data 20 0 577352 191348 184164 S 1.7 4.9 0:57.98 nph-zms
      • 18989 www-data 20 0 577352 193340 184116 S 1.3 4.9 0:43.28 nph-zms
      • 18990 www-data 20 0 577352 193360 184132 S 1.3 4.9 0:44.92 nph-zms
      • 18995 www-data 20 0 577352 193356 184120 R 1.3 4.9 0:43.47 nph-zms
      • ic0n_
        maybe if one build was using jpeg-turbo and the other wasn't....
      • Bodkin_ has quit
      • Bhaal
        Woooo thunder
      • Bodkin has quit
      • ic0n_: Ok, so load is *slightly* higher before I start montage
      • but not significant and to soon after start up
      • Bodkin joined the channel
      • ic0n_: Confirmed
      • 21531 www-data 20 0 572912 198504 195416 S 4.7 5.0 0:00.96 nph-zms
      • 21538 www-data 20 0 572912 192068 186988 R 4.7 4.9 0:01.08 nph-zms
      • 21527 www-data 20 0 572912 200444 195292 S 4.3 5.1 0:01.00 nph-zms
      • 21532 www-data 20 0 572912 198820 195712 S 4.3 5.0 0:01.04 nph-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
      • (no offence)
      • ic0n_
        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 ) );
      • becomes $streamSrc = $monitor->getStreamSRc( array( 'mode'=>'jpeg','scale'=>$monitor->MontageScale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS ));
      • Bhaal
        Ok, will give thta a shot
      • ic0n_: Yep, that's fixed the load issue, yay!
      • mastertheknife
        interesting
      • Bhaal
        ic0n_: I think a setting for each monitor to set a scale would be good... I do it manually when I create my monitors...
      • compdoc joined the channel
      • ic0n_
        there is one...
      • not used much though.
      • there is a lot of work to do with scaling. I'm going to implement it on zone editing first.
      • syrex
        Guys, how to fix this "Socket does not exist" error?
      • I might have set wrong paths somewhere, but I don’t know where to start.
      • ic0n_
        google, we are so tired of answering that question.
      • syrex
        All dependencies on the system are there since I’ve had the whole thing already running once.
      • I tried but alright. Try some more.
      • wasutton3 joined the channel
      • wasutton3
        does the zm api work with php 5.6? or is it 5.4 only?
      • knnniggett
        yes
      • wasutton3
        to which question?
      • knnniggett
        API requires php >= 5.4
      • wasutton3
        ok
      • Bhaal
        ic0n_: I couldn't find a scale for the montage which was able to be set individually per camera...
      • ic0n_
        no it doesn't use it, but there is a scale setting on each monitor
      • Bhaal
        ic0n_: It was useful when I had 640x480 mjpeg cameras in the mix...
      • ic0n_: yeah a "Default Scale" but it doesn't allow me to be specific...
      • ic0n_
        I await your PR
      • Bhaal
        Hahaha
      • I have to start from scratch with git I think before I go ahead with more PRs
      • wasutton3
        hmmm ok, so i have php 5.6 and php7 installed, and OPT_USE_API is enabled, but I can't seem to access it at all
      • Bhaal
        So the UK is definitely brexiting... wow :(
      • knnniggett
        So will that mean Ireland will then Brexit from the UK?
      • ic0n_
        Bhaal my next cruft in montage will be the ability to show the zones on it.
      • syrex
        Got it. Permission problem.
      • Do one need to take care of the systemd files somehow specially?
      • Bhaal
        ic0n_: I'd find that more useful as a switch on a per monitor basis, not so much in the montage, but maybe useful
      • ic0n_
        knnniggett: csrf doesn't seem to block my csrf test
      • might be an issue with how I've merged it..
      • knnniggett
        ic0n_: are you saying it doesn't block it when it should?
      • syrex
        On the one hand you have https://github.com/ZoneMinder/ZoneMinder/blob/m..., but my temporary file in /var/run/zm isn’t created.
      • Bhaal
        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"
      • ic0n_
        yup
      • syrex
        Mar 29 16:05:10 titan zmpkg[12955]: FAT [Can't create missing temporary directory '/var/run/zm': Permission denied]
      • knnniggett
        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
      • knnniggett
        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...
      • ic0n_
        hmm.... you say you didn't turn it on?
      • Bhaal
        correct
      • syrex
        Got it. Seems good.
      • nirv199 joined the channel