• Announcements

    • MannDude

      Current state of vpsBoard   02/04/2017

      Dear vpsBoard members and guests:

      Over the last year or two vpsBoard activity and traffic has dwindled. I have had a change of career and interests, and as such am no longer an active member of the web hosting industry.

      Due to time constraints and new interests I no longer wish to continue to maintain vpsBoard. The web site will remain only as an archive to preserve and showcase some of the great material, guides, and industry news that has been generated by members, some of which I remain in contact to this very day and now regard as personal friends.

      I want to thank all of our members who helped make vpsBoard the fastest growing industry forum. In it's prime it was an active and ripe source of activity, news, guides and just general off-topic banter and fun.

      I wish all members and guests the very best, whether it be with your business or your personal projects.

      -MannDude
drmike

Linux CCTV / camera / security cobblers here?

4 posts in this topic

Do we have any resident cobblers / DIY types who are using Linux for CCTV / security related? I mean legit Linux DIY not premade embedded systems.

I am fussing with some China dump wifi cameras (read cheap).  Quite interesting little units for the price (bound to be more like them). ~ $15 a camera delivered.

RTSP streaming from these and seems to be a really common software stack they are loading into lots of these China cams from many many brands.  

Do we have people using the Open Source Zoneminder DVR / CCTV software?  Considering trying to get Zoneminder running on one of my unused ARM boards (yes it exists for ARM also).

1 person likes this

Share this post


Link to post
Share on other sites

I'm currently using ZoneMinder, but I have found it takes up way more CPU than commercial software.

I have 5 cameras running at 25 FPS, with a 1920x1080 resolution, and on a 4 core i5 ZoneMinder can barely keep up. Reducing the FPS to 12 seems to help.

Overall, ZoneMinder is very good for open source, but I wouldn't expect to work all too well on any machine without very good processing power.

2 people like this

Share this post


Link to post
Share on other sites

Decent machine there and high res... More resources than I'd expect :(

Overhead is just ZoneMinder out of the box, nothing additional complexity / addons / etc.?

Definitely going to give the ARM variant a spin and see what we can make it do.

Share this post


Link to post
Share on other sites

For more than 1 camera you will at least need an Odroid C2, Zoneminder running 2 cameras one rtsp and the other mjpeg causes 50% load on the c2 and uses about 1GB of ram.  I attempted this on the RPi3 and it couldn't even handle it, ran with a load of 5 and was in constant IO wait because it didn't have enough CPU to process IO.  

Quote

top - 06:14:03 up 2 days,  6:40,  1 user,  load average: 2.65, 2.58, 2.50
Tasks: 134 total,   4 running, 130 sleeping,   0 stopped,   0 zombie
%Cpu(s): 47.2 us,  1.2 sy,  0.0 ni, 49.9 id,  1.4 wa,  0.0 hi,  0.3 si,  0.0 st
KiB Mem :  1760384 total,    84492 free,   411552 used,  1264340 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   871020 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
29331 www-data  20   0  512240 342652 330324 R  58.8 19.5  25:37.54 /usr/lib/zoneminder/cgi-bin/nph-zms
30074 www-data  20   0  510860 345672 330188 S  47.1 19.6   9:57.63 /usr/bin/zma -m 2
29330 www-data  20   0  271192 104972  96332 R  41.2  6.0  20:20.48 /usr/lib/zoneminder/cgi-bin/nph-zms
29767 www-data  20   0  268144 103220  96420 S  23.5  5.9   6:42.80 /usr/bin/zma -m 1
 6297 www-data  20   0  133720  11020   4428 S  17.6  0.6   1:13.43 /usr/sbin/apache2 -k start
 8703 www-data  20   0  267468 100512  96468 S  17.6  5.7  99:27.87 /usr/bin/zmc -m 1
 6414 www-data  20   0  877772 364748 331688 S  11.8 20.7 184:11.13 /usr/bin/zmc -m 2

The above is normal operation with 1 person viewing both camera feeds.  If you don't intend to watch the feeds through zoneminder, it will reduce the load by about 25% but still was too much for the RPi3 to handle.

Tip: if you install zoneminder and intend to use it, make sure you setup MySQL tmpdir to be /dev/shm or loading of events in the viewer will be ridiculously slow if you are waiting on IO of a memory card (I do not have an eMMC chip in my c2 yet, so using a SP 16GB Elite card, 85M/sec read, 10-12M/sec write).  May not need to do this if you have the eMMc as its much faster than the sdcard.

Per my experience you need about 2Ghz (1 core) per camera you intend to use for processing, I am just using default 'modect' with Fast, high sensitivity settings.

There is also the open source 'motion' which runs a little bit leaner, however, you can not define zones for detection and its not 100% stable all the time.  In other words, if you just need to stream your video and detect if there is 'any' motion changes, motion works.  The convenience and likely additional resources user of zoneminder is the fact you can actually specify 'zones' for it to detect instead of detecting across the whole feed like motion does.  Motion will use a little less resources and may function better in a case where you want to use a slower ARM board.  When I was testing it I just made my own web gateway using nginx with a proxy pass through to the feeds.  Wasn't very difficult, but again, zoneminder provides this interface out of the box (using Apache by default).

One more note: As much as I am liking the zoneminder setup, I found that running 'ispy' in Windows, while uses a fair amount of resources is able to accomplish better rendering, better encoding and an overall better experience, especially if you want alerts (has many options).  However, my goal for a while now has been to offload the extra processing somewhere else than my main machine so I have more CPU for during work hours.  If you want something that just works and you have the hardware/license for Windows you will get a better experience out of ispy than from anything on Linux that I have used yet. (Hell if you have a nice enough machine you may be able to run ispy with wine?).

my 2 cents.

Cheers!

 

1 person likes this

Share this post


Link to post
Share on other sites

  • Similar Content

    • By Enterprisevpssolutions
      These custom Kvm solutions allow clients to setup the file system and partitions how they want. No templates, no default file system type, clients can pick and choose how they want the system setup just like a dedicate server. Custom made to fit the clients needs, full access with vnc console so you can troubleshoot your system without a public network interface. Premium Bandwidth 99.99% uptime! Our location is Southeast US, Tampa,Florida.   We use only the best hardware to guarantee uptime and stability and we never oversell our nodes.   Receive a 15% OFF INSTANT DISCOUNT just use this CODE:[email protected]$Th3B3$t#1 This is a recurring discount on any product you get.   Virtual Dedicated Servers (VPS)   Included With Every VPS Self-managed [-] Free Instant Setup per request in order [-] 99% Uptime Guaranteed  [-] 24/7/365 Online Support [-] vnc console access [-] Unlimited bandwidth on rated 10M port (Upgrade to 100M for $6.00)   Basic Package $14.95/monthly 1 CPU WESTMERE: 2.27GHZ DEDICATED RAM: 1024M SECURE STORAGE: 25G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Standard Package $24.95/monthly 2 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 2048M SECURE STORAGE: 50G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Advance Package $44.95/monthly 3 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 3096M SECURE STORAGE: 100G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Enterprise Package $69.95/monthly 4 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 4096M SECURE STORAGE: 200G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Need something custom look to our cloud solutions.
    • By graeme
      I have multiple web sites (and a few other processes) I want to run in an environment that is flexible and as low maintenance as possible. This includes my sites and customer sites, production and development. Most share a common platform (Python, Django, Postgres, Linux (mostly Debian)). I need to be able to give
      At the moment they are all running in separate VPSs, and some on shared hosting. The problem with multiple unmanaged VPSs is that it is a lot of stuff to manage.
      I have been experimenting with running the sites on a single VPS with multiple users. It is a "cloud" one so can be scaled up as needed, and there is only one OS and shared libraries to upgrade. The problem is relying on permissions to separate sites from each other, and to give users access to sites is quite fiddly, particularly as I am paranoid enough to run app servers as a different user from the code they exectute. I have not ruled it out as a solution, but it is not as straightforward as expected

      I thought of running my own VPSs on a dedi, which is cost effective, but adds one more component to manage. It gives me a lot of isolation.

      I think some sort of container or jail solution will give me the best of both worlds, but I am not familiar enough with it to pick suggestions? I am willing to consider using any *nix OS, although Debian Linux is what I am most familiar with.
      Resource isolation is not an issue: it will not be running anything I expect to cause problems. Easy admin and security are.
      Any suggestions?
    • By wlanboy
      Allwinner:
      Allwinner A10/A20 – Display engine clocks (TCON, FE, DE), I2S audio interface (ASoC) driver, added NFC node to DTS Allwinner H3 – Clocks (through sunxi-ng), USB multi-reset lines support AXP2xx driver – External drivebus support, AXP223 USB power supply support, AXP809 PMIC support Broadcom BCM53125 support as it’s used in Lamobo / Banana Pi R1 router board. New boards – Polaroid MID2407PXE03 & inet86dz (Allwinner A23 tablets), Banapi M1+, Banapi M2+, Allwinner Parrot (Allwinner R16 EVB) Samsung
      Enable drivers for Exynos7 and Exynos5433 based boards: S2MPS clock driver, SoC: RTC, SPI, watchdog, EHCI, OHCI, DWC3, ADC and PWM, Enable Samsung SoC sound Qualcomm Device Tree Changes:
      Reverse BAM dma node reverts Add BAM remote control options for affected platforms Enable peripherals on APQ8074 dragonboard Enable PMA8084 pwrky Fix PMIC reg entries by removing unnecessary size element Add SCM binding and support for all currently supported boards Add Qualcomm WCNSS binding documentation Rename db600c to SD_600eval and add peripheral nodes Remove gpio key entry from Nexus7 Add APQ8060 based dragonboard and associated peripherals Add ARMv7 PMU for IPQ4019 Other new ARM hardware or SoCs
      NXP i.MX 7Solo, Broadcom BCM23550, Broadcom BCM2837 (Raspberry Pi 3)  
      Grapped out of the change log: https://kernelnewbies.org/Linux_4.8
       
    • By AtlanticServers
      UK based DC by Atlantic Servers Limited
      Choose Your Best VPS Plans.
      Linux VPS 1: 
      ==================================
      Processor : Intel Xeon Quad Core
      CPU : 1 vCore
      RAM : 1024 MB    
      SWAP : 1024 MB    
      HDD : 20 GB  SAS RAID  
      Bandiwidth : 2TB 
       
      Price : $ 4.89/mo.  Order now
      with promo code VPS30
       
      Linux VPS 2: 
      ==================================
      Processor : Intel Xeon Quad Core
      CPU : 2 vCore
      RAM : 2048 MB    
      SWAP : 2048 MB    
      HDD : 30 GB  SAS RAID  
      Bandiwidth : 2TB 
       
      Price : $ 8.39/mo.  Order now
      with promo code VPS30