raspi + uv4l + rpi cam + zoneminder not working

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
mirco
Posts: 3
Joined: Thu Dec 19, 2024 10:19 am

raspi + uv4l + rpi cam + zoneminder not working

Post by mirco »

All, I think I have a very basic and simple setup but fail to get it working. See what I have:

Raspi with bullseye 32 Bit running uv4l service, stream work great with URL like http://ip:8080/stream (mjpeg)
zoneminder 1.36.33 running on another pi.

I was following diverse tutorials to add the cam as following:
general: remote + modect
source: http + simple + hostname is the IP + port is 8080 path is "stream". Resolution exactly as set up in uv4l server

error log shows:
Monitor shm is not connected
Can't open memory map file /dev/shm/zm.mmap.1: No such file or directory --> checked, it is there and has proper attributes

Running out of ideas here as all the tutorials simply tell the settings as I have them. Any idea from you folks here?
User avatar
burger
Posts: 442
Joined: Mon May 11, 2020 4:32 pm

Re: raspi + uv4l + rpi cam + zoneminder not working

Post by burger »

Can you view the stream in ffprobe / ffplay? If you like, you can post images of your settings. Maybe something will stand out. If you post images of the settings, and an ffprobe on the URL, that might be useful.

I wrote a reference here: https://wiki.zoneminder.com/Finding_Camera_Stream_Paths

You should probably use ffmpeg not remote.

The installation guides to follow are on the wiki at wiki.zoneminder.com/Debian wiki.zoneminder.com/Ubuntu.

I seem to recall some gotcha with using mjpeg-streamer and a webcam. So use ffprobe/ffplay and see what that says. Maybe it was that the URL had to be different from the webpage... If that's the case, you might be able to load the stream itself (not the mjpeg-streamer webpage) by right clicking on view images and use that URL. I don't know if what you are using is mjpeg-streamer based or not. I'm not familiar with uv4l.
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
Post Reply