Hikvision IPcamera with RPI 4 as NVR

asura

n3wb
Mar 31, 2024
3
0
saudi
Hi,

I'm very new in this scene and forum, I'm trying to setup my very first IP camera for my home (outdoor). I'm planning to get a Hikvision DS-2CD2043G2-I(2.8mm) with TP-Link TL-SG1005P POE switch and setup scrypted NVR on my Raspberry PI 4B.
I understand that Dahua is the most recommended here in the forum, but it is sadly not available at reasonable price where I live and Hikvision dominate the market here.

However I do have many questions, Does my setup even work or do I have to get Hikvision NVR for the camera to work? Is the my RPI 4B powerful enough to run 1440p 20fps stream into a HDD or do I need a different hardware?

I have looked at multiple places and only found partial answers or just direct guide on how to setup NVR software on the PI without answering if a NVR hardware is needed or not.

Places I looked at:

 
If you are not afraid of someone grabbing your camera, hell take camera with sd slot of 512GB, itll have few days of recording if its non stop motion.
 
If you are not afraid of someone grabbing your camera, hell take camera with sd slot of 512GB, itll have few days of recording if its non stop motion.
I'm looking into storing the video files into an HDD attached to my Raspberry PI 4B and not into an SD Card attached to the camera.

Based on my knowledge microSD cards have lower lifespan than HDD/SDD storage.
 
Last edited:
Did you succeed?
Well short answer is yes. But, I would not recommend buying a RPI to use as NVR as other hardware is much better and cheaper to use for this goal.

I managed to do this by install RPIOS and frigate as docker container. I used an external 3.5 HDD with an enclosure to store the footage. However, the downside here is I keep running out of RAM with this setup (even though my RPI 4B has 8GB of RAM) from frigate using too much RAM then crashing the RPI every two or three days. So, I had a cronjob restart the docker container every 12h to prevent the crash. I have reached out to frigate github about this issue, but I didn't find a clear answer on how to solve it from their answers other than changing some of my hardware, which I don't plan to.
 
Well short answer is yes. But, I would not recommend buying a RPI to use as NVR as other hardware is much better and cheaper to use for this goal.

I managed to do this by install RPIOS and frigate as docker container. I used an external 3.5 HDD with an enclosure to store the footage. However, the downside here is I keep running out of RAM with this setup (even though my RPI 4B has 8GB of RAM) from frigate using too much RAM then crashing the RPI every two or three days. So, I had a cronjob restart the docker container every 12h to prevent the crash. I have reached out to frigate github about this issue, but I didn't find a clear answer on how to solve it from their answers other than changing some of my hardware, which I don't plan to.

Thanks a ton for your quick response. I really appreciate this. I will check for compatible nvr for my c6n ezviz wifi cameras.