Hit end of packetqueue before satisfying pre_event_count. Needed 5 more video frames

Post Reply
zemerdon
Site Admin
Posts: 239
Joined: Mon Jan 23, 2023 8:13 pm

Hit end of packetqueue before satisfying pre_event_count. Needed 5 more video frames

Post by zemerdon »

It means the key frame from the camera is leaving the buffer before the video is analyzed, the key frame is needed for analysis. I resolved this issue by decreasing the key frame interval on my cameras. Mine is now set to 1 key frame per second, the lowest setting on my cameras. It matches the FPS of the camera. For example, 10 FPS = key frame every tenth frame. 8 FPS = every eighth frame.
I also made sure my buffer was greater than the FPS.


I have not adjusted anything on the cameras, but I set the buffer in ZM to 50, and the errors have disappeared.
zemerdon
Site Admin
Posts: 239
Joined: Mon Jan 23, 2023 8:13 pm

Re: Hit end of packetqueue before satisfying pre_event_count. Needed 5 more video frames

Post by zemerdon »

+1 on checking top/htop.
ALso try lowering your analysis FPS - i have cameras outputting 25FPS but analyzing at 3FPS on zm.

Check top/htop before and after the changes to compare how your CPU is doing. Also notice your swap and memory.
Post Reply