Unstable Zoneminder

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
manjotsc
Posts: 9
Joined: Sat Aug 15, 2020 11:16 am

Unstable Zoneminder

Post by manjotsc »

Hi,

I am using GPU as hardware acceleration with zoneminder. But It's keep beating i7-4790k to 100 Percent. Zoneminder is very laggy and Live View in Monitor is also vary laggy. Need Help I am running two 1080p RSTP Stream @25 frames

Image
Image
Image
Image
Image
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unstable Zoneminder

Post by iconnor »

You are doing cuda for decoding but software encoding!

You have to select nvenc for the encoding to use the gpu.
manjotsc
Posts: 9
Joined: Sat Aug 15, 2020 11:16 am

Re: Unstable Zoneminder

Post by manjotsc »

It's still choking my cpu

Image

Code: Select all

Date/Time,Component,Server,PID,Level,Message,File,Line
"2021-06-06 21:38:13",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:13",zmc_m2,,3659,WAR,"Application provided duration: -14 / timestamp: 14 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:13",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:13",zmc_m2,,3659,WAR,"Application provided duration: -13 / timestamp: 14 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"7535 Door: 30 - Analysing at 12.16 fps from 29 - 9=20 / 1623029892.993762 - 1623029891.349546 = 1.644216",zm_monitor.cpp,1704
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -13 / timestamp: 13 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -12 / timestamp: 13 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -11 / timestamp: 13 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -10 / timestamp: 13 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -9 / timestamp: 13 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -9 / timestamp: 12 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m1,,3615,INF,"7545-Door: 300 - Capturing at 24.99 fps, capturing bandwidth 272768bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -8 / timestamp: 12 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -7 / timestamp: 12 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -6 / timestamp: 12 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3642,INF,"7535 Door: 90 - Capturing at 25.03 fps, capturing bandwidth 287695bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -5 / timestamp: 12 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -4 / timestamp: 12 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,WAR,"Application provided duration: -5 / timestamp: 11 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:12",zmc_m2,,3659,INF,"Estimating the duration of the last packet in a fragment, consider setting the duration field in AVPacket instead.",zm_ffmpeg.cpp,70
"2021-06-06 21:38:11",zmc_m2,,3659,INF,"7535 Door: 10 - Analysing at 3.12 fps from 9 - 0=9 / 1623029891.349546 - 1623029888.462148 = 2.887398",zm_monitor.cpp,1704
"2021-06-06 21:38:11",zmc_m2,,3642,INF,"7535 Door: 60 - Capturing at 45.28 fps, capturing bandwidth 482850bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:10",zmc_m2,,3659,INF,"7535 Door: 000 - Opened new event 3713, section start",zm_monitor.cpp,2020
"2021-06-06 21:38:10",zmc_m2,,3659,WAR,"Encoder Option # Lines beginning with # are a comment # For changing quality, use the crf option# 1 is best, 51 is worst qualitycrf not recognized by ffmpeg codec",zm_videostore.cpp,381
"2021-06-06 21:38:09",zmc_m2,,3642,INF,"7535 Door: 10 - Capturing at 6.85 fps, capturing bandwidth 132864bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:09",zmc_m1,,3615,WAR,"Too short data for FU-A H.264 RTP packet",zm_ffmpeg.cpp,70
"2021-06-06 21:38:08",zmc_m1,,3627,INF,"7545-Door: 200 - Analysing at 33.58 fps from 199 - 89=110 / 1623029888.534968 - 1623029885.259298 = 3.275670",zm_monitor.cpp,1704
"2021-06-06 21:38:08",zmc_m1,,3615,INF,"7545-Door: 200 - Capturing at 25.02 fps, capturing bandwidth 272171bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:07",zmc_m2,,3642,INF,"Starting Capture version 1.37.0",zmc.cpp,220
"2021-06-06 21:38:07",zmc_m2,,3642,INF,"Enabling ffmpeg logs, as LOG_DEBUG+LOG_FFMPEG are enabled in options",zm_ffmpeg.cpp,85
"2021-06-06 21:38:07",zmdc,,3642,INF,"'zmc -m 2' started at 21/06/06 21:38:07",zmdc.pl,'-
"2021-06-06 21:38:07",zmdc,,421,INF,"'zmc -m 2' starting at 21/06/06 21:38:07, pid = 3642",zmdc.pl,'-
"2021-06-06 21:38:07",zmdc,,421,WAR,"!send_stop so starting 'zmc -m 2'",zmdc.pl,'-
"2021-06-06 21:38:07",zmdc,,421,INF,"Command 'zmc -m 2' removed from pending list at 21/06/06 21:38:07",zmdc.pl,'-
"2021-06-06 21:38:07",zmwatch,,480,WAR,"Restarting capture daemon for 7535 Door, time since last capture 51 seconds (1623029887-1623029836)",zmwatch.pl,'-
"2021-06-06 21:38:05",zmc_m1,,3627,INF,"7545-Door: 90 - Analysing at 44.19 fps from 89 - 39=50 / 1623029885.259298 - 1623029884.127881 = 1.131417",zm_monitor.cpp,1704
"2021-06-06 21:38:04",zmc_m1,,3615,INF,"7545-Door: 100 - Capturing at 24.90 fps, capturing bandwidth 260313bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:04",zmc_m1,,3627,INF,"7545-Door: 40 - Analysing at 29.61 fps from 39 - 9=30 / 1623029884.127881 - 1623029883.114583 = 1.013298",zm_monitor.cpp,1704
"2021-06-06 21:38:04",zmc_m1,,3627,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:04",zmc_m1,,3627,WAR,"Application provided duration: -3 / timestamp: 19 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,WAR,"Application provided duration: -3 / timestamp: 18 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,WAR,"Application provided duration: -2 / timestamp: 18 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,WAR,"Application provided duration: -1 / timestamp: 18 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,INF,"pts has no value",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,WAR,"Application provided duration: -1 / timestamp: 18 is out of range for mov/mp4 format",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3627,INF,"Estimating the duration of the last packet in a fragment, consider setting the duration field in AVPacket instead.",zm_ffmpeg.cpp,70
"2021-06-06 21:38:03",zmc_m1,,3615,INF,"7545-Door: 70 - Capturing at 52.76 fps, capturing bandwidth 579797bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:03",zmc_m1,,3627,INF,"7545-Door: 10 - Analysing at 3.32 fps from 9 - 0=9 / 1623029883.114583 - 1623029880.401048 = 2.713535",zm_monitor.cpp,1704
"2021-06-06 21:38:02",zmc_m1,,3627,INF,"7545-Door: 000 - Opened new event 3712, section start",zm_monitor.cpp,2020
"2021-06-06 21:38:02",zmc_m1,,3627,WAR,"Encoder Option # Lines beginning with # are a comment # For changing quality, use the crf option# 1 is best, 51 is worst qualitycrf not recognized by ffmpeg codec",zm_videostore.cpp,381
"2021-06-06 21:38:02",zmc_m1,,3615,INF,"7545-Door: 10 - Capturing at 5.66 fps, capturing bandwidth 65311bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:38:00",zmc_m1,,3615,INF,"Starting Capture version 1.37.0",zmc.cpp,220
"2021-06-06 21:38:00",zmc_m1,,3615,INF,"Enabling ffmpeg logs, as LOG_DEBUG+LOG_FFMPEG are enabled in options",zm_ffmpeg.cpp,85
"2021-06-06 21:38:00",zmdc,,3615,INF,"'zmc -m 1' started at 21/06/06 21:38:00",zmdc.pl,'-
"2021-06-06 21:38:00",zmdc,,421,INF,"'zmc -m 1' starting at 21/06/06 21:38:00, pid = 3615",zmdc.pl,'-
"2021-06-06 21:38:00",zmdc,,421,INF,"Starting pending process, zmc -m 1",zmdc.pl,'-
"2021-06-06 21:37:59",zmdc,,421,INF,"'zmc -m 1' crashed, signal 8",zmdc.pl,'-
"2021-06-06 21:37:56",zmc_m1,,3495,INF,"7545-Door: 1900 - Capturing at 24.99 fps, capturing bandwidth 272141bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:52",zmc_m1,,3495,INF,"7545-Door: 1800 - Capturing at 25.00 fps, capturing bandwidth 271794bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:48",zmc_m1,,3495,INF,"7545-Door: 1700 - Capturing at 24.99 fps, capturing bandwidth 271938bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:44",zmc_m1,,3495,INF,"7545-Door: 1600 - Capturing at 24.99 fps, capturing bandwidth 271752bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:40",zmc_m1,,3495,INF,"7545-Door: 1500 - Capturing at 25.01 fps, capturing bandwidth 272594bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:36",zmdc,,421,INF,"'zmc -m 2' crashed, signal 8",zmdc.pl,'-
"2021-06-06 21:37:36",zmc_m1,,3495,INF,"7545-Door: 1400 - Capturing at 24.98 fps, capturing bandwidth 271061bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:36",zmc_m2,,3541,INF,"7535 Door: 800 - Capturing at 25.00 fps, capturing bandwidth 271468bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:32",zmc_m1,,3495,INF,"7545-Door: 1300 - Capturing at 24.99 fps, capturing bandwidth 271349bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:32",zmc_m2,,3541,INF,"7535 Door: 700 - Capturing at 24.99 fps, capturing bandwidth 271633bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:28",zmc_m1,,3495,INF,"7545-Door: 1200 - Capturing at 24.99 fps, capturing bandwidth 271037bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:28",zmc_m2,,3541,INF,"7535 Door: 600 - Capturing at 25.00 fps, capturing bandwidth 272657bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:24",zmc_m1,,3495,INF,"7545-Door: 1100 - Capturing at 24.99 fps, capturing bandwidth 271426bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:24",zmc_m2,,3541,INF,"7535 Door: 500 - Capturing at 25.00 fps, capturing bandwidth 272804bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:23",zmc_m2,,3541,WAR,"Too short data for FU-A H.264 RTP packet",zm_ffmpeg.cpp,70
"2021-06-06 21:37:21",zmc_m2,,3541,WAR,"Too short data for FU-A H.264 RTP packet",zm_ffmpeg.cpp,70
"2021-06-06 21:37:20",zmc_m1,,3495,INF,"7545-Door: 1000 - Capturing at 25.26 fps, capturing bandwidth 275106bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:20",zmc_m2,,3541,INF,"7535 Door: 400 - Capturing at 25.00 fps, capturing bandwidth 272013bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:16",zmc_m2,,3555,INF,"7535 Door: 100 - Analysing at 11.83 fps from 99 - 79=20 / 1623029836.757532 - 1623029835.066393 = 1.691139",zm_monitor.cpp,1704
"2021-06-06 21:37:16",zmc_m1,,3495,INF,"7545-Door: 900 - Capturing at 24.68 fps, capturing bandwidth 267568bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:16",zmc_m2,,3541,INF,"7535 Door: 300 - Capturing at 24.99 fps, capturing bandwidth 271741bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:15",zmc_m2,,3555,INF,"7535 Door: 80 - Analysing at 3.26 fps from 79 - 69=10 / 1623029835.066393 - 1623029831.995522 = 3.070871",zm_monitor.cpp,1704
"2021-06-06 21:37:12",zmc_m1,,3495,INF,"7545-Door: 800 - Capturing at 24.99 fps, capturing bandwidth 271298bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:12",zmc_m2,,3541,INF,"7535 Door: 200 - Capturing at 25.00 fps, capturing bandwidth 264460bytes/sec",zm_monitor.cpp,1663
"2021-06-06 21:37:11",zmc_m2,,3555,INF,"7535 Door: 70 - Analysing at 7.93 fps from 69 - 49=20 / 1623029831.995522 - 1623029829.474634 = 2.520888",zm_monitor.cpp,1704
"2021-06-06 21:37:10",zmc_m2,,3541,WAR,"Too short data for FU-A H.264 RTP packet",zm_ffmpeg.cpp,70
"2021-06-06 21:37:10",zmc_m1,,3514,INF,"7545-Door: 700 - Analysing at 17.39 fps from 699 - 599=100 / 1623029830.161552 - 1623029824.412579 = 5.748973",zm_monitor.cpp,1704
"2021-06-06 21:37:09",zmc_m2,,3555,INF,"7535 Door: 50 - Analysing at 14.29 fps from 49 - 29=20 / 1623029829.474634 - 1623029828.075383 = 1.399251",zm_monitor.cpp,1704
alabamatoy
Posts: 349
Joined: Sun Jun 05, 2016 2:53 pm

Re: Unstable Zoneminder

Post by alabamatoy »

I think you have a configuration problem. I have very similar CPU supporting 8 cameras, and the CPU utilization is staying well below 25%. I have another system hosting 6 camera, I3 CPU, and its running around 50% CPU. Try cranking the camera FPS down - do this in the camera itself, not in ZM - and see if the CPU consumption drops. I have mine set to 10FPS, plenty good enough for security purposes.

HTH
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unstable Zoneminder

Post by iconnor »

Step 1, stop using hwaccell for everything, establish a baseline.
Step 2, take 1 camera, try out different options, turn on logging, look at looks, use brain, figure it out.
Step 3, profit.
Post Reply