Troubleshooting two cameras that won't work at the same time [Solved]
Troubleshooting two cameras that won't work at the same time [Solved]
I could need some help with troubleshooting an issue configuring two cheap aliexpress cameras to work at the same time.
They both work if only one is connected. If both are hooked up only one will show video and record events.
I´ve tried reducing the resolution of the stream to all the differnent ones reading that it might be a memory issue but it doesn't help.
I have one camera with green name, function(modect) and source and it is recording and showing events. The second camera has red name and source while function (modect) is green...?
I then disconnect the first camera and then the second camera turns all green and start recording events.
Could it be some confict in the setup?
Running ZM v1.34.16 on a raspi 4 (4GB) running Raspberry Pi OS booting from a 250gb SSD.
/dev/shm: 10%
grabbing the stream url from onvif device manager they look something like this:
camera1: rtsp://10.0.0.10:554/user=admin_password=xyz987_channel=0_stream=0.sdp?real_stream
camera2: rtsp://10.0.0.11:554/user=admin_password=abc123_channel=0_stream=0.sdp?real_stream
cheers
They both work if only one is connected. If both are hooked up only one will show video and record events.
I´ve tried reducing the resolution of the stream to all the differnent ones reading that it might be a memory issue but it doesn't help.
I have one camera with green name, function(modect) and source and it is recording and showing events. The second camera has red name and source while function (modect) is green...?
I then disconnect the first camera and then the second camera turns all green and start recording events.
Could it be some confict in the setup?
Running ZM v1.34.16 on a raspi 4 (4GB) running Raspberry Pi OS booting from a 250gb SSD.
/dev/shm: 10%
grabbing the stream url from onvif device manager they look something like this:
camera1: rtsp://10.0.0.10:554/user=admin_password=xyz987_channel=0_stream=0.sdp?real_stream
camera2: rtsp://10.0.0.11:554/user=admin_password=abc123_channel=0_stream=0.sdp?real_stream
cheers
Last edited by Grewen on Thu Sep 03, 2020 10:08 am, edited 1 time in total.
Re: Troubleshooting two cameras that won't work at the same time
Can you configure both monitors to look at one camera and see how it behaves.
-
Re: Troubleshooting two cameras that won't work at the same time
What's the lowest resolution and frame rate the cameras can produce? is it at the level the Pi should cope with?
-
Re: Troubleshooting two cameras that won't work at the same time
Maybe they have the same mac address?
Re: Troubleshooting two cameras that won't work at the same time
Can you post logs?
It's a very strange problem.. try to configure and add third camera to zoneminder. If you don't have other cameras available you can install an application that transform your smartphone in ip camera and attach it to zoneminder (via wifi) to see if the problem is your zoneminder installation or if those "strange" cameras are the problem.
It's a very strange problem.. try to configure and add third camera to zoneminder. If you don't have other cameras available you can install an application that transform your smartphone in ip camera and attach it to zoneminder (via wifi) to see if the problem is your zoneminder installation or if those "strange" cameras are the problem.
Production: zm 1.34.26 - Debian 11 | Test: zm 1.36.33 - Debian 12
Re: Troubleshooting two cameras that won't work at the same time
You didn't mention what FPS you are running. Lower FPS to something like 5 to start.
https://wiki.zoneminder.com/Single_Board_Computers
RPI is limited. Not a good place to start with ZM. Lower FPS, lower resolution. Don't use 'cheap aliexpress cameras'. That is a recipe for disaster. Start with Monitor, not Record, or Mocord, etc.
https://wiki.zoneminder.com/Single_Board_Computers
RPI is limited. Not a good place to start with ZM. Lower FPS, lower resolution. Don't use 'cheap aliexpress cameras'. That is a recipe for disaster. Start with Monitor, not Record, or Mocord, etc.
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
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
Re: Troubleshooting two cameras that won't work at the same time
Can you confirm you have set this on the cameras, not ZM.
Then have you validated the camera output? VLC, ffprobe or whatever will do this.
-
Re: Troubleshooting two cameras that won't work at the same time
I have seen this problem on Raspberry pi as well. What worked for me was increasing the amount of memory allocated to the GPU, a setting that can be modified using the raspi-config command, advanced options, memory split. I allocated 256 meg on my Pi 4 and I can support three cameras with that at 6 frames per second
Re: Troubleshooting two cameras that won't work at the same time
YES! This solved it. Default was set to 64. I upped it to 512 and now they both work at 960p (dev/shm at 11%). Also checked with zmninja and it worked too.Beetleboy wrote: ↑Wed Sep 02, 2020 12:50 pm I have seen this problem on Raspberry pi as well. What worked for me was increasing the amount of memory allocated to the GPU, a setting that can be modified using the raspi-config command, advanced options, memory split. I allocated 256 meg on my Pi 4 and I can support three cameras with that at 6 frames per second
Thanks to all for your help!
Re: Troubleshooting two cameras that won't work at the same time [Solved]
Just an update. Now running 3 cameras, all connected through WiFi, including the raspberry. I upped the split memory to 800 (going above will crash the raspberry)