ImageBufferCount is too small.

Previous development branch now released as 1.36
Locked
tomcat84
Posts: 39
Joined: Fri Jul 03, 2020 11:24 pm

ImageBufferCount is too small.

Post by tomcat84 »

Hi I have some question reagarding this warning message spamming my logs.

Code: Select all

ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:27:14	zmc_m3		17397	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:27:11	zmc_m4		26312	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:27:11	zmc_m5		17550	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:27:10	zmc_m2		17346	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:27:09	zmc_m6		17610	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:58	zmc_m1		21559	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:47	zmc_m3		17397	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:44	zmc_m5		17550	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:44	zmc_m4		26312	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:43	zmc_m2		17346	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:42	zmc_m6		17610	WAR	ImageBufferCount 20 is too small. Needs to be at least 191. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:31	zmc_m1		21559	WAR	ImageBufferCount 20 is too small. Needs to be at least 272. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:23	zmc_m6		17610	WAR	ImageBufferCount 20 is too small. Needs to be at least 151. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
2020-08-25 11:26:20	zmc_m3		17397	WAR	ImageBufferCount 20 is too small. Needs to be at least 174. Either increase it or decrease time between keyframes	zm_ffmpeg_camera.cpp	951
I using hikevision cameras and codec is set to H264+. Compared to H264 where i can set the keyframe intervall zmc needs less (~30%) cpu using this codec and the recorded files are very small and with good quality.
10 min ~40-60MB in 4K. All recordings are done in passthrough mode.
Setting the buffer to 280 is not possible with 7 4K cameras and 32BG Ram.
So far I have not noticed negative impact of using my setup but I just started 2 days ago with new Hardware.
What could happed if I just ignore this warning?
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ImageBufferCount is too small.

Post by iconnor »

The issue is that an mp4 video needs to start with a keyframe. So we have to store in ram all frames since the last keyframe. h264+ has a very long keyframe interval.

So what can happen is an alarm may happen and we won't have buffered enough frames to start the video recording until we get a keyframe. So you may not record the alarm.

Eventually ZM will consume a lot less ram and will be able to buffer these with impunity. But for now if you want to store h264+ you really need lots of ram.
tomcat84
Posts: 39
Joined: Fri Jul 03, 2020 11:24 pm

Re: ImageBufferCount is too small.

Post by tomcat84 »

Ok ty for the explanation.
In Mocord mode the warning also appear.
To my understanding in this mode it doenst realy matter right. The only time where I could loose frames is from one Interval to the next right?
Locked