dlandon Posted September 17, 2019 Share Posted September 17, 2019 (edited) I've built a docker that installs Zoneminder 1.35 from the master repository. The repository contains snap shot builds while 1.35 is in development. Don't install this docker in a production environment. It is for testing. I will only offer support for the docker properly installing the hook files. I've been working with the Zoneminder event server developer to properly install the event server and the machine learning modules (hook processing). This docker installs all the files needed for hook processing. All you need to do is to configure Zoneminder and hook processing using the ini files. You can install this docker using the existing Zoneminder docker template. Change the repository to dlandon/zoneminder.master. Remove the 1.34 Zoneminder docker and then install the master docker. Remove the appdata/Zoneminder/hook folder and let the docker set up the files for you. What I am really interested in is someone to install this version and verify that the event server and hook processing is working properly and all modules are installed and working properly. Upgrading to ES 6. The Event Server version 6 has implemented many changes to the objectconfig.ini of the hook processing. Upgrading the docker will fix the ZmNinja version incompatibility problem, but the hook processing will not work until you update the objectconfig.ini file. There are two ways to do this. The easiest way is to get into the docker command line and do the following commands: cd /config/hook ./config_upgrade.sh You will see a message about new configuration parameters and ones that can be removed. You will need to edit the file and make adjustments for your particular needs. The second method is to copy the objectconfig.ini.default script to objectconfig.ini and then edit the script for your particular needs. Edited October 17, 2020 by dlandon Notes abouy upgrading to ES 6 Quote Link to comment
dlandon Posted September 17, 2019 Author Share Posted September 17, 2019 Reserved. Quote Link to comment
Sic79 Posted September 18, 2019 Share Posted September 18, 2019 Nice initiative with this docker. One question though, is hwaccel for nvidia Cuda support included in this docker. If I remember right, IcOn had merged that into master branch? Anything you know? Would be nice to test that feature. Quote Link to comment
dlandon Posted September 18, 2019 Author Share Posted September 18, 2019 1 hour ago, Sic79 said: Nice initiative with this docker. One question though, is hwaccel for nvidia Cuda support included in this docker. If I remember right, IcOn had merged that into master branch? Anything you know? Would be nice to test that feature. Don't know. I don't follow the development that closely. Quote Link to comment
Sic79 Posted September 18, 2019 Share Posted September 18, 2019 Don't know. I don't follow the development that closely.Ok, will try this when I have time. Quote Link to comment
Sic79 Posted September 21, 2019 Share Posted September 21, 2019 It is now installed and running with ES + Yolo on my server, lets hope it is stable as 1.32 . I have not tried face recognition yet, and don´t know if I will beacuse all my cameras is mounted high up and might not be able to recognise face at that angle. Quote Link to comment
Sic79 Posted November 4, 2019 Share Posted November 4, 2019 @dlandon I tried to activate hwaccel but I see the following in the log: "zmc_m1 5424 WAR HWAccel support not compiled in. zm_ffmpeg_camera.cpp 538" Is that something that you could include in your compile? Quote Link to comment
dlandon Posted November 4, 2019 Author Share Posted November 4, 2019 1 hour ago, Sic79 said: @dlandon I tried to activate hwaccel but I see the following in the log: "zmc_m1 5424 WAR HWAccel support not compiled in. zm_ffmpeg_camera.cpp 538" Is that something that you could include in your compile? I don't compile ZM.C You'll need to ask the zoneminder devs to do it. Quote Link to comment
Sic79 Posted November 4, 2019 Share Posted November 4, 2019 I don't compile ZM.C You'll need to ask the zoneminder devs to do it. Ok. Thanks for answering, will do that Skickat från min iPhone med Tapatalk Quote Link to comment
Sic79 Posted November 6, 2019 Share Posted November 6, 2019 I don't compile ZM.C You'll need to ask the zoneminder devs to do it.I dont know if you saw it in the Zoneminder Slack channel but you got build instructions from Icon on how to include hwaccel support. “@Dan Landon In order to build in hwaccel code in zoneminder, cmake must be able to detect /usr/include/x86_64-linux-gnu/libavutil/hwcontext.h . This file is in libavutil-dev” Quote Link to comment
Sic79 Posted November 12, 2019 Share Posted November 12, 2019 @dlandon On 11/6/2019 at 6:50 PM, Sic79 said: I dont know if you saw it in the Zoneminder Slack channel but you got build instructions from Icon on how to include hwaccel support. “@Dan Landon In order to build in hwaccel code in zoneminder, cmake must be able to detect /usr/include/x86_64-linux-gnu/libavutil/hwcontext.h . This file is in libavutil-dev” @dlandon I saw that you did some changes on your github according to hwaccel but I did not see any difference when I updated my ZM docker so I just wonder if it is implented or are still working on it? Quote Link to comment
dlandon Posted November 12, 2019 Author Share Posted November 12, 2019 12 minutes ago, Sic79 said: @dlandon @dlandon I saw that you did some changes on your github according to hwaccel but I did not see any difference when I updated my ZM docker so I just wonder if it is implented or are still working on it? It should work. Quote Link to comment
Sic79 Posted November 12, 2019 Share Posted November 12, 2019 It should work.Hm wierd, I updated on Saturday when I saw your git. I could try again and see then, saw that there was a updated zmeventserver. I’ll report back when I have tested. Thanks Quote Link to comment
Sic79 Posted November 12, 2019 Share Posted November 12, 2019 It should work. Yes, it seems to work. I see no errors about hwaccel in my logs now. Thanks Edit: Doesn’t seem to lower my CPU usage though. Well, I’ll try some more Quote Link to comment
dlandon Posted November 24, 2019 Author Share Posted November 24, 2019 For those of you using Home Assistant, it looks like Home Assistant is now updated to work with this version of Zoneminder. Quote Link to comment
Sic79 Posted December 7, 2019 Share Posted December 7, 2019 Hi @dlandon It seems like zmeventserver is broken in latest update, atleast it stopped working on my server. I suspect it is some new "breaking changes" (new paths and names) for eventserver. I read about the changes here: https://zmeventnotification.readthedocs.io/en/latest/guides/breaking.html Quote Link to comment
Sic79 Posted December 8, 2019 Share Posted December 8, 2019 21 hours ago, Sic79 said: Hi @dlandon It seems like zmeventserver is broken in latest update, atleast it stopped working on my server. I suspect it is some new "breaking changes" (new paths and names) for eventserver. I read about the changes here: https://zmeventnotification.readthedocs.io/en/latest/guides/breaking.html @dlandon Ok, I see now that it is already fixed in your Git. But still I seem to have problems getting it running again. I recieve the following error: sh: 1: /var/lib/zmeventnotification/bin/zm_detect_wrapper.sh: not found My config is "hook_script = '/var/lib/zmeventnotification/bin/zm_detect_wrapper.sh'" so it should look at the right location (hook/zm_detect_wrapper.sh) or am I missing something? Quote Link to comment
dlandon Posted December 8, 2019 Author Share Posted December 8, 2019 1 hour ago, Sic79 said: @dlandon Ok, I see now that it is already fixed in your Git. But still I seem to have problems getting it running again. I recieve the following error: sh: 1: /var/lib/zmeventnotification/bin/zm_detect_wrapper.sh: not found My config is "hook_script = '/var/lib/zmeventnotification/bin/zm_detect_wrapper.sh'" so it should look at the right location (hook/zm_detect_wrapper.sh) or am I missing something? Change to: hook_script = '/usr/bin/zm_detect_wrapper.sh' 1 Quote Link to comment
Sic79 Posted December 8, 2019 Share Posted December 8, 2019 33 minutes ago, dlandon said: Change to: hook_script = '/usr/bin/zm_detect_wrapper.sh' Thanks, that path worked great Quote Link to comment
dlandon Posted December 8, 2019 Author Share Posted December 8, 2019 The docker has been updated. Quote Link to comment
Sic79 Posted December 16, 2019 Share Posted December 16, 2019 Hi @dlandon, Would it be possible for you to include variables for SQLDB IP and login in the Docker setup for us who use a external SQLDB? Quote Link to comment
dlandon Posted December 17, 2019 Author Share Posted December 17, 2019 16 hours ago, Sic79 said: Hi @dlandon, Would it be possible for you to include variables for SQLDB IP and login in the Docker setup for us who use a external SQLDB? Read here for instructions on using an external database: Quote Link to comment
Sic79 Posted December 17, 2019 Share Posted December 17, 2019 5 hours ago, dlandon said: Read here for instructions on using an external database: Ok thanks, I already know how to setup and it works great :). It was just a question/suggestion if that was possible to add the variables to the docker so that it could be set when installing the docker. Non important feature ofcourse but it would be neat to have them easy accessed. Quote Link to comment
dlandon Posted December 21, 2019 Author Share Posted December 21, 2019 I've updated the zmeventnotification server to 5.2 preliminary. Once it is released as stable I'll refresh the docker. There are a lot of changes with this version and the hook processing will fail unless you update the secrets.ini and objectconfig.ini files. The 5.2 defaults are copied into your config folder. I don't use hook processing so I cannot test it. If anyone can check it out and let me know if there are any adjustments I need to make. Quote Link to comment
dlandon Posted December 29, 2019 Author Share Posted December 29, 2019 I've updated the Docker to Phusion 0.11 (Ubuntu 18.04). One of the changes is you'll have to change PATH_FFMPEG to /usr/bin/ffmpeg. Avconf has been removed. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.