blakeblackshear.frigate/frigate
Francesco Durighetto 4c689dde8e
Add optional idle heartbeat for Birdseye (#20453)
* Add optional idle heartbeat for Birdseye (periodic frame emission when idle)

birdseye: add optional idle heartbeat and FFmpeg tuning envs (default off)

This adds an optional configuration field `birdseye.idle_heartbeat_fps` to
enable a lightweight idle heartbeat mechanism in Birdseye. When set to a value
greater than 0, Birdseye periodically re-sends the last composed frame during
idle periods (no motion or active updates).

This helps downstream consumers such as go2rtc, Alexa, or Scrypted to attach
faster and maintain a low-latency RTSP stream when the system is idle.

Key details:
- Config-based (`birdseye.idle_heartbeat_fps`), default `0` (disabled).
- Uses existing Birdseye rendering pipeline; minimal performance impact.
- Does not alter behavior when unset.

Documentation: added tip section in docs/configuration/restream.md.

* Update docs/docs/configuration/restream.md

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>

* Update docs/docs/configuration/reference.md

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>

* Refactors Birdseye idle frame broadcasting

Simplifies the idle frame broadcasting logic by removing the dedicated thread.

The idle frame is now resent directly within the main loop,
improving efficiency and reducing complexity.  Also, limits the idle
heartbeat FPS to a maximum of 10 since the framebuffer is limited to 10 anyway

* ruff fix

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
Co-authored-by: Francesco Durighetto <francesco.durighetto@subbyx.com>
Co-authored-by: duri <duri@homelabubuntu.durihome.unifi>
2025-10-19 05:20:36 -06:00
..
api Change clean snapshots from png to webp format (#20484) 2025-10-14 07:08:41 -06:00
camera Change clean snapshots from png to webp format (#20484) 2025-10-14 07:08:41 -06:00
comms Review genai improvements (#20387) 2025-10-08 14:55:04 -05:00
config Add optional idle heartbeat for Birdseye (#20453) 2025-10-19 05:20:36 -06:00
data_processing Ensure that a negative score can not be sent (#20483) 2025-10-14 07:52:34 -05:00
db
detectors Improve Intel Model (#20541) 2025-10-17 06:31:28 -06:00
embeddings Fix audio transcription (#20395) 2025-10-08 18:06:03 -05:00
events Change clean snapshots from png to webp format (#20484) 2025-10-14 07:08:41 -06:00
genai Map verified objects to their sub label directly (#20413) 2025-10-10 08:07:00 -05:00
images
motion
object_detection
output Add optional idle heartbeat for Birdseye (#20453) 2025-10-19 05:20:36 -06:00
ptz
record Improve recording retention logic (#20506) 2025-10-15 11:09:28 -06:00
review Map verified objects to their sub label directly (#20413) 2025-10-10 08:07:00 -05:00
service_manager
stats Add support for Intel NPU stats (#20542) 2025-10-17 08:06:41 -05:00
test Improve recording retention logic (#20506) 2025-10-15 11:09:28 -06:00
track Change clean snapshots from png to webp format (#20484) 2025-10-14 07:08:41 -06:00
util Add support for Intel NPU stats (#20542) 2025-10-17 08:06:41 -05:00
__init__.py
__main__.py
app.py
const.py
ffmpeg_presets.py use f strings for qsv presets (#20489) 2025-10-14 13:13:26 -06:00
log.py
models.py
mypy.ini
plus.py
storage.py
timeline.py Fix timeline attribute assumption (#20555) 2025-10-18 22:31:55 -05:00
types.py
video.py
watchdog.py