yankee14 / surveillance

Manage RTSP (surveillance) video stream using FFmpeg and BASH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFMPEG Surveillance Camera Manager

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.

USAGE

  1. Edit user_settings.sh to insert your RTSP URLs, storage directories, etc.
  2. Run rtsp_ffmpeg_bash.sh
  3. optionally create system service

UNDER THE HOOD

1. TRIAGE

  • 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.

2. BASIC COMPRESSION, CONCATENATION

  • Concatenate video streams for long term storage
  • Duration? Filesize?
  • Compression level?
  • Save to non-volatile memory

3. PANELIZE VIEW

  • Live stream to monitor
  • e.g.:

About

Manage RTSP (surveillance) video stream using FFmpeg and BASH


Languages

Language:Python 100.0%