Open ghost opened 4 years ago
Actually I have realized what is going on: If you add a camera as remote motion eye camera that will never be saved locally and anything you change on either motions server will be the same on the other side. It seems there is no way in motioneye to be able to cascade the servers the way I thought this would work.
The current setup is
camera1 camera2 --- Site A --- Central site camera3
In this case Site A stores the recordings only. What I would like to accomplish is that the recordings are also stored on the Central side without rsync or other tools but only the recordings. Even if with the current setup I would rsync them from site A, every time you play a video from the Central site it will connect back to site A to fetch that video. Also from security perspective this is broken. If site A is compromised you have no clue what was going on.
As a possible solution I have discovered that motioneye can not just aggregate but restream on another port however when adding the restreamed motion-eye cameras to the Central site as regular "Network Cameras" all I get is gray area and no stream, while in the browser they are perfectly reachable.
This tunnel through solution between motion eyes to get files are seriously not good because the bandwidth between the 2 locations can be low. So for example your Central site is on 10Gbit link while Site A is on a 10mbit ADSL. If someone want to watch a video from the Central it's almost instant download while the remote motion eyes registered on the central site could take half an hour to pull that video from site A.
I have followed the official guide to install it on Debian. https://github.com/ccrisan/motioneye/wiki/Install-On-Debian
Version I using is the latest 0.42 what pip pulls down.
First issue is the process cannot be restarted because the pid gets created with wrong permission 666.
This can be easily fixed by modifying the startup script:
My second issue that no videos created. Since meye running as root and the directories exist. I have tried to restart the service multiple time, reenable movies multiple times, trying to change the codecs, nothing gets created. I also put it into continuous recording while playing with this which is indicated by red frame around the video. So it should record but it does nothing. FFMPEG is installed:
ii ffmpeg 7:4.1.4-1~deb10u1 amd64 Tools for transcoding, streaming and playing of multimedia files
Here is a camera config for example:
I see no useful info regarding to this in /var/log/motioneye.log.