Expand description
Dual / mirror recording: a SECOND, supervised ffmpeg pipeline per mirror_enabled camera that
writes byte-identical segments to HELDAR_MIRROR_RECORDINGS_DIR/{camera_id}/ (a redundant DVR
copy on a separate volume). It reuses the recorder’s [build_record_command] with the output dir
swapped, so the mirror files are indistinguishable from the primaries (same names, same codecs).
The manager is created (and held as Option on [AppState]) only when the mirror dir is
configured. It is a SHADOW of the primary recorder: it never writes camera_status (the primary owns
that) and only mirrors continuously while a camera should_record() AND has mirror_enabled. The
mirror dir is NOT indexed (it is a cold redundant copy); restore/index is an operational step.
Structs§
- Mirror
Recorder Manager - Owns and supervises the per-camera mirror recorder tasks.