I’m running 4 rtsp cameras with motion detection and recording on a normal rpi 3 without any performance issues.
I struggled at the beginning and thought the performance is not sufficient, but it was just the wrong settings I used. for example:
I allocated too many frames before and after a motion event to be recorded (20-50 frames in memory), as I thought motionEye will need this to respond in time and not to loose frames
I had the frame rate on my camera’s very high to ensure I capture all frames ( I still had dropped frames)
I used a remote storage for my video files, as I did not want my SD card to be corrupted
With the above settings I was able to setup 2 camera’s with good performance but was not happy with that result. I did below steps to optimize my systems.
I did a full re-install of motionEye on a dedicated rpi3
I configured 1 rtsp camera
— >with HD resolution
—> set the frame rate to 20 frames
—> set Keyframes to every 5 frames
I kept the standard motionEye parameters and only changed
–> detect motion within 3 frames
–> number of leading frames 3
–> silence between frames (for new motion) = 10 frames
–> store the video on SD card for 1 week
–> disabled pictures and streaming
–> configured webhook to send the filename to NR when a motion was detected
I kept these settings for a few hours and the results were great. All my motions were detected and correctly recorded. The utilization of the rpi was under 10%
I added a second camera with the same settings and had the same good results with only a slight increase to the system load
I did the same for camera 3 & 4 and it works like a charm for all cameras. My system load is now at 50% when no motion is detected and about 75-80% when 2 or 3 cameras are getting motion detected and recording the stream.
On rare occasions I have motion detection on all camera’s at the same time and the load is going to 100% resulting in frames dropped, but this is something I can live with.
I’m sure there can be further optimization for motionEye or on the rpi but I’m no exert and found these settings working for me on trial and error.
My recommendation: Don’t try to tweak motionEye too much as it is very performant.
Ok, I’ve just installed and configured my camera, and it’s working ok on my sidebar. But please, could you provide any simple example of how to show the stream inside a card on lovelace home screen? I mean, is it possible? Sorry for the dumb question, I’m new to all of this…
I started having a problem with my cameras a few days ago. I logged into motionEye via the web interface. Normally it would show live images from my cameras, now all I get is the spinning wheel it shows when trying to load the streams.
I’ve had this setup working rock solid for the last 3 months, so I know none of the config changed for motionEye and I’m the only one who knows how to log into it.
I’ve also noticed this in the motionEye log:
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
ERROR: failed to mount smb share “//192.168.10.33/share_folder” at “/media/motioneye_192_168_10_33_share_folder_username”
I’m having the same issue although I was running motioneye as a seperate docker image(My setup is I3 Nuc with Ubuntu 18.04 running Hassio in docker, motioneye in docker as well as a few other images off the host) . I also tried installing the hassio addon version of motioneye and adding my rtsp feeds into that, with the same result. Maybe FFMPEG updatd and broke it or something, I’m really not sure.
hello, I am experiencing the same problem when I go to the motioneye card where my cameras are configured, the loading circles rotate without loading anything, the strange thing that this happens only from the smartphone because with the desktop PC it works regularly.
motion eye stopped working after updating to hassio 0.97, also tried updating motioneye to latest version 0.5.1.
loading circles rotate without loading anything.
The video is still working in the background as motion detection is still working and recording videos, streams work on VLC etc, but when trying to view on the main Motioneye screen I just get the loading circles.