Manage multiple simultaneous RTSP video streams (e.g. surveilance footage) using FFmpeg and BASH.
The approach to managing the footage is to first acquire the footage raw, then gradually apply encoding and processing as CPU processing power permits.
- Edit
user_settings.sh
to insert your RTSP URLs, storage directories, etc. - Run rtsp_ffmpeg_bash.sh
- optionally create system service
- Acquire footage raw directly from stream
- Save to volatile memory
- No processing yet
- Split file every N1 seconds or N2 mebibytes
- Time sensitive action, such as scan for motion, neural network object classification, text message of still frame, etc.
- Concatenate video streams for long term storage
- Duration? Filesize?
- Compression level?
- Save to non-volatile memory