Public | Automated Build

Last pushed: 21 hours ago
Short Description
zoneminder-master in docker with persistent configuration
Full Description

Zoneminder

Install On unRaid:

On unRaid, install from the Community Repositories and enter the app folder location and the port for the webUI.

Install On Other Platforms (like Ubuntu or Synology 5.2 DSM, etc.):

On other platforms, you can run this docker with the following command:

docker run -d --name="Zoneminder" --privileged=true -v /path/to/config:/config:rw -v /etc/localtime:/etc/localtime:ro -p 80:80 aptalca/docker-zoneminder

Tips and Setup Instructions:

  • This container includes mysql, no need for a separate mysql/mariadb container
  • All settings and library files are stored outside of the container and they are preserved when this docker is updated or re-installed (change the variable "/path/to/config" in the run command to a location of your choice)
  • This container includes avconv (ffmpeg variant) and cambozola but they need to be enabled in the settings. In the WebUI, click on Options in the top right corner and go to the Images tab
  • Click on the box next to OPT_Cambozola to enable
  • Click on the box next OPT_FFMPEG to enable ffmpeg
  • Enter the following for ffmpeg path: /usr/bin/avconv
  • Enter the following for ffmpeg "output" options: -r 30 -vcodec libx264 -threads 2 -b 2000k -minrate 800k -maxrate 5000k (you can change these options to your liking)
  • Next to ffmpeg_formats, add mp4 (you can also add a star after mp4 and remove the star after avi to make mp4 the default format)
  • Hit save
  • Now you should be able to add your cams and record in mp4 x264 format
  • PS. In options under display, change the skin to "flat" it looks 100 times nicer

Changelog:

  • 2015-10-27 - perl5/ZoneMinder folder is now persistent and available in the config folder to allow easy access for custom perl scripts - usbutils included in the package for usb camera support (needs to be further tested)
Docker Pull Command
Owner
mnbf9rca
Source Repository

Comments (2)
mnbf9rca
2 years ago

works fine for me - i dont really know how to troubleshoot that... i use the version from ppa:iconnor/zoneminder-master which is slightly different than the normal zoneminder binaries - what version is your other instance?

kylerw
2 years ago

I'm trying to add a Foscam with the same settings I used before upgrading to your version of the Docker and I am unable to pull up the stream and receive a bunch of errors:

2016-01-08 22:00:53.863158 zms 1370 ERR Backtrace 6: /usr/lib/zoneminder/cgi-bin/nph-zms(+0x1fd47) [0x55d90dcb4d47] zm_signal.cpp 105
2016-01-08 22:00:53.680482 zms 1370 ERR Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x2b53e5a1cec5] zm_signal.cpp 105
2016-01-08 22:00:53.522877 zms 1370 ERR Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0x991) [0x55d90dcb4041] zm_signal.cpp 105
2016-01-08 22:00:53.323644 zms 1370 ERR Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x48) [0x55d90dcf32b8] zm_signal.cpp 105
2016-01-08 22:00:53.176570 zms 1370 ERR Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK7Monitor6GetFPSEv+0xd) [0x55d90dce706d] zm_signal.cpp 105
2016-01-08 22:00:53.058237 zms 1370 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x2b53e315a340] zm_signal.cpp 105
2016-01-08 22:00:52.958710 zms 1370 ERR Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x72) [0x55d90dd4a552] zm_signal.cpp 105
2016-01-08 22:00:52.858983 zms 1370 ERR Signal address is 0x2b53f4000004, from 0x55d90dce706d zm_signal.cpp 84
2016-01-08 22:00:52.774163 zms 1370 ERR Got signal 7 (Bus error), crashing zm_signal.cpp 54