I have a couple of Eufy Cam 2 Pros. I want to record the RTSP streams to my NAS.
I have tried the built-in NAS service, which only works with synology, as well as many open source video recording software, but all have different problems.
I therefore want to use something simple & open source and record the camera streams to my generic internal storage.
The main issue seems to be the Eufy cam only streams video when it's internally triggered to save battery life.
Mostly through trial and error and countless hours I have managed to find a set of commands that can record the streams when they happen:
openRTSP -t -b 10000000 -B 10000000 -v -H rtsp://user:password@cam_IP/path | ffmpeg -i - -c:v copy cam_name-$(date +"%Y-%m-%d-%H-%M-%S").mp4
The issue is this errors and stops 'listening' if the stream isn't active. I was going to try to create a script that runs every few seconds and first looks to see if the openRTSP is already running before running openRTSP.
This seems like a very noob / inelegant solution, but I cannot find an openRTSP switch (or other solution) that just constantly listens for streams and records them to separate files when they are sent.
All help much appreciated.
Thanks.