Storing video with minimal CPU use and no motion detection from 15 cameras

I’ve setup HA on a small Intel NUC. It works brilliantly except I’ve now got a need to capture video from the 15x cameras that I have, and store it.
There’s no motion detection required, purely saving the H264+ stream for 30 days on rotation to my NAS (over SMB or NFS). I was looking at a shell script with ffmpeg but it seemed a bit too clunky.

The cameras are HikVision IPC-T250H, but I’ve just been using the RTSP connection to them.

It’s an el-cheapo i3 CPU, which works just fine for showing all the cameras in HA for real-time viewing, it’s just the storage that I want to sort out. Every time I do something else like MotionEye it turns on a bunch of AI stuff that just CHOKES the CPU even with a few of them, let alone 15.

Any recommendations on how best to handle that, and have them ideally rotating the saved video after 30-odd days worth would be greatly appreciated. Thanks :slight_smile:

15 cameras would choke an i5 and possibly an i7. I think you might need some new hardware. Possibly look into frigate with a coral usb or a dedicated NVR

EDIT: I Have an i5 with 6 cameras using frigate with an coral usb, storing everything for 14 days on a separate NAZ and I’m sitting around 15-20% CPU on average with peaks and valleys between 10 and 40%.

1 Like

When I was (edit: capturing) with ffmpeg over an ssh session, dumping it straight to disk it wasn’t too bad for just one camera, never using over 3%. Just wondered if there was a better solution than simply using shell scripts is all.

I think that storing image via NFS share will be the best.
Next you can turn on smart events on the camera like line crossing, motion detection, person detection, face detection etc. and send notyfication to HA. You will have date and time of event occurent that you can send from HA to mobie device.

Third step will be retrive image/video from notification or NAS and attach to message that HA send to mobile device.