3 * HikVision 4MP cameras taking too much CPU

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
XabiX
Posts: 13
Joined: Thu Feb 02, 2017 4:31 pm

3 * HikVision 4MP cameras taking too much CPU

Post by XabiX »

Hello,

I have an i7 7700 with 16Gb of RAM running ZM 1.3 within Ubuntu 16.04.1. My issue is that the entire server runs at more than 60% CPU (with only 3 cameras).
Initially I wanted to detect alarms based on sub-stream like 640*360 (15fps, CBR, max bitrate 2048Kbps) and then record at max resolution 2688*1520 (15fps, VBR, 8192) but I can't seem to do so as it records at sub-sctream.

I have in ZM 3 cameras set as Monitor for with sub-streans and 3 other cameras (which are in reality the same ones with a different main stream channel) recording all the time. I couldn't figure out how to detect on sub-stream and record only then the main stream.

1/ Any idea on how to achieve this?

2/ If I put recording 2688*1520 (pretty static scene) what is recommended Bitrate (Variable), Quality (Highest) and Max Bitrate?
3/ If I put recording 1920*1080 (pretty static scene) what is recommended Bitrate (Variable), Quality (Highest) and Max Bitrate?

4/ I have set analysis and max FPS to my camera fps +1 to save ressources. Should I be enable Respect aspect ratio? They are set to 24 bits color space will I win something in changing that?

I am trying to understand why recording a stream to a SSD without analyzing or touching the video format takes that much of CPU. Initially I was thinking that the analysis would have been done in the sub-streams which would have impacted the CPU and then a basic recording function centralized through ZM to record the full frame videos.

Should I only do the analysis in ZM and ask the cameras to save directly to the SSD through NFS?

Thank you for your recommendations.
XabiX
Avro125
Posts: 21
Joined: Sun Jun 26, 2016 12:39 pm
Location: Canada

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by Avro125 »

I've got an i5 3470, 12GB RAM, ZM 1.3 and 16.04. Four x 3MP cameras and one 720 camera. Less powerful computer, similar camera load. CPU averages about 25% - 30%.

The 720 camera monitors a static scene at only 2FPS, so I'll leave it out of the discussion.

The four other cameras are streaming 3MP (2048x1536) at 8FPS along with a lower 640x480 'motion detection' stream at 4FPS. The low-res sub-streams are set in ZM to Modect (motion detection and recording). The high-def 8FPS streams from the same cameras are set to Nodect (note the ' N ' ) and the frames simply reside in RAM, but are linked to the corresponding low-res, low-frame stream. If an alarm is triggered on the sub-stream, ZM will record the HD stream to the hard drive for the number of pre- and post-frames that I've specified.

Linking monitors is found in the monitor setup (click on the camera's IP address from the ZM main page). Simply highlight the sub-stream that matches the HD camera feed.

Works exceptionally well. I've found that 4FPS is more than enough for motion detection. I could probably go even lower, but I'm not stressing my CPU any at the present rate. 8FPS is fine for motion, higher is smoother, and I'm guessing that you should have enough RAM to store an adequate buffer for your HD streams at 15 FPS.

In this setup, both main- and sub-streams are recorded. I'll sometimes go back to the sub-stream event and check the metadata to tweak my motion analysis. The sub-stream events are deleted after a few days as they're of little value, and I retain the HD events a bit longer.

As for bitrates, I'm not much help, but the numbers you quoted for your setup should be more than enough.

I'd start by lowering your sub-stream frame rate to 4 or 5 FPS, and linking the HD streams but not doing any motion detection.

Let me know how it works out.
XabiX
Posts: 13
Joined: Thu Feb 02, 2017 4:31 pm

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by XabiX »

Thank you Avro125 to have shared your view. FYI I met HikVision in a conference event and I asked them. Basically what I understood is that the streams in H264 require a lot to decode and therefore with an intel graphic chip is usually not enough.

So they were recommending to install a dedicated Nvidia graphic card which should do the trick.

For me, I have configured the cameras to do the motion/even detection themselves and just record on a samba drive. Therefore ZM is almost not used, only when I want to check the cameras from on screen.

I may play a little bit by reducing the parameters but buying nice cameras to at the end not use them for their value is not ideal.

MERCI
XabiX
Posts: 13
Joined: Thu Feb 02, 2017 4:31 pm

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by XabiX »

Hello,

I am adding 3 cameras (8Mb and 2 of 5Mb) and I am therefore concerned that it will fall apart.

What is strange and therefore I am wondering if my issue is not linked to something else is that when ZM is off I run at:

Code: Select all

  1  [                                                                                             0.0%]   Tasks: 149, 475 thr; 1 running
  2  [##                                                                                           1.3%]   Load average: 0.00 0.03 0.00 
  3  [#                                                                                            0.7%]   Uptime: 08:29:27
  4  [#*                                                                                           1.3%]
  5  [**                                                                                           1.3%]
  6  [##                                                                                           1.3%]
  7  [                                                                                             0.0%]
  8  [                                                                                             0.0%]
  Mem[|||||||||##*********                                                                  1.39G/15.5G]
  Swp[                                                                                         0K/7.88G]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command                                                                                                                                                 
 1935 xabix      20   0 1107M   98M 56744 S  2.0  0.6  7:48.25 compiz                                                                                                                                                  
20929 xabix      20   0 27380  5112  3100 R  1.3  0.0  0:00.12 htop               
 2153 xabix      20   0  509M 24236 19816 S  0.7  0.1  6:36.25 indicator-multiload
 1882 xabix      20   0  623M 35664 25568 S  0.7  0.2  2:04.40 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
 1893 xabix      20   0  623M 35664 25568 S  0.7  0.2  1:00.33 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service 
 1498 mysql      20   0 2695M  172M 18072 S  0.7  1.1  0:01.45 /usr/sbin/mysqld 
 1571 xabix      20   0 43976  4328  2768 S  0.7  0.0  1:17.73 dbus-daemon --fork --session --address=unix:abstract=/tmp/dbus-zyKdRpMPpk
 1945 xabix      20   0 1187M 88156 11944 S  0.7  0.5  0:32.42 Plex Plug-in [com.plexapp.agents.subzero] /usr/lib/plexmediaserver/Resources/Plug-ins-1bf240a65/Framework.bundle/Contents/Resources/Versions/2/Python/bo
 2011 xabix      20   0  393M 12904 11428 S  0.0  0.1  1:14.88 /usr/lib/x86_64-linux-gnu/indicator-application/indicator-application-service
 1346 root       20   0  465M 57912 42684 S  0.0  0.4  3:43.94 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
but when it's ON but with no cameras powered on so all cameras off it still takes a lot of CPU. Therefore I am confused and don't understand why.

Code: Select all

  1  [###########################################################################################100.0%]   Tasks: 159, 486 thr; 5 running
  2  [##*                                                                                          2.6%]   Load average: 0.32 0.09 0.02 
  3  [##**                                                                                         3.3%]   Uptime: 08:29:58
  4  [###########################################################################################100.0%]
  5  [#*                                                                                           1.3%]
  6  [#############################################################################               78.4%]
  7  [###########################################################################################100.0%]
  8  [#######################*                                                                    24.2%]
  Mem[||||||||||||||##*********                                                             2.21G/15.5G]
  Swp[                                                                                         0K/7.88G]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command                                                                                                                                                 
21030 www-data   20   0  637M  203M  192M R 100.  1.3  0:05.72 /usr/bin/zmc -m 7                                                                                                                                       
21019 www-data   20   0  637M  203M  192M R 99.8  1.3  0:05.76 /usr/bin/zmc -m 5
21037 www-data   20   0  637M  205M  192M R 99.8  1.3  0:05.76 /usr/bin/zmc -m 8
21024 www-data   20   0  637M  203M  192M R 99.8  1.3  0:05.69 /usr/bin/zmc -m 6
 1935 xabix      20   0 1107M   98M 56744 S  2.0  0.6  7:48.73 compiz
21068 xabix      20   0 27456  5236  3112 R  2.0  0.0  0:00.22 htop  
 2153 xabix      20   0  509M 24236 19816 S  2.0  0.1  6:36.65 indicator-multiload
 2011 xabix      20   0  393M 12904 11428 S  0.7  0.1  1:14.97 /usr/lib/x86_64-linux-gnu/indicator-application/indicator-application-service
 1882 xabix      20   0  623M 35664 25568 S  0.7  0.2  2:04.52 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
 2032 xabix      20   0  393M 12904 11428 S  0.7  0.1  0:37.83 /usr/lib/x86_64-linux-gnu/indicator-application/indicator-application-service 
 1610 xabix      35  15 1751M 56768 11428 S  0.7  0.3  0:42.59 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-1bf240a65/Framework.bundle/Contents/Resources/Versions/2/Python/bootstr
Any idea of why the zmc process takes full CPU per CAM even if powered off?

Merci
XabiX

LOGS:
zm-log.zip
(81.05 KiB) Downloaded 249 times

Code: Select all

xabix@SERVER:/mnt/Camera$ sudo groups back
back : back dip www-data plugdev sambashare cams sambausers
xabix@SERVER:/mnt/Camera$ sudo groups front
front : front dip www-data plugdev sambashare cams sambausers
xabix@SERVER:/mnt/Camera$ sudo groups corridor 
corridor : corridor www-data
xabix@SERVER:/mnt/Camera$ ll /mnt/Camera/
total 64
drwxr-xr-x  9 root     root      4096 juil. 12 18:56 ./
drwxr-xr-x  8 root     root      4096 juil. 13 14:11 ../
-rw-------  1 root     root      7168 févr. 11  2017 aquota.group
-rw-------  1 root     root      7168 juin   1 16:32 aquota.user
drwxrwx---  3 back     www-data  4096 juin   1 16:37 Back/
drwxrwx---  3 corridor www-data  4096 juil. 16 23:14 Corridor/
drwxr-xr-x 10 root     root      4096 juil.  6 16:48 events/
-rw-r--r--  1 root     root         0 juil. 12 18:56 forcefsck
drwxrwx---  3 front    www-data  4096 juin   1 16:35 Front/
drwxr-xr-x  2 root     root      4096 juil.  5 17:00 images/
drwx------  2 root     root     16384 févr. 11  2017 lost+found/
drwxrwx---  3 side     side      4096 juil. 16 23:13 Side/
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by SteveGilvarry »

It is trying to connect to the camera, it is a little stupid, it doesn't know you didn't power the cameras and is coded on the expectation that cameras are running 24x7, and loss of connection is bad, which for security cameras it is. Problem is it attempts connection as fast as it can, lots of times per second. Set cameras to None and start zm, you can also set MaxFPS to Cameras FPS + 1 to limit how nuts it goes.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
XabiX
Posts: 13
Joined: Thu Feb 02, 2017 4:31 pm

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by XabiX »

SteveGilvarry wrote: Thu Oct 19, 2017 8:29 pm It is trying to connect to the camera, it is a little stupid, it doesn't know you didn't power the cameras and is coded on the expectation that cameras are running 24x7, and loss of connection is bad, which for security cameras it is. Problem is it attempts connection as fast as it can, lots of times per second. Set cameras to None and start zm, you can also set MaxFPS to Cameras FPS + 1 to limit how nuts it goes.
Thanks. I have done so 25 +1 in MaxFPS but that doesn't change anything.
I have clean all the permissions issues but that didn't change anything.

I will disable the monitoring for now and will retest when the cameras on as when I opened this thread I had CPU issues with cameras on. (I am rebuilding the network and awaiting a new poe switch to repower everything).

For now the logs look cleaner but still high cpu.

Code: Select all

2017-10-19 22:47:12.014922 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:47:12.011565 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:47:10.068469 zmc_m6[5142].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:47:10.065071 zmc_m6[5142].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:47:08.101274 zmc_m7[5156].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:47:08.100400 zmc_m7[5156].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:47:08.097318 zmc_m8[5175].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:47:08.094464 zmc_m8[5175].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:47:01.093162 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:47:01.090286 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:59.045282 zmc_m6[5142].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:59.042013 zmc_m6[5142].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:57.080839 zmc_m7[5156].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:57.077465 zmc_m7[5156].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:57.076114 zmc_m8[5161].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:57.072474 zmc_m8[5161].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:50.070888 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:50.067965 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:48.021920 zmc_m6[5142].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:48.018573 zmc_m6[5142].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:46.264080 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 8']
2017-10-19 22:46:46.131760 zmdc[4695].ERR-zmdc.pl ['zmc -m 8' exited abnormally, exit status 11]
2017-10-19 22:46:46.127964 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 12: /usr/bin/zmc(_start+0x29) [0x5642bd2658b9]]
2017-10-19 22:46:46.127239 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 11: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fe56ae32830]]
2017-10-19 22:46:46.124751 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 10: /usr/bin/zmc(main+0x6aa) [0x5642bd264aea]]
2017-10-19 22:46:46.124009 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 9: /usr/bin/zmc(_ZN7MonitorD1Ev+0x1d0) [0x5642bd28f550]]
2017-10-19 22:46:46.123203 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 8: /usr/bin/zmc(_ZN12FfmpegCameraD0Ev+0x9) [0x5642bd31ebd9]]
2017-10-19 22:46:46.120544 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 7: /usr/bin/zmc(_ZN12FfmpegCameraD1Ev+0x18) [0x5642bd31eb28]]
2017-10-19 22:46:46.119827 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 6: /usr/bin/zmc(_ZN12FfmpegCamera11CloseFfmpegEv+0xe1) [0x5642bd31e761]]
2017-10-19 22:46:46.119054 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 5: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(avformat_close_input+0x157) [0x7fe56d732457]]
2017-10-19 22:46:46.116503 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 4: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x13b89b) [0x7fe56d70589b]]
2017-10-19 22:46:46.115690 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 3: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x1342e3) [0x7fe56d6fe2e3]]
2017-10-19 22:46:46.113070 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 2: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(ffurl_write+0x1e) [0x7fe56d61be8e]]
2017-10-19 22:46:46.112267 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7fe56e744390]]
2017-10-19 22:46:46.111408 zmc_m8[4742].ERR-zm_signal.cpp/102 [Backtrace 0: /usr/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x5642bd2d7ed8]]
2017-10-19 22:46:46.108618 zmc_m8[4742].ERR-zm_signal.cpp/81 [Signal address is 0x20, from 0x7fe56d61be8e]
2017-10-19 22:46:46.105945 zmc_m8[4742].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
2017-10-19 22:46:46.058139 zmc_m7[5129].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:46.055376 zmc_m7[5129].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:46.035810 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 8']
2017-10-19 22:46:39.051876 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:39.048586 zmc_m5[5031].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:37.101138 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:37.098692 zmc_m6[5018].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:37.098097 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:37.095563 zmc_m6[5018].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:35.750020 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 7']
2017-10-19 22:46:35.607900 zmdc[4695].ERR-zmdc.pl ['zmc -m 7' exited abnormally, exit status 11]
2017-10-19 22:46:35.603751 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 12: /usr/bin/zmc(_start+0x29) [0x560f78a1c8b9]]
2017-10-19 22:46:35.601112 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 11: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fc4b0320830]]
2017-10-19 22:46:35.600246 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 10: /usr/bin/zmc(main+0x6aa) [0x560f78a1baea]]
2017-10-19 22:46:35.599353 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 9: /usr/bin/zmc(_ZN7MonitorD1Ev+0x1d0) [0x560f78a46550]]
2017-10-19 22:46:35.596711 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 8: /usr/bin/zmc(_ZN12FfmpegCameraD0Ev+0x9) [0x560f78ad5bd9]]
2017-10-19 22:46:35.595878 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 7: /usr/bin/zmc(_ZN12FfmpegCameraD1Ev+0x18) [0x560f78ad5b28]]
2017-10-19 22:46:35.595104 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 6: /usr/bin/zmc(_ZN12FfmpegCamera11CloseFfmpegEv+0xe1) [0x560f78ad5761]]
2017-10-19 22:46:35.592649 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 5: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(avformat_close_input+0x157) [0x7fc4b2c20457]]
2017-10-19 22:46:35.591797 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 4: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x13b89b) [0x7fc4b2bf389b]]
2017-10-19 22:46:35.591066 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 3: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x1342e3) [0x7fc4b2bec2e3]]
2017-10-19 22:46:35.588454 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 2: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(ffurl_write+0x1e) [0x7fc4b2b09e8e]]
2017-10-19 22:46:35.587560 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7fc4b3c32390]]
2017-10-19 22:46:35.584872 zmc_m7[4735].ERR-zm_signal.cpp/102 [Backtrace 0: /usr/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x560f78a8eed8]]
2017-10-19 22:46:35.583764 zmc_m7[4735].ERR-zm_signal.cpp/81 [Signal address is 0x20, from 0x7fc4b2b09e8e]
2017-10-19 22:46:35.580980 zmc_m7[4735].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
2017-10-19 22:46:35.502540 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 7']
2017-10-19 22:46:28.030782 zmc_m5[4990].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:28.024062 zmc_m5[4990].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:26.495520 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 6']
2017-10-19 22:46:26.297900 zmdc[4695].ERR-zmdc.pl ['zmc -m 6' exited abnormally, exit status 11]
2017-10-19 22:46:26.292278 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 12: /usr/bin/zmc(_start+0x29) [0x55718bb2d8b9]]
2017-10-19 22:46:26.291399 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 11: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fb7f4df4830]]
2017-10-19 22:46:26.288702 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 10: /usr/bin/zmc(main+0x6aa) [0x55718bb2caea]]
2017-10-19 22:46:26.287915 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 9: /usr/bin/zmc(_ZN7MonitorD1Ev+0x1d0) [0x55718bb57550]]
2017-10-19 22:46:26.285230 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 8: /usr/bin/zmc(_ZN12FfmpegCameraD0Ev+0x9) [0x55718bbe6bd9]]
2017-10-19 22:46:26.284459 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 7: /usr/bin/zmc(_ZN12FfmpegCameraD1Ev+0x18) [0x55718bbe6b28]]
2017-10-19 22:46:26.283618 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 6: /usr/bin/zmc(_ZN12FfmpegCamera11CloseFfmpegEv+0xe1) [0x55718bbe6761]]
2017-10-19 22:46:26.281108 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 5: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(avformat_close_input+0x157) [0x7fb7f76f4457]]
2017-10-19 22:46:26.280336 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 4: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x13b89b) [0x7fb7f76c789b]]
2017-10-19 22:46:26.277770 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 3: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x1342e3) [0x7fb7f76c02e3]]
2017-10-19 22:46:26.272449 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 2: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(ffurl_write+0x1e) [0x7fb7f75dde8e]]
2017-10-19 22:46:26.271658 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7fb7f8706390]]
2017-10-19 22:46:26.269007 zmc_m6[4729].ERR-zm_signal.cpp/102 [Backtrace 0: /usr/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x55718bb9fed8]]
2017-10-19 22:46:26.267852 zmc_m6[4729].ERR-zm_signal.cpp/81 [Signal address is 0x20, from 0x7fb7f75dde8e]
2017-10-19 22:46:26.264746 zmc_m6[4729].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
2017-10-19 22:46:26.156630 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 6']
2017-10-19 22:46:26.079570 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:26.072826 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:26.042005 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:26.038915 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:26.035990 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:26.031572 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:17.401090 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 5']
2017-10-19 22:46:17.179940 zmdc[4695].ERR-zmdc.pl ['zmc -m 5' exited abnormally, exit status 11]
2017-10-19 22:46:17.167177 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 12: /usr/bin/zmc(_start+0x29) [0x557abb6098b9]]
2017-10-19 22:46:17.164588 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 11: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f5f036f6830]]
2017-10-19 22:46:17.163722 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 10: /usr/bin/zmc(main+0x6aa) [0x557abb608aea]]
2017-10-19 22:46:17.161157 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 9: /usr/bin/zmc(_ZN7MonitorD1Ev+0x1d0) [0x557abb633550]]
2017-10-19 22:46:17.160327 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 8: /usr/bin/zmc(_ZN12FfmpegCameraD0Ev+0x9) [0x557abb6c2bd9]]
2017-10-19 22:46:17.159461 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 7: /usr/bin/zmc(_ZN12FfmpegCameraD1Ev+0x18) [0x557abb6c2b28]]
2017-10-19 22:46:17.156897 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 6: /usr/bin/zmc(_ZN12FfmpegCamera11CloseFfmpegEv+0xe1) [0x557abb6c2761]]
2017-10-19 22:46:17.154237 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 5: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(avformat_close_input+0x157) [0x7f5f05ff6457]]
2017-10-19 22:46:17.148409 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 4: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x13b89b) [0x7f5f05fc989b]]
2017-10-19 22:46:17.142509 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 3: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(+0x1342e3) [0x7f5f05fc22e3]]
2017-10-19 22:46:17.136634 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 2: /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56(ffurl_write+0x1e) [0x7f5f05edfe8e]]
2017-10-19 22:46:17.132087 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f5f07008390]]
2017-10-19 22:46:17.129416 zmc_m5[4724].ERR-zm_signal.cpp/102 [Backtrace 0: /usr/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x557abb67bed8]]
2017-10-19 22:46:17.126109 zmc_m5[4724].ERR-zm_signal.cpp/81 [Signal address is 0x20, from 0x7f5f05edfe8e]
2017-10-19 22:46:17.122770 zmc_m5[4724].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
2017-10-19 22:46:17.023380 zmdc[4695].WAR-zmdc.pl [Can't find process with command of 'zma -m 5']
2017-10-19 22:46:15.105531 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:15.098868 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:15.096127 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:15.095324 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:15.073044 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:15.069895 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:15.055915 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:15.051742 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:04.079904 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:04.077479 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:04.075485 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:04.074119 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:04.048003 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:04.044884 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:46:04.026881 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:46:04.023088 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:53.102481 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:53.099270 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:53.060165 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:53.058909 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:53.056412 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:53.053215 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:53.025909 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:53.021806 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:42.093466 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:42.086951 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:42.079488 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:42.076312 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:42.041313 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:42.035558 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:42.035457 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:42.031390 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:31.063272 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:31.060208 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:31.055725 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:31.052043 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:31.013759 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:31.012041 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:31.008028 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:31.007234 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:20.088990 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:20.086632 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:20.083222 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:20.083136 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:20.033301 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:20.028231 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:20.027401 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:20.023897 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:09.107682 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:09.107681 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:09.104122 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:09.104000 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:09.059216 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:09.059215 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:45:09.055310 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:45:09.055184 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:58.083542 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:58.081141 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:58.079400 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:58.077314 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:58.033887 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:58.030450 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:58.026452 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:58.026333 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:47.104956 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:47.104525 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:47.102553 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:47.100805 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:47.059978 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:47.059976 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:47.056390 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:47.056318 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:36.085129 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:36.083496 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:36.081082 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:36.077513 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:36.040226 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:36.035638 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:36.034659 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:36.029718 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:25.065076 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:25.062167 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:25.054789 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:25.051640 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:25.017495 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:25.011380 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:25.011058 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:25.006044 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:14.092100 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:14.089181 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:14.083286 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:14.079356 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:14.044376 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:14.041310 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:14.029554 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:14.024635 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:03.104381 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:03.099694 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:03.068929 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:03.064215 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:03.049350 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:03.045660 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:44:03.018713 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:44:03.014598 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:52.093289 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:52.090093 zmc_m6[4775].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:52.070597 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:52.065912 zmc_m7[4774].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:52.036089 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:52.032040 zmc_m8[4773].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:52.024064 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:52.019908 zmc_m5[4776].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:41.099054 zmc_m5[4724].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19543//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:41.095954 zmc_m5[4724].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:41.071461 zmc_m6[4729].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19544//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:41.068491 zmc_m6[4729].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:41.040691 zmc_m7[4735].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19545//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:41.037784 zmc_m7[4735].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:41.012750 zmc_m8[4742].ERR-zm_ffmpeg_camera.cpp/269 [Unable to open input rtsp://userA:PWD@192.168.1.10:19546//Streaming/Channels/1 due to: Connection timed out]
2017-10-19 22:43:41.009124 zmc_m8[4742].ERR-zm_ffmpeg_camera.cpp/441 [Open video took more than 10 seconds.]
2017-10-19 22:43:30.217960 zmdc[4695].ERR-zmdc.pl ['zmc -m 8' exited abnormally, exit status 255]
2017-10-19 22:43:30.146600 zmdc[4695].ERR-zmdc.pl ['zmc -m 7' exited abnormally, exit status 255]
2017-10-19 22:43:30.071310 zmdc[4695].ERR-zmdc.pl ['zmc -m 6' exited abnormally, exit status 255]
2017-10-19 22:43:29.995750 zmdc[4695].ERR-zmdc.pl ['zmc -m 5' exited abnormally, exit status 255]
BTW emptying the logs and fixing the access rights is much better!!!!
1 [################## 18.0%] Tasks: 163, 484 thr; 2 running
2 [#########** 10.0%] Load average: 0.71 0.92 1.17
3 [######################################* 39.1%] Uptime: 00:41:37
4 [#### 3.3%]
5 [#* 1.3%]
6 [# 0.7%]
7 [ 0.0%]
8 [#################### 19.9%]
Mem[||||||||||||||##*********** 2.24G/15.5G]
Swp[ 0K/7.88G]

PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
5129 www-data 20 0 637M 203M 192M S 21.3 1.3 3:54.03 /usr/bin/zmc -m 7
5018 www-data 20 0 637M 207M 192M S 20.6 1.3 3:56.92 /usr/bin/zmc -m 6
5161 www-data 20 0 637M 205M 192M R 20.6 1.3 3:51.81 /usr/bin/zmc -m 8
4990 www-data 20 0 637M 207M 192M S 19.9 1.3 3:56.37 /usr/bin/zmc -m 5
2229 xabix 20 0 562M 31820 27380 S 6.6 0.2 2:43.96 /usr/lib/vino/vino-server --sm-disable
7179 xabix 20 0 27460 5256 3192 R 2.0 0.0 0:00.12 htop
1342 root 20 0 450M 48924 36108 S 2.0 0.3 0:29.09 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
2221 xabix 20 0 501M 24316 19900 S 1.3 0.1 0:35.52 indicator-multiload
1996 xabix 20 0 1170M 99068 56836 S 0.7 0.6 0:42.50 compiz
1849 xabix 20 0 493M 140M 39980 S 0.7 0.9 0:00.84 /usr/lib/plexmediaserver/Plex Media Server
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by SteveGilvarry »

25 FPS at that resolution will require some cpu effort to decode. And all settings other than None will be decoding.
Change camera FPS to <10 that has the greatest effect on load.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
XabiX
Posts: 13
Joined: Thu Feb 02, 2017 4:31 pm

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by XabiX »

But if the camera is saving direclty on the NAS, and ZM is not doing motion detection etc.. why does ZM needs to decode the images?
I was just looking to use it to view the streams from a web page ...

Isn't there another parameter that can disable this detection without disabling the cameras otherwise I can't see them.

Merci
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by SteveGilvarry »

Because it always has, and is quite deeply embedded that it uses jpegs, eg live view is working with images. And to maintain that it always decodes.
People are working on, but nothing in master yet.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by Baylink »

Indeed. To expand: if your camera is sending a stream in MPEG, not MJPEG, then ZM has to pick that apart into frames, so that it can do things like motion detection -- and if the encoding is dense, then that takes a lot of CPU, or it takes an FFMPEG that knows how to talk to hardware that does the decoding for it -- and can manage multiple streams simultaneously.

I have the same (or very similar) cameras to you -- mine are trendNet labeled -- and I'm running them at 720p 6fps, and I've got 12 of them going, with a resting LA around 9.

That turns out to be pretty usable in my environment.

The machine is an SC1430, which is a quad-Xeon, so that's not much more than 2 per core, which I've always been relatively comfortable.

In montage review it gets up into the high teens, sometimes breaking 20, but I rarely see it lose a frame.
XabiX
Posts: 13
Joined: Thu Feb 02, 2017 4:31 pm

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by XabiX »

Thank you guys.

I will then ensure that the ffmpeg installed by default (Ubuntu 16.04.3) has HW acceleration and if not enough I will decrease the Max FPS and the cameras while we get potentially the fact that we can use ZM just for viewing without Motion Detection.

Thanks and good week to all
XabiX
Posts: 13
Joined: Thu Feb 02, 2017 4:31 pm

Re: 3 * HikVision 4MP cameras taking too much CPU

Post by XabiX »

Hello guys,

I just wanted to share a good news. I have changed my "config" meaning that before I was running ZM over Virtualbox on Ubuntu 16.04 and now I am running the same ZM version on a Debian 9 over Proxmox hypervisor and it works like a charm. So not sure if this is linked to the OS or the virtualization but I am much happy and I can now think of using ZM for more than occasional watching.

MERCI to the ones who tried to help and guide me!
1 [################* 26.0%] Tasks: 67, 73 thr; 2 running
2 [#################* 27.2%] Load average: 0.92 0.60 0.27
3 [############ 18.1%] Uptime: 00:05:41
4 [######### 14.6%]
Mem[|||||||||||||||||||||||||||||||#****** 1.91G/3.86G]
Swp[ 0K/2.00G]

PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
1489 www-data 20 0 920M 357M 324M S 22.0 9.0 1:14.53 /usr/bin/zmc -m 1
1491 www-data 20 0 920M 357M 324M S 19.3 9.0 1:09.31 /usr/bin/zmc -m 3
1505 www-data 20 0 913M 349M 324M S 14.6 8.8 0:51.35 /usr/bin/zmc -m 5
1490 www-data 20 0 920M 357M 324M R 14.0 9.0 0:46.41 /usr/bin/zmc -m 2
1495 www-data 20 0 921M 357M 324M S 13.3 9.0 0:47.12 /usr/bin/zmc -m 4
1 root 20 0 57276 7028 5264 S 0.0 0.2 0:00.59 /sbin/init
525 root 20 0 42964 5008 4476 S 0.0 0.1 0:00.08 /lib/systemd/systemd-journald
546 root 20 0 99004 1660 1436 S 0.0 0.0 0:00.00 /sbin/lvmetad -f
563 root 20 0 20828 184 4 S 0.0 0.0 0:00.00 /usr/sbin/blkmapd
590 root 20 0 46260 4352 2984 S 0.0 0.1 0:00.13 /lib/systemd/systemd-udevd
797 root 20 0 49872 3564 3124 S 0.0 0.1 0:00.00 /sbin/rpcbind -f -w
805 root 20 0 23348 212 0 S 0.0 0.0 0:00.00 /usr/sbin/rpc.idmapd
841 root 20 0 248M 3232 2520 S 0.0 0.1 0:00.00 /usr/sbin/rsyslogd -n
842 root 20 0 248M 3232 2520 S 0.0 0.1 0:00.00 /usr/sbin/rsyslogd -n
843 root 20 0 248M 3232 2520 S 0.0 0.1 0:00.00 /usr/sbin/rsyslogd -n
806 root 20 0 248M 3232 2520 S 0.0 0.1 0:00.01 /usr/sbin/rsyslogd -n
FYI /dev/shm was filling quickly so I had to assign 4G to the VM.
Not sure if I need swap on such config so I may remove it.
Post Reply