No data at end of each section of recording

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
rob1234
Posts: 4
Joined: Fri Jun 12, 2020 3:13 pm

No data at end of each section of recording

Post by rob1234 »

Hi All,

Wanted to send out thanks to the developers of Zoneminder. Keep up the good work.

I am new to Zoneminder. I am currently running Zoneminder 1.34.16 and I am having issues with no-data at the end of each section of recording. My section length is set to the default 600 seconds for each of my three camera's and they are set to Mocord. I have noticed that I am missing the last 1 or 2 minutes of data in each section in the montage review. Have experimented with different section lengths and other settings with no success. Have tried Zoneminder on 1.34.15 on Ubuntu 18.04 and 1.34.16 and 1.34.15 on Ubuntu 20.04. All have the same problem. I am seeing nothing in the logs to indicate a problem in Zoneminder.

I am running it as a VM in the latest version of Proxmox. Perhaps this is the problem and I should be running it bare metal? I am not using containers as I have heard that this might cause issues.

Just wondering if anyone else is experiencing this with the latest versions. If no one is its probably related to my Proxmox virtual machine server setup. Maybe I should trash the new server and dust off the old Rasp Pi 4? :D
User avatar
burger
Posts: 475
Joined: Mon May 11, 2020 4:32 pm

Re: No data at end of each section of recording

Post by burger »

What is the make / model of camera?

What are the camera settings in ZM?

VM is going to be more overhead. Not ideal. May be worth trying in bare metal, or alternatively adjusting settings either on camera webpage, or on ZM.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
rob1234
Posts: 4
Joined: Fri Jun 12, 2020 3:13 pm

Re: No data at end of each section of recording

Post by rob1234 »

I am using a foscam and two other cheap ip cameras think they are Easyn. Same problem on all 3 camera's.

The cameras are set up a at 10 fps and 8 fps. Zoneminder it is trying to save 284 frames at 10 fps and 238 at 8 fps every 10 minute section when there is no motion. It looks like its always the very last bulk save of frames that's the problem it only saves 1st frame and all the other frames are lost/dropped to the end of the section. I see frame not found messages in log when I try to view these missing frames in montage review or event-id / frames. All other frames before the last bulk save of 100 are saved.

I have frame skip set to 20 so as to not fill up my HD have set this to 0 as a test as well with same issue.
rob1234
Posts: 4
Joined: Fri Jun 12, 2020 3:13 pm

Re: No data at end of each section of recording

Post by rob1234 »

Went ahead and tried it bare metal on an old tablet I had kicking around with Ubuntu 20.04. Same problem appears it throws away remainder of last 100 frames at the end of each 10 minute section. Increasing the frames stored helps because its just the last remainder below 100 frames that do not get stored. When I change my frame skip to 0 rather than 20 I still loose it stores 5982 frames over 10 minutes and pitches last 82 frames better than 284 frames and pitching 84 or so over 10 minutes (few seconds rather than a couple minutes). Suppose increasing section length would minimize problem as well. Appears that it might be a glitch.
rob1234
Posts: 4
Joined: Fri Jun 12, 2020 3:13 pm

Re: No data at end of each section of recording

Post by rob1234 »

Think I figured it out this morning. Dug into settings a bit in zoneminder and found this one under Config > BULK_FRAME_INTERVAL changed it from 100 to 1. Seems to work great now with Mocord and no frames are lost at end of each section! Will test it out for a week or two.
User avatar
iconnor
Posts: 3366
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No data at end of each section of recording

Post by iconnor »

So the bulk frame setting is to record an image when there is no motion happening. by setting the interval to 1 instead of 100, you will be recording every single frame of non-motion. Which will increase your db load/size considerably.

The bulk frames code is a bit hairy. I'll investigate and try to wrap my head around it.
Post Reply