Glam Prestige Journal

Bright entertainment trends with youth appeal.

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.

1 Answer

Why don't you use only openRTSP, with the suitable options?

$ openRTSP -D 1 -c -B 10000000-b 10000000 -q -Q -F ip_cam -d 28800 -P 900 -t rtsp://

Some options explained:

 -D 1 # Quit if no packets for 1 second or more -c # Continuously record,after completion of -d timeframe -B 10000000 # Input buffer of 10 MB -b 10000000 # Output buffer 10MB (to file) -q # Produce files in QuickTime format -Q # Display QOS statistics -F ip_cam # Prefix output filenames with this text -d 28800 # Run openRTSP 28800 seconds -P 900 # Start a new output file every 900 seconds -t # Request camera end stream over TCP, not UDP (slower but packets are checked) rtsp:// # Camera's RTSP URL

That works for me, using an iegeek g20 ip camera and an old rpi 2, it listens for streams and records them into separate files. A kind of ghetto cheap rpi nvr. There several different configuration and options I don't use, just explore them.

Or alternatively you could use ffmpeg

ffmpeg -i "rtsp://" -c copy -reset_timestamps 1 ip_cam_file.avi

Remember you can change the resolution here changing from 11 to 12 in the rstp address.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy