Files
agent/machinery
Cédric VerstraetenandClaude Opus 5.5 a37c5b1623 Tell the Hub which settings come from environment variables
The agent applies AGENT_* (and, in ConfigMap mode, GLOBAL_AGENT_*)
environment variables again on every start. A remote-config change the Hub
saves to such a setting is written to config.json and then undone at the
next restart; in ConfigMap mode config.json is ignored entirely.

receive-config now carries "env_managed": {"all": bool, "paths": [...]}:
"all" in ConfigMap mode, and the JSON paths of the settings set by
environment variables (e.g. "capture.ipcamera.rtsp"), so the Hub can show
them read-only. It is omitted when no setting comes from the environment.

envConfigFields maps each AGENT_* variable to the Config field it sets;
tests keep it in step with applyAgentEnvVars.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:19:34 +00:00
..
2026-06-12 11:54:16 +02:00
2021-01-05 22:08:04 +01:00
2020-12-31 13:47:48 +01:00

Kerberos Open Source - Machinery

Kerberos Agent Kerberos Agent Twitter Widget Kerberos.io

PkgGoDev Coverage Status Coverage Status

License: MIT donate

Docker Hub | Documentation | Website

Kerberos Open source (v3) is a cutting edge video surveillance management system made available as Open Source under the MIT License. This means that all the source code is available for you or your company, and you can use, transform and distribute the source code; as long you keep a reference of the original license. Kerberos Open Source (v3) can be used for commercial usage (which was not the case for v2). Read more about the license here.

Security reporting

For sensitive vulnerabilities, use private disclosure channels documented in ../SECURITY.md.

WebRTC startup and keyframe recovery

Each H264 viewer waits until its WebRTC transport is connected and a fresh IDR arrives before receiving video. Reconnects, viewer PLI/FIR feedback, and a full per-viewer sample buffer reset that viewer's keyframe gate without stalling other viewers. Audio continues to use the existing independent sample queues. Each viewer's skipped and discarded video durations advance its RTP clock before recovery, without sending filler packets, so an IDR wait does not compress the video timeline relative to audio.

The main and sub streams request keyframes from their own RTSP sources. Viewer PLI and FIR feedback is translated into an RTSP PLI using the camera session's SSRCs, never forwarded with the browser's SSRCs. Requests are coalesced and limited to one per second per broadcaster, retrying while connected viewers still need an IDR. Requests stop once all waiting viewers receive an IDR or the broadcaster closes.

Camera support for RTCP PLI varies. Unsupported sources, cameras that ignore feedback, and failed requests fall back to the next periodic IDR; failures are logged as keyframe_request_failed. No encoder settings are changed. A camera with a long GOP can therefore still start slowly; configure a shorter IDR interval (for example 1-2 seconds) when camera feedback is unavailable, accounting for the bandwidth tradeoff. An isolated cached IDR must not be replayed followed by arbitrary live P-frames: the dependent reference chain would be incomplete.