Zoneminder decoding is not keeping up. Fix missing/corrupted pre-alarm frames in recording.

Like AI, expect 90% but do not ever expect 100%. In fact, I downloaded and compiled a new version of Zoneminder from scratch, and somehow managed to get it compiled without FFMPEG. Jun 17, 2021 · Set up a monitor pointing to the camera's high-res stream and set it to Record. 36. I'm having an issue figuring out how to tell the filter not to purge the last weeks worth. dome sensor. May 30, 2023 · Decoding is ON, except for the 2 Chinese camera's. 31 from 1. Zoneminder saves events as usual. Fix missing/corrupted pre-alarm frames in recording. I don't know why freebsd is so slow for decoding. Oct 22, 2014 · It seems zmtrigger works fine when analysis and decoding are enabled but fails to work if they are not. May 29, 2023 · I'm just going to run mocord to all drives now, and purge only non-motion continuous events when the storage is 90%, always keeping the last weeks worth regardless of alarms for not. but also using ppa to get the most recent version 1. It means the key frame from the camera is leaving the buffer before the video is analyzed, the key frame is needed for analysis. ) 'zmc -m 2' exited abnormally, exit status 255 in VLC the URL works fine, on Zoneminder server that command works fine too: Aug 28, 2021 · By setting up the high and low resolution streams as separate cameras, you can perform the analysis on the low resolution camera and then have that trigger recording from the high resolution camera. There's probably an equivalent app on Windows or Linux if you use Dec 15, 2021 · "Found locked packet when trying to free up video packets. ZoneMinder 1. Either Analysis is not keeping up or your camera's keyframe interval 180 is larger than this setting. although CPU usage did drop by %50 and RAM usage never got over 6GB in total before. The log file seem to indicate that it is recording, however there are recording in the events folder. by bbunge » Thu Jun 16, 2022 8:58 pm. - New Monitor Setting: Decoding Enabled/Disabled Jun 16, 2021 · All that is happening here is that the consumers of the buffer, which is the motion detection/writing out to disk part are not keeping up with capture. cpp 92 2021-05-12 15:51:57 zmc_m14 320413 WAR You have set the max video packets in the queue Fixes [ #3510] Stop streams when clicking cancel/Save so that we don't log errors trying to access a dead zms. It does not appear the server ever establishes any sort of successful boot. Sign in Jan 25, 2022 · Install zoneminder through PPA following read the docs. When I switch decoding on for those two, CPU increases enormously, and I constantly see the zmc processes restart on ALL camera's. cpp128. 25 The Memory Remains Released. Mine is now set to 1 key frame per second, the lowest setting on my 1/7/23, 2:02:25 PM GMT+1 zmc_m2 1246 WAR Decoding is not keeping up. So at the moment I don't have live for these two camera's. However my 8 core system was over taxed by ZM (never mind all the RAM I had to add to keep up, but that wasn't enough). How you installed ZoneMinder: APT. The description says, the branch supports direct recording of h264 cameras into MP4 format uisng the h264 Passthrough option, but only with FFMPEG Monitors currently. I seem to have Zoneminder SORT OF up and running. 2021-03-29 03:32:36zmc_m185268WARYou have set the video packets in the queue to 1. g. Jul 27, 2023 · Seems I must setup two monitors under the console. zm_packetqueue. We are xxx seconds behind capture". I want to record 24x7 a 1080p camera with Decoding disabled to save CPU. dome_status Both dome_events and dome_status have correct values, so I know I’m getting good data from Zoneminder, but all the Jan 18, 2021 · So zmwatch kills it and restarts. There is no days, hours, weeks setting. 99 fps when in Record mode. Sep 18, 2012 · which suggest the camera is spitting out m-jpeg. 30. x Mar 2, 2022 · Version of ZoneMinder: 1. I thought my zones where not right, but i guess this is the problem that not all motion is recorded. zoneminder is HW accelerated :D. However, I like running with analysis/enabled off to reduce CPU. why an hour ago, before rebooting the zm, the cpu was loaded by 50%, and how it rebooted the zm to 100%. Feb 25, 2023 · I am trying to get zoneminder to use Intel's QSV hardware accelertated decoding to work. zm_packetqueue. zm_monitor. You do not have the required permissions to view the files attached Zoneminder seems capped at 11. ” And “ You have set the max video packets in the queue to 150. 21. Using off the shelf hardware with any camera, you can design a system as large or as small as you need. Sep 7, 2020 · Saves ram - ONVIF probe can now select a network to scan - Sessions now stored in database - Clicking on username in header will now list other logged in users if you have SystemView ppermission. Dec 17, 2023 · With zoneminder-1. Speeds up zoneminder shutdown. 5 has helped big time and resolved the buffering and RAM usage issues for me. 20240126gitg543d3bdd9. While I have been able to get several versions of a zoneminder-in-docker up and running, I am unable to pull my old monitor zones from the host setup and import them into a docker setup. x86_64, I still need to restart to free up memory every few hours. 17 Freezing on Third Camera. Decoding not keeping up. I found ZM H264 Video Storage Branch on Github. I have disabled Analysis and Decoding in the camera settings. gpu isn't that useful in decoding. Jul 13, 2024 · I am trying out zoneminder 1. cpp 2624. 2021-03-29 03:32:36zmc_m185268ERRUnable to free up older packets. I use the IPCams application (MacOS and iOS) to view my cameras live this way and it works great. It's not "FreeBSD slow". Jun 17, 2023 · Code: Select all. It no longer gets any ONVIF events from my "problem" cameras. cpp 2624 I tried to double CPU cores and RAM, disabled save JPEGs storage option for sub monitor and reduced the FPS for sub (4) and main (8), but I still have the same problems: Aug 21, 2007 · I have a couple cams here I have to gear ffmpeg up for h264 so I might be able to assist later this week. My 8 cameras pump out at 5 frames a second or less. Jul 5, 2020 · Setting up Zoneminder with the HDB4300C. I'm new to ZM, so try to figure out its full potential for my tasks. 29. Flydude25. x Development Branch; ↳ ZoneMinder 1. I pulled the git master and modified zm_ffmpeg_camera. Jun 14, 2022 · Once I had a couple of cameras in and configured, I noted the logs started reporting "Decoding is not keeping up. In Zoneminder, I have a single camera called “dome”. While VAAPI seems to work (very not efficient) QSV is just not working. CPU usage of the zm container over 24h averages 2%. Apr 30, 2022 · Playing around with decoding for some more time, this is what I've found: Thumbnails Enabled Ondemand eats more memory than KeyFrames Only. Oct 2, 2021 · I have zoneminder installed on a older Dell pe2950, 2 quad core xeon processors and 32gb of ram and 4 bonded gigabit nics. ↳ ZoneMinder 1. Also, long term, we should be doing our motion detection on the yuv420 image Clear install ZoneMinder 1. Or some kind of OS update leads to this. I've seen the Dummies guide in the wiki. Note: these are settings I made directly in the camera's UI - I did not install Escam's CMS software QD300 allows you to configure both a primary and secondary stream. To use ZoneMinder properly you need to define at least one Monitor. repeat step 3 and watch RAM increase. Start by dropping the frame rate on the cameras themselves to 5 fps. Unfortunately, the camera does not record at all. The Linux Spectre patches have a big impact on I/O - not just general computation. 27. Set a max image buffer. For example, the latest Ubuntu Server 12. cpp as follows: case AV_HWDEVICE_TYPE_CUDA: return AV_PIX_FMT_CUDA; Jun 24, 2021 · Not enough CPU. else. 33) i noticed that my CPU, which is, due to hardware conditions, able to run completely passively cooled, is running hot. x; ↳ ZoneMinder 1. Might also need to use rtsp://user:pass@url. It can't keep up with a 1080p stream in this vm. 36 For all cameras the same logs: It says "Decoding is not keeping up" Your CPU can't cope with the work you are giving it (in real Oct 26, 2022 · After updating to 1. So the answer is: Code: Select all. Posts: 2404. All settings are identical. 36 For all cameras the same logs: It says "Decoding is not keeping up" Your CPU can't cope with the work you are giving it (in real Jan 23, 2021 · I want to record 24x7 a 1080p camera with Decoding disabled to save CPU. root@ZoneMinder-Server:~# df -h. In 1. Jul 3, 2020 · It is always decoding, even in monitor mode for use in Live view. Expected behavior. May 17, 2020 · Decoding is not keeping up. I still get log errors saying “unable to free up older packets. I'm doing passthrough and not decoding for all streams btw. 13~20220401124110-focal How you installed ZoneMinder [e. We are 641 seconds behind capture. Im new and this will probably not be my last question here but i am getting a delay in recording and i am unsure where in my setting to check. " and You have set the max video packets in the queue to 20. We are 514 seconds behind capture. Jul 6, 2024 · The challenge of all surveillance systems lies in its motion detection analysis (thus the 'zone' in zoneminder, being the motion detection zones). Apr 13, 2016 · H264 Videostorage. TrueNAS core 12. Feb 3, 2021 · The issue I still have and hope gets resoved with TrueNAS Scale is to use a video card for the encoding/decoding. PPA, RPMFusion, from-source, etc] Jan 4, 2009 · Generally this either means that my code is bad, or event writing is too slow. 3M (2048x1536) cam 10 fps h264 - decoding and analyzing "eat" ~20-25% of 1 core of Core i7 920@3. Can Zoneminder decode this natively ? I understand Chrome might not be able to (which is why the Cambozola applet is needed to be able to show ZM frames), so I am less bothered about not being able to browse to it. 13 fps. png. If it returns immediately there's a problem so check the logs, if it stays up then your video configuration is probably ok. Aug 5, 2022 · Once I had a couple of cameras in and configured, I noted the logs started reporting "Decoding is not keeping up. Zoneminder is running on Lubuntu 16. Defining Monitors. dome_events sensor. Jun 27, 2021 · Not enough CPU. x; ↳ Mobile Apps and Event . Jun 11, 2022 · Now I disabled the two added cameras, rebooted the zm, the CPU load did not fall. The h264 encoder is already being used to output motion vectors, why not process the video frame data into an h264 stream. I'm running modect on the low res sub streams and capturing the high res streams on alarm. Hardware: Intel Core i5-6300U, 16GB ram, 256GB SSD, performance governor. Apr 4, 2022 · Version of ZoneMinder [release version, development version, or commit] 1. 1. I don't know why and will have to do more investigation. Something derived from the code inside of zoneminder would be a MUCH better test case. May 15, 2021 · There are a lot of information regarding ZM and at the very start it's not so easy to find out, what is relevant to your case and to understand this information. 03 version has libavcodec version 53 However, avcodec. Jun 16, 2021 · All that is happening here is that the consumers of the buffer, which is the motion detection/writing out to disk part are not keeping up with capture. Oct 13, 2017 · A few days ago I did a full clean install of Ubuntu 18. A native mmal h264 decoder can be implemented which would remove reliance on specially built ffmpeg. 6 LTS. 50-1. if ffmpeg is compiled with HW acceleration in my distribution then. 4. Aug 27, 2019 · I am slowly transferring my home server applications from the host machine to containers using docker-compose. I am not seeing recent errors or warnings except for the telemetry server. Change to ffmpeg or libvlc methods and use ftp/rtsp to force tcp can help. 33, and reflects what the note at Decoding Enabled says. by zamar17 » Sun Apr 17, 2016 4:56 am. 34. Jun 5, 2016 · Re: whatg does this log entry mean? by Andyrh » Tue May 25, 2021 7:48 pm. You can access the monitor window by clicking on the “Add New Monitor” button, or by clicking on the “Source” column of a predefined Nov 27, 2020 · Thought I'd make a sticky about what is actually going on in 1. 37. I've setup encoding on my much older gpu and it works well. Changes since 1. We now have gpu encoding support, and that might actually be useful. Software and hardware motion vector processing require different buffer sizes. Zones have their gotchas, and you may want to consider ZMES. Essentially, a monitor is associated with a camera and can continually check it for motion detection and such like. Having worked through the various camera settings, I reduced them down to the Record function with no analysis or decoding enabled, no Save JPEGs and Camera Passthrough. Turns out that my build of ffmpeg did not have libx264 support compiled in, so after building x264, rebuilding ffmpeg, and then rebuilding zm, I was able to view the rtsp stream in h264. Mine went 100% cpus after adding just a few cameras. Run mysqltuner to make adjustments to the database settings (innodb_buffer_pool_size may need to be increased). Not useful for motion detection at this time. If I disable decoding, it jumps up to 12. If this is not possible, any way to keep the secondary listing from showing under montage, etc? I'm unable to remove monitors from being viewed and save that layout. So if you want timestamping, privacy zones or whatever, then you need encoding and the gpu will help a lot. Similar Ubuntu vm's have no trouble. You might save 1-2% of cpu. I set mocord to record thinking maybe analysis of frames was driving up the cpu. Set up a second monitor pointing to the low-res stream and set it to Monitor. Now I see, that it was already mentioned in the topic "Features in 1. I've got zoneminder working on 3 ip cams. 33 and am enjoying it so far. This line is just me guessing at what zoneminder does. #3 is actually just a warning I think no action is taken anymore. 4 we will now just wait instead of dropping the packets, which might be ok but we need understand WHY the consumer is not keeping up. I gather from other posts that the zone Jul 14, 2023 · Seems I must setup two monitors under the console. Fixes [ #3643] Add a sleeping flag so that when we get sigterm, we can just exit instead of returning to the sleep. 26. Jan 18, 2017 · Hardware video acceleration on ZoneMinder (zoneminder as of >= 1. fc39. Filters - Moved event email options from global config to per Filter - Added user to run filter as, so that users without access to certain monitors can't just use a filter to access them. 26, ZM appears to devour all memory and lock up the server. Once Zonemidner is started it quickly rises to 100% CPU load. This will work, but was hoping to set this up under one monitor. Dec 6, 2022 · I'm running four cameras on a Raspberry Pi and if I set all 4 to Modect then I run into zmc not keeping up with decoding. I have found that zmu can trigger an event but there is not a way to specify the cause. Jan 7, 2015 · At a guess. knight-of-ni. See: Understanding Zoneminder's Zoning system for Dummies. 04 with Zoneminder 1. Jun 23, 2008 · by velthuizen » Mon Sep 12, 2016 12:36 pm. all running 1080. Turning off the Spectre mitigations improved your I/O, resulting in more camera data processed per second and this elevated your CPU utilization. In the link, it mentions possibly using MQTT to fire the overview camera. From what I can glean on the forum, they are related to the keyframe (?? "i-frame", as HIK calls it). Oct 8, 2022 · This runs on a i7-4790 but limited to two cores. 0-U2. I'm uncertain if that's how it's supposed to work, but that's how it is on my 1. Apr 30, 2022 · ↳ ZoneMinder Distributions; ↳ ZoneMinder Translations; ↳ Archive [End of Life Versions] ↳ ZoneMinder 1. Leave the camera settings in zm as default or tune based on the zm Jun 22, 2015 · Unable to decode frame at frame 0. I tried to get this camera to work with an older version of Zoneminder and had a devil of a time. May 29, 2023 · Decoding is ON, except for the 2 Chinese camera's. 1. Mar 2, 2017 · I will document the install/compile process of FFMpeg with CUDA support and post it in this thread (Monday~ish). Filesystem Size Used Avail Use% Mounted on. We are xxx seconds behind capture. I use zmtrigger to start events and specify a specific trigger cause. apt install zoneminder. Camera: Reolink RLC-410-5MP Source type: Ffmmpeg Function: mocord Analysis disabled Method: TCP EDIT: After adding 2 more cores and 4GB ram, one camera already is starting to lag behind by a few minutes just after reboot. 36 For all cameras the same logs: It says "Decoding is not keeping up" Your CPU can't cope with the work you are giving it (in real May 14, 2021 · There are a lot of information regarding ZM and at the very start it's not so easy to find out, what is relevant to your case and to understand this information. May 4, 2021 · 2 decoding is not keeping up. Also, long term, we should be doing our motion detection on the yuv420 image Jun 8, 2021 · 1. In you first post you were using remote type RTSP, which is zm built in rtsp support, but it does not have h264 decoder, which your screen shot indicates you are using so it will fail. So i checked by simply viewing the system ressources monitor and saw that all cores are running on kinda 50-60% load. Most cameras can support pushing two streams, and you'll be able to watch your cameras without adding any additional load to your Zoneminder server. 1GHz in VirtualBox vm. In some cases I have seen the process of converting from yuv420p (what we get back from the decoder) to rgba (what we do our motion detection on) takes way longer than doing the actual decoding. With three camers I really don't neeed it. Lower the frame rate to 10 or lower at the camera. not keeping up. The second is due to the keyframe interval being set too large in your camera or the analysis process waiting on decode or locked writing to disk. This basically means that decoding is not kkeping up. I dont want to use Modect on this high resolution camera, and only want to record a stream 24x7 without analysis/decoding (akin to directly storing using ffmpeg). Record durations also seem to be correct. There is no event appearing in the webui. Might be due to CPU usage; I've seen loads of 27 on a 6 core system so basically unusable. Begin with a single monitor and single zone. If anyone could get me a zoneminder style ffmpeg test line that would be great. cpp 2624 I tried to double CPU cores and RAM, disabled save JPEGs storage option for sub monitor and reduced the FPS for sub (4) and main (8), but I still have the same problems: May 5, 2020 · 2021-11-08 14:29:27zmc_m48516WARYou have set the max video packets in the queue to 5. This will cause RAM usage to increase and not clear over time (it does decrease slightly). We are dropping packets. 11. 04. In HA, I see the following entities: Binary sensor for Zoneminder camera. 720P or lower. Your packetqueue is growing forever. This list may or may not be complete. 3. On both OSes ZM use ffmpeg. 31. The queue is full. Jan 18, 2021 · Re: Many new errors after upgrading to 1. Monitor your home, office, or wherever you want. And I believe I've configured my new ZM instance to follow the recommended best practices - more details on my setup below. Zoneminder is running on a 4 core, 32GB Intel NUC, that's running at about 0. 24 - add build for ubuntu kinetic - fix Apr 22, 2019 · Code: Select all. 35. 32. The drop-down box was there, but it did not work. 2): The answer from developers: Video manipulation is controlled by ffmpeg. 35 development. Lower the camera resolution. The quick fix is to set MaxImagebuffer = 2*keyframe interval+1 or larger. 2) generally the amount of traffic and storage from jpeg pulls or decoding h264 streams to jpegs, was not acceptable. 2. Last edited by velthuizen on Sun Sep 18, 2016 6:21 pm, edited 1 time in total. Couldn't find anything in the wiki. The first is obvious, your zone is too sensitive. Jan 12, 2023 · 1/7/23, 2:02:25 PM GMT+1 zmc_m2 1246 WAR Decoding is not keeping up. I'm also running mlapi on a second Raspberry Pi to reduce the load on the ZM Pi. 1 works really well, I like the ability to punch in numbers for may storage and have them go up and down for the ZFS quota, so I don't need to use much or can keep 1/7/23, 2:02:25 PM GMT+1 zmc_m2 1246 WAR Decoding is not keeping up. Also, long term, we should be doing our motion detection on the yuv420 image Jun 16, 2022 · I've recently updated to 1. 34 there was no concept of locking so frames would just be lost. *" and in the Option Help. by iconnor » Sun Dec 19, 2021 5:40 pm. I also have a fix in master that fixes the lockup situation by simply removing frames from the beginning of the queue but keeping the needed keyframe. Jul 18, 2023 · Start simple. In the latest version, you don’t then need to decode the high resolution stream, although you still need to run the analysis process. Every camera is throwing "You have set the max video packets in the queue to 300. I expect to be able to turn the server on and not have all of the memory consumed. " This was not there in the past, I believe its a result of iconnors "- Keep track of max Sep 17, 2007 · A single monitor, no recording, set to h264 passthrough is now taking 80-90% CPU. Jun 29, 2023 · OK, I was somewhat mistaken about not needing to save jpegs. Add camera and set to MOCORD. Verify the web account user has access to /media/ZONEMINDER/events Jun 12, 2021 · All that is happening here is that the consumers of the buffer, which is the motion detection/writing out to disk part are not keeping up with capture. Full name and version of OS: Ubuntu 18. 33. I've seen numerous threads on optimizing performance and how it can really scale to handle a lot of cameras. In my systems contention on the Events table is a problem, or we are dealing with a 4k camera where it literally takes too long to write out the alarm snapshot jpegs. What should I do? I read somewhere that Zoneminder shouldn't ever try to use over 1/2 of the available system RAM but it is doing this. There are four possibilities: DB hanging. You can set it up in the "device config->Encode" section of the camera Dec 8, 2021 · I don't know how things are set up there but you'll probably want to set the Video Writer to Camera Passthrough to avoid decoding/encoding the video stream and use a separate low-resolution stream for any detection or analysis, triggering a higher-resolution stream to record any events. Tail of the server logs is below. 28. Need a new Live view method so we can pass a stream to browser without decoding first. All of that works fine with a system load of less than 2 in zoneminder console. When you view the Montage you'll see both streams but if you click the Function selector drop-down at the top of the page and choose Monitor you'll only see the low-res monitor. In order to get live Montage, you need save jpegs set to anything other than disabled, AND/OR Decoding enabled on the General tab. I'm getting: disk_total_space returned false. I resolved this issue by decreasing the key frame interval on my cameras. I have not disabled that setting. dougmccrary. 5. In your CLI example I think you are only copying the video stream, which is exactly what we do for writing the stream to a file, but after that ZMA gets involved and decodes it. Also, decoding is not keeping up. You can run the zmc capture daemon from the command line as 'zmc --device <device>' (or whatever your video device is). I wrote about: avcodec_decode_video2 being only in libavcodec 54 and above. Aug 15, 2016 · If I leave the analysis and decoding options on then the memory utilization for a given worker exceeds 26GB and soon all of the system memory is used until the OS kills the thread. Yet your latest ffmpeg is compiled with avcodec_decode_video2 ( in libavcodec55). We will update it as we go. Jul 14, 2023 · Seems I must setup two monitors under the console. set the sub stream to a low resolution and framerate, from the camera (i run at 352x288 with 1 fps and Iframe-interval = 3) I want to record 24x7 a 1080p camera with Decoding disabled to save CPU. " I cannot find the setting for max video A full-featured, open source, state-of-the-art video surveillance software system. - ZoneMinder will now try other Storage Areas if it can't create the event in the assigned area. Not queueing this video packet. Everything more or less working, but zillions of these 'decoding frame' errors in the logs. Dec 22, 2015 · Today have all seven cameras hooked up (two D-link domes and five HIKvision DS-2CD2035-I bullets). Under prior releases my cpu loads are around 40%. Trigger event by waving hand in front of camera and watch RAM usage increase. Clear install ZoneMinder 1. Describe the bug. I have 7 cemeras all UDP rtsp streams. When the script purged when full is executed the events are gone but the disk space is still the same, seems only database entry are gone but not the images. Jan 17, 2013 · ZM just didn't keep up, and it's not wireless, I had gigie wired ethernet two my cams,. May 7, 2022 · Toggle navigation. Mar 25, 2021 · 2021-05-12 15:51:57 zmc_m13 320408 WAR You have set the max video packets in the queue to 20. To set this up correctly, you will need cameras with dual stream capability (main/sub) add both streams to zoneminder. Either Analysis is not keeping up or your camera's keyframe interval is larger than this setting. KeyFrames + Ondemand eats even more, because (my guess) decoded keyframes aren't used for thumbnail generation and zmc does the same as with Decoding='Ondemand' for thumbnails. 25 from 1. Sep 22, 2020 · I’ve got HA and Zoneminder talking to each other successfully, but I can’t see any camera images. Waiting. decode_video is deprecated since libavcodec54. 86. Mar 8, 2011 · Thus i setup a camera in 'Record' mode and disabled decoding. I tried to double CPU cores and RAM, disabled save JPEGs storage option for sub monitor and reduced the FPS for sub (4) and main (8), but I still have the same problems: 1/7/23, 3:31:44 PM GMT+1 zmc_m2 2188 WAR Decoding Feb 5, 2021 · Re: Zoneminder 1. 6 load, and no single process shows more than about 50% CPU in 'top'. iv bs tj wq zh sx dp pq lb wu  Banner