ImageBufferCount is too small.

Forum for questions and support relating to 1.35.x development only.
Post Reply
tomcat84
Posts: 36
Joined: Fri Jul 03, 2020 11:24 pm

ImageBufferCount is too small.

Post by tomcat84 » Tue Aug 25, 2020 9:30 am

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: 1425
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ImageBufferCount is too small.

Post by iconnor » Tue Aug 25, 2020 12:40 pm

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: 36
Joined: Fri Jul 03, 2020 11:24 pm

Re: ImageBufferCount is too small.

Post by tomcat84 » Tue Aug 25, 2020 11:37 pm

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest