Avla live view agent (Windows)

It is installed on a Windows computer on the same network as the recorder (NVR) at your venue. It finds the cameras by itself, sends the picture only while someone is watching, and keeps itself up to date. The package contains no password or key.

⬇ Download the agent Version 1.3.21 · 03.12.2026 · Windows 10/11
  1. Extract the downloaded zip file to a USB stick or the desktop.
  2. On the computer at the venue, double-click Kur.cmd in the folder.
  3. Approve the code shown on the screen in your Avla account. The cameras appear within a few minutes on the Live view page.

SHA-256: 7373b500c8ad3dbd7d04fb8c19530575e2f59c5de2c3214c622aee6f514d1d7e

Changes

Avla Live agent changelog

1.3.21 (2026-11-29) — fewer logins on the venue's NVR and cameras

  • At the venue (#65, XMEye NVR 192.168.1.169) every 30-min scan made 2 DVRIP logins (Ret 207 "user already logged in") next to the live RTSP stream, and the venue owner could not always sign in with the XMEye app. Stopgap until the stream itself is reworked: the agent logs in far less.
  • A known recorder (the last scan found its channels) gets the DVRIP channel-count login at most once a day; the last answer is kept in var\dvrip-state.json and reused. The first scan after the service starts, a changed host list and a changed device login (Avla panel) log in as before.
  • DVRIP Ret 205 is "account locked", no longer "auth_required": the agent does not connect to that address at all for 60 min (no DVRIP, no image settings job, no RTSP probe); the scan note says locked (Ret 205) until HH:mmZ.
  • The scan note keeps the DVRIP Ret code (207, 205, 106...) also when the channel probe decides the host, and says when a 207 was retried, so the server sees it. No passwords in the note or the state file (only a hash).
  • A device whose RTSP login gets 401 (Hikvision and the like) is tried at most once a day; in between the last result (auth_required) is reported again. A new password typed in Avla is tried right away.
  • dev\fake-dvrip.php: lock205 mode and numbered LOGIN lines; dev\login-limits-sim.ps1 simulates the scan rounds.

1.3.20 (2026-11-22) — camera image settings survive an NVR's "user already logged in"

  • At the venue (#65, NVR 192.168.1.169 channel 7) every image settings job of 22.11 17:38-17:50 UTC failed at the DVRIP login with Ret 207 ("user already logged in"). The job's login now tries again after Ret 207: 3 more tries, 2, 5 and 8 s apart (15 s of waiting at most, no loop); a 207 on the last try fails the job with the same error and back-off as before. Read, write and read-back still share one session, closed (logout + socket) on every way out.
  • The retry is one helper (Connect-DvripRetry, service\image.ps1); the channel count of the scan uses it with its 1.3.14 behaviour unchanged (one more try after 3 s).
  • A DVRIP login that timed out or got no proper reply left its socket open until garbage collection; it is closed now.
  • dev\fake-dvrip.php: busy207=N answers Ret 207 to the first N logins (-1: to all) and prints LOGOUT.

1.3.19 (2026-11-22) — Talivio Power is decided per station

  • 1.3.18 removed Talivio Power from every agent PC. Eren (#15536): off the venue PC, but the work PC stays in the pool ("orada iş yapıyoruz"). The server now decides per station (POWER_GATEWAY_AVLA_STATIONS, the listed station ids) and the config's power_gateway says what to do:
    • {"mode": "remove"} (every station not listed): 1.3.18's removal, unchanged — first look 2 minutes after start, then a folder check every 6 hours.
    • {"mode": "install", "url": ...} (a listed station): 1.3.17's install, unchanged — not installed: a one-time code from POST live/power-gateway (only a listed station gets one, the others get 410) and Power Gateway's own agent in the low-priority helper service\powergw-install.ps1; never removes, an install by hand counts.
    • no power_gateway (no config from the server yet, or Power Gateway off for Avla): nothing at all happens.
  • A mode change from the server is acted on at the next loop. The status keeps power_gateway {state, error} (removing | removed | absent | failed, or installed | installing | waiting | exists | off | failed).
  • A PC that 1.3.18 already cleaned and is now listed installs again; Power Gateway answers "exists" (state exists) until an operator revokes the old machine there.

1.3.18 (2026-11-22) — Talivio Power is removed from the venue PC again

  • A venue PC is only for billiards tracking and cameras (Eren, 2026-11-22), so 1.3.17's Power Gateway step is undone: the agent never installs Talivio Power and never asks for an enrolment code any more (POST live/power-gateway answers 410, the config no longer carries power_gateway).
  • Two minutes after start, if C:\ProgramData\TalivioPower exists (1.3.17's install or one by hand), the low-priority helper service\powergw.ps1 removes it: Power Gateway's own talivio-power uninstall (run from a copy, since it deletes its own folder), then a sweep of what is left (scheduled tasks TalivioPower / Idle / Tray, the processes, the folder, the desktop and Start menu shortcuts) and a check. After that only a folder check every 6 hours: a Talivio Power that comes back, or a removal that failed, is removed again then.
  • The status carries power_gateway {state, error}: removing | removed | absent | failed; the result goes to the install report as powergw_remove. var\powergw-removed.json keeps "removed" across restarts.
  • The machine stays listed in Power Gateway until an operator revokes it there.

1.3.17 (2026-11-22) — the venue PC also joins Talivio's Power Gateway pool

  • When the server's config carries power_gateway (Avla has a Power Gateway token) and talivio-power is not installed, the service asks POST live/power-gateway for a one-time enrolment code and installs Power Gateway's own agent in a separate low-priority helper (service\powergw.ps1: download from the gateway's https address on talivio.com only, talivio-power install --url --code). The code only touches the SYSTEM-only var\ for a moment and is never logged.
  • The gateway makes such a PC external + opportunistic with the venue limits (03:00-10:00, 2 cores, 4 GB): no job runs before the venue owner turns "accept jobs" on in Talivio Power (next to the clock), and a job pauses when someone uses the PC. The first look waits 10 minutes after start; then every 6 hours (installed: only a file check).
  • Never uninstalls; an install by hand counts. The status carries power_gateway {state, error} (installed | installing | waiting | exists | off | failed); a finished install is reported as powergw_install.

1.3.16 (2026-11-21) — a locked ffprobe output file no longer ends the channel scan

  • 1.3.15's new error report showed why the venue scans died (11:45, 11:55, 12:25): [IO.File]::ReadAllLines on work\probe\chN.out threw "used by another process" (common.ps1:850), which ended the whole scan. The file is now read shared (ReadWrite, Delete) with five 150 ms retries (Read-SharedLines); a file that stays locked counts as an empty ffprobe answer for that one channel.

1.3.15 (2026-11-21) — a failing scan step no longer loses the scan, and its reason reaches the server

  • At the venue 1.3.14's channel scan ended in an error twice (11:45, 11:55): no channels, no probe_end report, the reason only in agent.log. The DVRIP channel count and Resolve-UnsureHosts are now guarded: their failure goes into the host note and the scan result is kept.
  • A scan that still fails sends probe_end ok=false with the error text and its file:line to the server.
  • A probed stream with a codec but a 0x0 size counts as no picture (no_video). Root cause of the NVR mix-up: 1.3.14's full scan of Cevahir's NVR 192.168.1.169 (12:07) showed channels 1-12 with real pictures (h264 1920x1080 Hikvision cameras, hevc 2880x1620 XMEye ones) and 13-16 as h264 0x0 - the empty channels, and most likely the sentinel channel 200 the same way. With this the NVR is a recorder and its channels 2-12 become cameras.

1.3.14 (2026-11-21) — a device that cannot say its channel count is probed on every channel

  • 1.3.13 showed why Cevahir's NVR 192.168.1.169 stayed a "single camera": its DVRIP login answered Ret 207 ("user already logged in" - the panel user is not reusable and the live RTSP stream of channel 1 holds its session). When channel 200 answers and the DVRIP channel count fails, channels 2..16 are probed anyway; Resolve-UnsureHosts then calls it a lone camera only if every channel answered (note single camera: every channel answers), otherwise a recorder whose channels with a picture become cameras (note recorder: N channels with a picture of M probed). Lone XMEye cameras whose DVRIP login works are not probed further.
  • A DVRIP login answered Ret 207 is tried once more after 3 s before the fallback above.

1.3.13 (2026-11-21) — recorder channel count from SystemInfo too, and the reason in the note

  • On 1.3.12 Cevahir's NVR 192.168.1.169 was still taken for a single camera: the DVRIP login reply did not give a ChannelNum above 1 (or the login failed; nothing showed which). The count is now the largest of ChannelNum, ChannelNum + ExtraChannel and SystemInfo (msg 1020) VideoInChannel + DigChannel + ExtraChannel, and the note carries the answers (single camera: channel 200 answers too (dvrip ch=… ex=… si=… vin=… dig=…) or the login error). Probe notes may be 160 characters (was 80).

1.3.12 (2026-11-21) — a Hikvision that was never activated is named as such

  • After the channel probe, every plain RTSP host (no XMEye port) that answered 401 is asked GET http://<ip>/SDK/activateStatus (no login, all at once, 2.5 s in total). A Hikvision answers <Activated>true|false</Activated>; the host note starts with hikvision_inactive; or hikvision;. An inactive Hikvision has no password yet and refuses every login: the panel shows the activation steps (SADP or its web page) instead of asking for a password again. Cevahir's 192.168.1.64 (21.11).
  • A recorder that also answers the sentinel channel 200 is no longer taken for a lone IP camera: when channel 200 gives a picture on an XMEye host, the agent logs in over DVRIP (the panel login, else admin) and reads ChannelNum from the login reply. More than 1 = a recorder: channels 2..ChannelNum (max 16) are probed and the note says recorder: N channels; 1 or no answer = single camera as before. Cevahir's NVR 192.168.1.169 (21.11) answered channel 200 and only its channel 1 became a camera; the billiards table is its channel 7.

1.3.11 (2026-11-09) — billiards tracker reports where its time goes

  • tracker_live status timing: ms per processed frame for each stage (kucultme = 1280 shrink, hazirlik = lens / straighten, kalite, arama = detection, eslestirme, arka_plan, kayma, atis, canli_dosya), cozme = ms per grabbed frame inside cap.read (reader thread), mesgul = share of wall time the main loop works, cpu = process CPU seconds per wall second; plus OpenCV threads and cores. billiards.ps1 passes them in the status, the server keeps them with the camera status. To find why the "duz" detector did ~3 frames/s on the venue PC (old ~10).

1.3.10 (2026-11-09) — billiards "duz" detector: one remap, 3 mm/px

  • tracker.Straighten: lens + warp in a single remap of the small top-down picture (a lookup per output pixel to the camera's own distorted pixel) instead of a full-resolution lens remap followed by a warp: 3 ms instead of 17.5 (the old 1280 shrink + lens takes 33). Picture at 3 mm/px (the camera's own resolution at the far end). On 1.3.9 the venue PC managed 3.4 frames/s in this mode (9.6 the old way); one frame now takes 46 ms here against 61 the old way, with the same detection gains (all three balls 89 % vs 81 %, far half 99 % vs 96 %).

1.3.9 (2026-11-09) — billiards: optional full-resolution, straightened-table detector

  • tracker.Straighten (camera billiards json "detector": "duz"): each frame at full camera resolution is lens-straightened and warped to a top-down picture of the play area (2 mm/px); balls are found there, so a ball has one expected size everywhere (its stretched silhouette, from the camera geometry) and the far end is no longer shrunk to a few pixels by the 1280 px downscale. tracker_live skips the downscale in this mode.
  • Measured on table 1: 228 full-resolution frames (Avla capture job) - all three balls found 81 % -> 89 %, red 88 % -> 96 %, far half 96 % -> 99 %, positions agree within ~2 mm, 36 ms/frame instead of 52 (one core). A 4-minute 720p recording: same 9 shots, cue balls, contacts and points as the current detector.
  • Off unless the camera says so (php artisan avla:billiards-calibration <cam> <file> --detector=duz|eski); a new calibration keeps the choice. tools/billiards/duz_deneme.py repeats the comparison on any frames.

1.3.8 (2026-11-09) — billiards: a ball that starts rolling was hit, even when the cue ball was seen elsewhere

  • events.analyse: an object ball that starts moving (and rolls >= 150 mm) with no hitter close enough is counted as hit by the cue ball, marked inferred. On table 1 the cue ball is lost or misplaced at the far end (a few pixels there) while the ball it hits is tracked well: Cevahir "3B'de sayı olan atışlar görünmüyor" (#8387). Recording 14 (65 min, 137 shots), re-analysed from the stored paths: touched nothing 61 -> 5, both balls 16 -> 61, points 1 -> 8; checked against the video on shots 541 (white hit the red, was "nothing"), 549, 589.

1.3.7 (2026-11-09) — billiards: ball-ball contact measured where physics puts it

  • events.contact_gap: who struck a ball and how far off the contact was (gap_mm) now come from the struck ball's departure direction (impulse along the line of centres, so the hitter's centre was at rest − 2R·u) and the hitter's constant-acceleration pieces extended into unseen frames (or, for the cue ball's first contact, its straight line from where it rested). Before, the hitter's position was linearly interpolated between sightings at the struck ball's start: the chord cut the corner of the turn (table 1: 72–115 mm). Synthetic shots (sinama_temas.py, 540 contacts, 25/30/60 fps, 1.5–6 m/s): gap median 9–33 → 1–3 mm, p90 62–121 → 4–31 mm, missed contacts 16 → 0; a struck ball leaving in a physically wrong direction now shows 22–66 mm (old: same ~20 mm as a real contact). Acceptance threshold unchanged. Fallback to the old measure when the departure is not seen.

1.3.6 (2026-11-09) — billiards: a move that touches nothing is not a shot

  • events.is_real_shot: a shot is uploaded only if the cue ball hit a ball or a cushion. A three-cushion shot always does; rolling with no contact at all is a hand placing a ball, a ball creeping after the last shot or a split-off tail. On table 1 (2026-11-09) 6 of 16 uploaded shots were such moves (< 3.3 m, no event), the filter drops exactly those six. tracker_live logs "atış sayılmadı"; tracker.py and yeniden.py filter the same way.

1.3.5 (2026-11-09) — billiards: a shot ends when every ball has rolled out

  • events.motion_episodes: a shot started on fast motion now ends only when every ball has slowed below 80 mm/s (slow rolling-out counts as the same shot). Before, it ended when no ball was faster than 250 mm/s: replays stopped while a ball still rolled (Cevahir: "3D atışlar yarıda kesiliyor") and one shot was split into several. On the 15-minute test game: shots ending with a rolling ball 24 of 42 -> 1 of 35, points unchanged.

1.3.4 (2026-11-09) — two PCs at one venue: one serves, the other waits

  • The server groups the stations of a workspace that see the same recorders/cameras and keeps ONE of them active (VenueCoordinator): the active PC gets the cameras, a standby PC gets standby {active_station_id, active_hostname, reason} and an empty camera list (nothing runs, its uploads are refused), and keeps reporting. The choice uses whether a PC reports (150 s) and its free CPU cores + free RAM; the active PC keeps the venue unless another one is clearly freer for 10 minutes, a PC silent for 3 minutes loses it. Cameras stay where they are (the owner station), so a takeover keeps their ids, links and recordings.
  • Status: resources {cpu_cores, ram_total_mb, ram_free_mb} (Win32_ComputerSystem / Win32_OperatingSystem).
  • Tray: "Yedek: salonu şu an <host> yönetiyor" on a standby PC; agent.log notes every change.
  • A second PC that finds a recorder whose cameras another station already has no longer creates copies.

1.3.3 (2026-11-09) — billiards: the venue PC calibrates the table by itself

  • The panel's "Otomatik kalibre et" puts billiards_calibrate {id} in the camera config. The service runs billiards\calibrate_live.py once per id (one camera at a time, below-normal priority, at most 5 min): it watches the camera's own stream for 90 s (frames kept at most 1920 px wide), takes the median (players and balls vanish), finds the table (largest smooth cloth-like region) and its rail diamonds, and solves lens and pose; a shaky result ("masa başında hareket vardı") is refused with the reason. The result (or the reason) and a check picture go to PUT live/cameras/{id}/billiards/calibration/{request}. Corners are no longer clicked.
  • Billiards switched off in the settings: the request is answered at once with that reason.

1.3.2 (2026-11-09) — billiards: lens-corrected tracking

  • A camera calibration may carry lens (camera matrix + distortion, from tools/billiards/calibrate.py): the tracker straightens every frame before measuring, the corners are then the play area at ball-centre height. On the Tuzla table 1 camera (wide angle) this takes the position error from ~37 mm to a few mm.

1.3.1 (2026-11-09) — optional features in the settings; billiards tracker: problem detection and physics fill

  • Settings (tray: Ayarlar → "Bu bilgisayarın yaptıkları"): live video, recording and billiards tracking can be switched off (all on by default; settings.json keys live_video, recording, billiards, also via set_settings). Live video off: no live ffmpeg (watch room says "not live", no LAN viewing); recording off: capture jobs end with an error, the watch room hides "Kaydet"; billiards off: no tracker process. Sending a single picture when the server asks is always on (shown as a disabled, ticked switch). The status reports features {snapshots, live_video, recording, billiards}; the panel shows them on the station page.
  • New billiards\quality.py: per frame it flags a frozen picture (identical frames while a ball rolls; such frames are not measured), a stalled stream, a table covered by someone (or the camera blocked) and light jumps; per ball it drops impossible sightings (teleports faster than 8 m/s, points off the physical path, outside the table) and reports two balls in one place or a ball speeding up with nothing touching it.
  • What the camera missed is filled by a short physical simulation (rolling friction, cushion bounces) tuned to arrive where the ball was seen again; shots carry estimated (simulated / weak frame ranges) and issues, the 3D table shows estimated parts faint and lists the problems. A hit ball that blurs for a few frames is no longer lost, and a corner double bounce is no longer swallowed (validated on a labelled video: 5/5 points).
  • The heavy analysis runs only when a shot has ended (the per-second check stays cheap).

1.3.0 (2026-11-09) — billiards tracking on the venue PC

  • A camera whose config carries billiards (the table's outer corners, normalized, + inset_mm; set by clicking the corners on the camera page) runs billiards\tracker_live.py on its own stream: it follows the three balls and writes each finished shot (30 Hz paths, contacts, cushions, strike speed, point) to work\cam<id>\billiards\shots. The service uploads them to PUT live/cameras/{id}/billiards/shots/{shot} and deletes them; no video is uploaded for this. Live ball positions are in live.json next to them.
  • The tracker runs with a pinned embeddable Python 3.12.10 + numpy 2.3.4 + OpenCV 4.10 (headless) that service\billiards-setup.ps1 installs into var\python on first need, in its own process (≈60 MB, every file checked against its python.org / PyPI SHA256; failed attempts retry after 30 min, see logs\billiards-setup.log).
  • The tracker process runs at below-normal priority (a busy PC drops tracker frames, never live video); it restarts after a crash (10 s, backing off to 10 min when it dies at once) and when the calibration or the source changes.
  • Status: cameras[].billiards {running, state, fps_in, fps_done, seen, sent, error}.

1.2.0 (2026-11-09) — remote management from the Avla panel

  • Device logins: config probe.credentials ([{ip, user, password}], typed on the station page for a device whose probe says auth_required) is saved to var\probe-credentials.json (SYSTEM + Administrators only) and passed to the probe helper (-CredentialsFile); Get-NvrUrl puts that login into the XMEye URL (percent-encoded, same as the server). A changed list starts a full scan at once. Passwords stay masked in agent.log and the status.
  • "Scan now": a newer probe.rescan_requested_at stops a running scan and starts a full LAN scan + channel probe.
  • "Get the log": probe.log_request {id, lines} uploads the last lines of agent.log (+ agent.log.1), masked, to POST live/log {id, text} once per request id (retried at the next poll if the upload fails).

1.1.0 (2026-11-08) — local viewing on the venue network

  • New helper service\localweb.ps1 (separate process, restarted by the service): a small web server on port 8090 of the venue PC. People on the venue Wi-Fi open http://<PC>:8090/ and watch the cameras straight from the PC; nothing goes to the internet. Only cameras whose public "İzleme Odası" link is on are listed.
  • A camera watched only locally runs its live ffmpeg without uploading segments; when someone also watches through Avla, uploads start from the newest segment (with a discontinuity).
  • Firewall: the service adds an inbound rule for the port, local subnet only ("Avla Yerel Izleme").
  • Status reports local_web.url (the PC's LAN address) so Avla can link to it.

1.0.9 (2026-11-08) — native bitrate of each camera

  • After a channel probe round, the helper reads 8 s of channel 1's main stream of every host with a picture (stream copy, all hosts at once, 20 s cap) and reports the native bitrate as main.kbps on that channel. Used to size local recording and upload; a failure only leaves it out.

1.0.8 (2026-11-08) — a single IP camera is one camera, not 16

  • Channel probe: when channel 1 gives a picture, channel 200 (no recorder has it) is tried before channels 2..16. A picture there means the device ignores the channel number: a lone XMEye IP camera answers every channel with its one picture, so the venue saw 16 identical cameras per device. Such a host keeps channel 1 only, marked single (note "single camera: ..."), and the status reports the device with single_camera: true.
  • Server: for a single_camera device the cameras the agent created for channels other than 1 are switched off (live_enabled and is_active false, channel_error "single_camera"), not deleted; cameras a user added are left alone.

1.0.7 (2026-11-08) — installer no longer deletes the running service's work folder

  • Installer: the NVR channel probe uses its own work\install-probe and deletes only that. Before, it shared work\probe with the service's probe helper (both write ch<N>.out, so the two probes overwrote each other's results and channel counts came out too low), and at the end it deleted all of work\ under the already running service; a file the service had open (work\cam23\oneshot.log) made the install end with "Kurulum tamamlanamadı" before the tray was started. A cleanup failure is now only a probe_cleanup report.

1.0.6 (2026-11-08) — the service starts on older Windows PowerShell 5.1 builds

  • service\agent.ps1 no longer computes its -BaseDir default from $PSScriptRoot inside param(): some Windows PowerShell 5.1 builds (seen on 5.1.19041.610, Windows 10 Education 20H2) leave it empty there, so the service died on its first line ("Split-Path: Cannot bind argument to parameter 'Path'") before writing agent.log or reporting service_start; the tray stayed on "Kod alınıyor…". The default is now set in the script body ($PSScriptRoot, falling back to $MyInvocation.MyCommand.Path).

1.0.5 (2026-11-08) — the main loop can never be blocked by scanning

  • LAN discovery and NVR channel probing run in a separate low-priority helper process (service\probe.ps1): the service starts it with one call and only reads its result file. A round has a 90 s budget; a helper that does not finish within budget + 45 s is killed. Results so far are reported as partial.
  • Probing is cheap: channel 1 first; a host that does not answer the XMEye URL (plain IP cameras, printers, ...) is dropped after that one probe. 34567 hosts with channel 1 missing get channels 2 and 3 tried. The status discovered lists every host with its ports; only probed hosts carry channels (and a note why a probe stopped).
  • Watchdog: the 5-minute task trigger starts a second instance; when the running one has not written its heartbeat (var\health.json) for 4 min and announced no long download (busy_until), it is killed and the new one takes over (watchdog_takeover report). Heals any hang, whatever its cause.
  • loop_slow report (and agent.log line) names the loop section that took more than 8 s.
  • The update check runs before every other loop section; downloads announce busy_until.
  • Reports probe_start / probe_end (duration, hosts, channels, partial) from service and installer.
  • Installer: service is installed and started before the NVR scan; the scan has a 60 s budget and only prints hosts that are NVRs (steps renumbered).
  • Dev: -ExtraNvr takes a comma list, -DevHangAfter, -WatchdogStaleSeconds, dev\hang-hosts.ps1.

1.0.4 (2026-11-08)

  • Pairing: the key received from Avla is kept in memory first and the service runs paired with it even when config.json cannot be written or read back; the write is retried every minute (config_save report on failure). Before, a failing save/read made the service drop the key and ask for a new code.
  • A code that the server no longer knows is replaced by a new one with the same auto flag.
  • A run that is not elevated (e.g. -Console tests) keeps its own account on the restricted config.json ACL.

1.0.3 (2026-11-08) — remote rescue

  • The installer starts the service BEFORE pairing, with a server-only config.json: closing the window during pairing or any later failure no longer leaves a PC with nothing running.
  • An unpaired service pairs itself: a code 1 min after start, then every 10 min (auto: true; the user_code is in agent.log, state.json and the install report); support approves it in Avla. While unpaired it also looks for updates every 30 min, so a running unpaired agent picks up a fixed version by itself.
  • The service reloads config.json when it changes on disk (the installer pairs after the task started).
  • Install telemetry: every installer step and the service's start, fatal errors, self-pairing and ffmpeg repair go to POST /api/v1/live-agent/install-report (no secrets).
  • A consumed pairing key is never lost: config.json is written first; ACL / owner problems and icacls partial failures are reported as warnings and never abort the install.
  • Scheduled task: principal by SID S-1-5-18; if the ScheduledTasks cmdlets fail, schtasks.exe with XML; if the task still does not start, the installer starts the service directly and reports it.
  • Without ffmpeg the service still pairs, reports and updates, and downloads the pinned ffmpeg itself (hourly).

1.0.2 (2026-11-08)

  • Kur.cmd / Kaldir.cmd: run from inside the zip (not extracted) now shows a Turkish "Tumunu ayikla" message instead of an elevated window that closes at once; the window stays open if the installer fails.
  • The script path goes to the elevation call through an environment variable, so folder names with an apostrophe no longer break it; no parenthesised cmd blocks around expanded paths.

1.0.1 (2026-11-06) — security hardening (must ship before the public download)

  • Install dir: owner Administrators, protected ACL (SYSTEM + Administrators full, Users read). Applied by the installer even when the folder already exists, and by the SYSTEM service and updater, so older installs heal. var\, versions\, backup\ and config.json are SYSTEM + Administrators only.
  • control\ is read-only for users; control\requests\ only lets users add files. The service removes junctions/symlinks planted there, ignores linked, hard-linked or oversized (> 64 KB) request files and never follows links when deleting.
  • The admin password hash moved to var\settings.json; the service checks the password for unpair / pause / resume / settings / re-pair (5 wrong tries → 60 s lock). The tray verifies through the service.
  • config.json is written in var\ with its restricted ACL and moved into place; the install fails if the ACL cannot be set.
  • Updates: download and ingest URLs must be https on the configured server's host. The package is unpacked into a SYSTEM-only folder, every file is hashed and checked again right before installing, and the INSTALLED updater (copied to var\updater\) installs and rolls back, never the downloaded one. Health comes from the SYSTEM-only var\health.json. A failed download / sha mismatch is retried after 10 min, doubling up to 6 h.
  • Self-update works with the server's release zip, which keeps everything under one avla-live-agent\ folder: the agent installs from inside that folder. Leftover unpacked packages are removed.
  • Only rtsp:// / rtsps:// camera sources outside dev runs (-Console / -DevNoTask).
  • NVR passwords (password=…, user:pass@) are masked in agent.log and in every status error.
  • Grid snapshots: at most 16 persistent ffmpeg processes; above 70 % machine CPU the grid falls back to round-robin one-shot grabs (back to persistent below 50 %).
  • Tray rebuilt from source (1.0.1).
  • Later: release signing with an offline key whose public part is built into the agent.

1.0.0 (2026-11-06)

  • First release: SYSTEM service + tray app, device-code pairing with the Avla account.
  • Finds XMEye NVRs on the LAN and reports every working channel to Avla.
  • Live HLS only while someone watches (max 2 at once), grid snapshots, generic capture jobs.
  • Updates itself from Avla (sha256-checked) and rolls back if the new version does not report in.
  • Camera image settings (exposure, brightness, contrast, saturation, BLC, HLC, shutter) on the XMEye NVR over DVRIP, per camera, with the first read kept as the revert point.