Raspberry Pi 4 with 8 RTSP cameras - monitor only

Previous development branch now released as 1.36
Locked
angeloavv
Posts: 1
Joined: Fri Jul 03, 2020 8:47 am

Raspberry Pi 4 with 8 RTSP cameras - monitor only

Post by angeloavv »

Hello everyone, I'm trying to build a surveillance system based on ZoneMinder and RTSP cameras that will be integrated in a domotic environment.

Basically, what I'm trying to achieve is this:
- Each user can own a set of cameras (max 8 cameras), each camera streams in RTSP to zoneminder local server
- The zoneminder application is configured to monitor the stream of each camera only, zm will not save the stream and won't perform motion detection, only monitoring
- The zoneminder local server connects itself to a remote server through reverse tunneling and streams each camera to the remote zoneminder server
- The domotic application (Android and iOS) access to the remote server to serve the stream to the end user

I successfully created the whole project using a single camera and two Intel Core i3 machines located in different areas for testing purposes.
Now I need to do load tests using the maximum amount of available cameras and using the cheapest local server hardware that can be installed over the client.

Doing some research, I read that some people successfully created a zoneminder setup on a Raspberry Pi 3 and 4 using something like 3 or 4 cameras. Since those people were using zoneminder for recording purposes, they said they were limited by disk performance.

I was wondering if anyone has already created a setup with something like 8 cameras connected over RTSP. I need to understand if the Raspberry Pi 4 can handle the loads of 8 cameras or it's better to buy better hardware like Intel Atom based NUCs. I wanted to hear your opinion before wasting money on hardware that won't be enough to handle the whole project.

Thank you.
User avatar
iconnor
Posts: 3335
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Raspberry Pi 4 with 8 RTSP cameras - monitor only

Post by iconnor »

You might be able to do it with a pi4, as it has more ram.
User avatar
burger
Posts: 458
Joined: Mon May 11, 2020 4:32 pm

Re: Raspberry Pi 4 with 8 RTSP cameras - monitor only

Post by burger »

Personally I'd lean towards the x86 architecture, but if you want to test it out, buy one RPI 4 with at least 4GB preferably 8GB ram, and see how it turns out.

You could probably do it at a low res / fps. You have to adjust gpu_mem (https://wiki.zoneminder.com/Single_Board_Computers)
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
Locked