Skip to content

Guardian Eye 4.0.2

Latest

Choose a tag to compare

@getguardianeye getguardianeye released this 12 Nov 14:16

Guardian Eye v4.0.2

This release covers everything since 4.0.1: a lighter and sharper live preview, fewer camera connections and less processing, ONVIF profile details, and fixes for Wi-Fi, USB, Windows, macOS and MCP.

What's New

🖼️ 1. Live preview from the main stream, with your choice of stream

  • A camera with a detection sub-stream now shows its main stream in the preview, instead of the small sub-stream picture (for example 480x360). Detection keeps working on the detection stream.
  • Choose the viewing stream per camera. A View choice (Video or Detection) in the camera dialog and in the setup wizard (Camera setup step) sets the image source of the camera card and the expanded view. It is offered only when the video and detection streams differ, Video is the default, and recording and analysis sources stay as configured.
  • The preview is encoded at the size the camera is shown at. A maximized camera is no longer stretched from a small picture; the size follows the largest place the camera is shown in, between 640x360 and 3840x2160, and changes once it has settled.
  • AI detection boxes are drawn on the main-stream picture. A box stays on screen for 1.2 to 2 seconds depending on how often new AI results arrive, an empty result clears the boxes, boxes are clipped at the picture edge, are drawn at the shown size and no longer fade.
  • The zone editor keeps working on the detection stream while it is open, and the camera returns to its saved viewing choice afterwards.
  • A main stream that keeps dropping right after its first frame no longer makes the preview jump between the main stream and the sub-stream: the next attempt is held off for one second at first, twice as long each time, up to 30 seconds.

⚡ 2. Lighter on cameras, CPU and memory

  • One connection instead of two for RTSP cameras that have no separate detection stream. When the detection stream is the main stream (or not set), preview and detection are fed from the connection that already records, so the camera is no longer pulled twice. Doubling the traffic was enough to stall reads on a busy Wi-Fi link and make every camera reconnect. A camera with a distinct detection stream keeps two connections: the main stream for recording, live streaming, sound and preview, and the detection stream for detection.
  • Preview frames are prepared only for cameras that are on screen. The preview stops 30 seconds after the last place showing the camera is closed or minimized; the last picture and the signal indicator stay, and detection in the camera process is not affected. With the window minimized, camera processes used about a third less CPU and about 570 MB less memory in a measured run.
  • The preview picture is made smaller before it is converted, not after: a 4K camera no longer copies and converts the whole frame for a small preview. Detection, event snapshots and recording still get the original frame.
  • AI model threads no longer spin between runs in every camera process; in a measured run with six cameras the total camera-process CPU fell from 283% to 205%.
  • Hardware-decoded frames are brought to CPU memory only when something wants them, which cut transfers by 4-48% per camera in a measured run on macOS.
  • Cameras start together faster. Camera processes no longer wait for a secret-exchange key one after another: with five cameras the wait before each camera is served fell from 0.4-2.0 s to about 0.2 s, and cameras no longer appear to start one or two at a time.
  • Startup concurrency follows the processor. Camera start and AI model loading use two thirds of the available processors, at least two.

🎚️ 3. ONVIF profiles: frame rate, bitrate and audio

  • Camera discovery reads more of each ONVIF media profile: the frame rate and bitrate limits of the video encoder and the audio encoder (codec, sample rate, bitrate), for both older and newer ONVIF profile types; cameras that report the audio values in different units are read correctly.
  • Saved with the camera. A saved profile keeps its frame rate, video bitrate and audio details, whether set in the camera editor or through MCP, and re-saving a camera does not drop them. The crop area and rotation of each profile are saved too. A USB camera keeps the capture formats found when it was added.
  • A startup log line shows what each camera starts with: its video, detection, preview and sound streams with the size, codec, frame rate, bitrate and audio of their saved profiles (or the formats of a USB camera). Stream addresses carry no credentials.
  • The MCP camera probe reports the new profile fields.

🎥 4. Separate recording stream disabled

  • A separate recording stream is turned off. Recording, preview and snapshots always use the camera main stream. A recording stream that could only be set through MCP stream-role assignment no longer replaces the main stream: the recording role follows the live role, and the media profile list marks the live profile as the recording one.

🔌 5. MCP server updates

  • Fixed: changing the main stream address with camera.update kept the camera without credentials and the camera answered 401 on the next start; the new address now takes the stored credentials, as the detection and sound streams already did.
  • Fixed: camera.get_diagnostics always reported a frame rate of 0; it now reports the decode rate of the camera process, and a camera that is starting with live media reads as connected. Bitrate, dropped frames and uptime are still reported as 0.

🧰 6. Windows installer and startup

  • The uninstaller waits for Guardian Eye to exit (up to 30 seconds, counting every process started from the installation folder) before removing files and data, stops what is left, and keeps your data if processes are still running. Previously files stayed behind and the next install could fail to open the event store and exit at start.
  • When Guardian Eye cannot start, a message box tells you why and where the log folder is, in your language when localization is available, instead of the process ending silently.
  • Every setup message is translated into all 18 languages, including the desktop icon, launch and uninstall shortcut texts; Hindi, Thai, Vietnamese and Indonesian screens no longer fall back to English, and the Start with Windows task is translated.

Fixes

Recording and capture

  • Fixed: short Wi-Fi gaps no longer tear down an RTSP connection; an established read now waits five seconds instead of one, so busy links stop reconnecting in a loop while a dead stream is still noticed quickly.
  • Fixed: a loose USB cable that drops frames for a few seconds no longer replaces the camera process (which reloaded its models and left a black picture for ten to twenty seconds); the camera reopens in the same process, and an empty USB session recovers at once.
  • Fixed: a recording could end while the camera still held an ONVIF event, because preview size and rotation updates reset the open event; an open event is now kept across unrelated updates.

Preview and detection boxes

  • Fixed: AI box coordinates are now normalized by the actual content size of the letterboxed model input, so boxes line up with the picture.

Notifications

  • Fixed: Windows desktop notifications never appeared on a fresh machine, because missing notification settings were treated as blocked; they now count as enabled until Windows has created them.

macOS

  • Fixed: Mac App Store build capture processes keep their sandbox context, and capture and relay sockets fit within the sandbox path-length limits.
  • Fixed: the shared rolling log is synchronized inside the App Sandbox, and an unsolicited worker startup check at launch was removed.

Technical Details

Architecture & Internals
  • The secret-exchange RSA-3072 key is now one per worker process (CaptureWorkerSecretExchangeKey), owned by the host runner and generated once in the background under its own lock; a failed generation is retried by the next registration, and a key finished after disposal is released at once. Clients fetch the key right before each registration. The IPC security notes in docs/architecture/capture-worker-ipc.md record why exposure does not widen.
  • Preview and detection read the recording connection's encoded-video tap (RecordingTapCaptureService) when the detect stream resolves to the main one over RTSP; a tap that refuses the stream twice sends the camera to its own connection for five minutes, and a tap that delivered nothing is not asked again for 30 s. The tap decoder outputs the decoder's own layout through the shared DecodedFrameExtractor, with pooled exact-length arrays under a byte budget.
  • A camera holds a viewer lease for each place that shows it (grid card, maximized view, strip thumbnail); the preview subscription opens with the first lease and closes 30 s after the last one. The preview size travels in the runtime policy and is applied live; a JPEG above the 8 MiB transport limit is re-encoded at lower quality, then smaller. The preview copy is downscaled plane by plane in its own pixel format.
  • PreviewPolicy.DetectionStream holds the preview on the detection stream while the zone editor is open; hand-overs change the source and epoch under one lock, and detection frames are told by runtime and preview epoch together.
  • Boxes are scaled directly from the detection frame to the main picture; the image-geometry calibration (PreviewStreamAlignment, PreviewImageMatcher, optional ONVIF geometry carried per profile) is built and stays inactive, and diagnostics are logged at Debug with state changes at Information.
  • OnvifEncoderSettingsParser reads frame rate, bitrate and audio by local name for Media1 and Media2 profiles; the settings JSON carries them, so the database schema does not change. RecordConnectionString always reads null and ignores writes; the Record role follows Live (to be removed after 4.0).
  • Startup concurrency uses StartupConcurrency for CameraStartConcurrency and ModelLoadSlots; ONNX intra/inter-op threads no longer spin. The hardware tap separates receiving from preparing a frame.
  • Windows toast: ERROR_NOT_FOUND when reading settings counts as enabled and is logged once; any other failure is still a refusal. MCP camera.update stores the new main address with the stored credentials; fpsActual is the decode rate reported by the camera process, bounded to 0..240, and 0 when the last decoded frame is older than five seconds.
  • USB recovery stops the reader and the recording/audio resources under independent budgets and signals reader retirement before returning no-owner; the no-frame deadline and the reader stop budget are five seconds, and an uncertain reader stop still replaces the process.
Build & CI
  • macOS: one signing entry point with an explicit bundle, identity and optional notarization skip; Stage and Production check the signed worker's control listener and cooperative shutdown after signing (--ci-preflight in the local rebuild); a local App Store sandbox rebuild and launch script; the release picks the newest App Store build within the chosen version.
  • Windows: Test-Sandbox.ps1 checks the setup in Windows Sandbox (non-admin token, no Visual C++ Redistributable, silent install and uninstall) before a Store submission; the Microsoft Store document records the 4.0.1 submission.
  • The MCP test stand runs its pipeline scenarios on Env.System tools instead of shell commands, with new main and detection stream cases and five-camera load scenarios; the gunshot fixture is replaced with a real pistol shot.