[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116096":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":12,"openIssues":12,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":17,"topics":19,"createdAt":9,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":13,"starSnapshotCount":13,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},116096,"AmberSight","HuskerMinion\u002FAmberSight","HuskerMinion","Self-hosted camera recording and AI detection server in Rust for Windows, Linux and macOS",null,"Rust",61,1,0,6,43.6,"Other",false,"master",[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"blue-iris-alternative","cctv","home-assistant","linux","macos","mqtt","nvr","object-detection","onvif","raspberry-pi","reolink","rtsp","rust","security-camera","self-hosted","video-surveillance","windows","2026-11-23 00:55:49","2026-11-23 18:07:45","\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fimages\u002Flogo-dark.svg\">\n    \u003Cimg src=\"docs\u002Fimages\u002Flogo-light.svg\" alt=\"AmberSight\" width=\"410\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cstrong>Self-hosted camera recording and AI detection, written in Rust.\u003C\u002Fstrong>\u003Cbr>\nLinux · macOS · Windows\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHuskerMinion\u002FAmberSight\u002Freleases\u002Flatest\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FHuskerMinion\u002FAmberSight?label=release&color=e9a23b\" alt=\"Latest release\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-PolyForm%20Noncommercial-blue\" alt=\"PolyForm Noncommercial license\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fbuymeacoffee.com\u002Fhuskerminion\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBuy%20Me%20a%20Coffee-ffdd00?logo=buymeacoffee&logoColor=black\" alt=\"Buy Me a Coffee\">\u003C\u002Fa>\n\u003C\u002Fp>\n\nAmberSight is a self-hosted camera security and recording server written in Rust.\nIt runs on Linux, macOS, and Windows. It ingests RTSP (and other ffmpeg-readable)\ncamera streams, detects motion, records video segments, builds motion clips with\npre\u002Fpost roll, and serves a web dashboard plus a JSON API.\n\nStep-by-step installation for Windows, macOS and Linux is in the\n[install guide](docs\u002Finstall.md). The API for app developers is in the\n[API guide](docs\u002Fapi-guide.md). Stream addresses and known problems by camera brand are in the\n[camera guide](docs\u002Fcameras.md).\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F1-live.jpg\" alt=\"AmberSight live view: eight cameras with AI detections\" width=\"900\">\u003C\u002Fp>\n\nMore screenshots: [Screenshots](#screenshots).\n\n## Screenshots\n\n| | |\n|---|---|\n| \u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F2-timeline.jpg\" alt=\"Timeline: all cameras in sync with alert markers\">\u003Cbr>**Timeline**: every camera in sync, alerts by kind, mark and export a clip | \u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F3-events.jpg\" alt=\"Events: list beside the player\">\u003Cbr>**Events**: filter chips, list beside the player, the AI's verdict |\n| \u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F4-camera-panel.jpg\" alt=\"Camera settings in a side panel over the live view\">\u003Cbr>**Camera settings**: a side panel over Live, with a live picture | \u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F5-zones.jpg\" alt=\"Zones editor with live motion boxes\">\u003Cbr>**Zones**: detect and ignore zones, live motion |\n| \u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F6-performance.jpg\" alt=\"Performance charts and per-camera table\">\u003Cbr>**Performance**: the last hour of CPU, AI, network and disk | \u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F7-live-light.jpg\" alt=\"Live view in the light theme\">\u003Cbr>**Light theme** |\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fimages\u002Fscreenshots\u002F8-phone.jpg\" alt=\"Live view on a phone\" width=\"260\">\u003Cbr>\u003Cb>On a phone\u003C\u002Fb>\u003C\u002Fp>\n\n\u003Csub>The cameras in these screenshots are public-domain video from Grand Canyon\nNational Park's B-roll library (National Park Service), looped into a demo\nAmberSight server. The National Park Service does not endorse AmberSight.\u003C\u002Fsub>\n\n## Install\n\nDownload the package for your system from the\n[releases page](https:\u002F\u002Fgithub.com\u002FHuskerMinion\u002FAmberSight\u002Freleases), or build\nfrom source (next section). Every release has a signed `SHA256SUMS` list.\nStep-by-step instructions for every system are in the\n[install guide](docs\u002Finstall.md).\n\n| System | Package | What it does |\n|---|---|---|\n| Windows 10\u002F11, 64-bit | `ambersight-\u003Cversion>-windows-x86_64-setup.exe` | Installs to `C:\\Program Files\\AmberSight NVR`, adds the \"AmberSight\" Windows service (starts at boot), a firewall rule for port 8090 and Start menu and desktop shortcuts. Settings and recordings go to `C:\\ProgramData\\AmberSight`. |\n| Debian, Ubuntu, Linux Mint, Raspberry Pi OS (64-bit) | `ambersight_\u003Cversion>_amd64.deb` or `_arm64.deb` | Add the [package repository](https:\u002F\u002Fhuskerminion.github.io\u002Fambersight-packages\u002F) once (`curl -fsSL https:\u002F\u002Fhuskerminion.github.io\u002Fambersight-packages\u002Fsetup.sh \\| sudo sh`), then `sudo apt update && sudo apt install ambersight`; updates come with `apt upgrade`. Or install the file: `sudo apt install .\u002Fambersight_\u003Cversion>_amd64.deb`. Installs `\u002Fusr\u002Fbin\u002Fambersight`, `\u002Fetc\u002Fambersight\u002Fconfig.toml`, data in `\u002Fvar\u002Flib\u002Fambersight`, a systemd service running as the user `ambersight`, an app menu entry, and ffmpeg. |\n| Fedora | `ambersight-\u003Cversion>-1.x86_64.rpm` or `.aarch64.rpm` | Add [RPM Fusion](https:\u002F\u002Frpmfusion.org\u002FConfiguration) first, then add the same repository (the setup script above) and `sudo dnf install ambersight --allowerasing`, or install the file with `sudo dnf install .\u002Fambersight-\u003Cversion>-1.x86_64.rpm --allowerasing`. Same layout as the .deb. |\n| macOS and other Linux | `.tar.gz` (Windows also has a `.zip`) | Unpack, then run `.\u002Fambersight setup` (see below). |\n| Docker (and Unraid) | `ghcr.io\u002Fhuskerminion\u002Fambersight:latest` (`amd64` and `arm64`; `:cuda` for AI on an NVIDIA card, `:openvino` for AI on Intel graphics) | See [docs\u002Fdocker.md](docs\u002Fdocker.md) for the run command, folders, networking and hardware decoding, or build the image from this repository. On Unraid, add the AmberSight template ([unraid\u002FREADME.md](unraid\u002FREADME.md)). |\n\nThe packages need Debian 13, Ubuntu 25.04, Fedora 42 or newer (and 64-bit\nRaspberry Pi OS, trixie or newer). Intel Macs have no built-in AI; use an AI\nserver or an external detector.\n\nOnce running, open **http:\u002F\u002Flocalhost:8090**. The first time, the Live page\nshows a **Getting started** checklist: add cameras (Settings > Cameras > Find\ncameras), get alerts on your phone, add a sign-in account, choose where\nrecordings go (Settings > Recording), and optionally HTTPS and AI. Updating a package keeps your settings.\n\n### ambersight setup\n\nFrom an unpacked `.tar.gz` or `.zip`, the program installs itself:\n\n```bash\n.\u002Fambersight setup               # for you only (macOS, Linux)\nsudo .\u002Fambersight setup --system # for the whole computer, starts at boot\n.\u002Fambersight setup --uninstall   # removes it; settings and recordings stay\n```\n\nOn Windows run `ambersight.exe setup` in an Administrator terminal. Setup\ncopies the program, creates `config.toml` from the starter settings (an\nexisting file is never overwritten), installs and starts the service, opens the\nfirewall port on Windows (on Linux it prints the command if ufw or firewalld is\non), adds a shortcut and opens the page. Other options: `--here` (keep the\nprogram and config where they are), `--dry-run` (only print the plan) and\n`--no-browser`. Use the same `--system` or `--here` with `--uninstall`.\n\n| System | Program | Settings and data |\n|---|---|---|\n| macOS | `~\u002FApplications\u002FAmberSight` | `~\u002FLibrary\u002FApplication Support\u002FAmberSight` |\n| macOS `--system` | `\u002FApplications\u002FAmberSight` | `\u002FLibrary\u002FApplication Support\u002FAmberSight` |\n| Linux | `~\u002F.local\u002Fshare\u002Fambersight` | `~\u002F.config\u002Fambersight`, data in `~\u002F.local\u002Fshare\u002Fambersight\u002Fdata` |\n| Linux `--system` | `\u002Fopt\u002Fambersight` | `\u002Fetc\u002Fambersight\u002Fconfig.toml`, data in `\u002Fvar\u002Flib\u002Fambersight` |\n\n### ffmpeg\n\n- **Windows and macOS:** nothing to install. If none is found at start, AmberSight\n  downloads one once (see Cross-platform notes).\n- **Linux:** ffmpeg and curl are required (curl sends alerts and AI server\n  checks). The .deb and .rpm install both. Otherwise\n  `sudo apt install ffmpeg curl` or `sudo pacman -S ffmpeg curl`. On Fedora the standard\n  `ffmpeg-free` cannot decode H.265 cameras: use RPM Fusion's ffmpeg.\n\n### Background service commands\n\n`ambersight setup` and the installers already do this. To install only the\nservice, which starts at boot and restarts on failure:\n\n```bash\nambersight service install --config \u002Fpath\u002Fto\u002Fconfig.toml\nambersight service status\nambersight service stop | start\nambersight service uninstall\n```\n\nThe config path is stored as an absolute path and the service runs with the\nconfig file's directory as its working directory, so a relative\n`data_dir = \"amberdata\"` keeps resolving next to the config. On Linux,\n`ffmpeg` must be on the service's `PATH`.\n\n- **Linux (systemd)**: by default a per-user unit is written to\n  `~\u002F.config\u002Fsystemd\u002Fuser\u002Fambersight.service` (no root needed) and enabled\n  with `systemctl --user`. To have it start at boot without logging in, run\n  `loginctl enable-linger $USER` once. `--system` installs\n  `\u002Fetc\u002Fsystemd\u002Fsystem\u002Fambersight.service` running as the current user; it\n  needs root and prints the exact `sudo` command if you are not. The installer's\n  `PATH` is copied into the unit. Logs: `journalctl --user -u ambersight -f`.\n- **macOS (launchd)**: a LaunchAgent at\n  `~\u002FLibrary\u002FLaunchAgents\u002Fcom.ambersight.server.plist` (or a LaunchDaemon in\n  `\u002FLibrary\u002FLaunchDaemons` with `--system`, via sudo), loaded with\n  `launchctl bootstrap`. `service stop` unloads it (launchd would otherwise\n  restart it); `service start` loads it again. Logs are\n  `ambersight.out.log` and `ambersight.err.log` in the config's directory.\n- **Windows**: registers the \"AmberSight\" service (display name \"AmberSight NVR\",\n  automatic start, restart on failure) that runs\n  `ambersight.exe service-run --config \u003Cpath>`. Run `service install` and\n  `service uninstall` from an **Administrator** terminal. Logs go to\n  `ambersight.log` in the config's directory. The service runs as LocalSystem\n  and sees the system-wide `PATH`; when it finds no ffmpeg there it downloads\n  its own (see below).\n\n## Build from source\n\nYou need a recent stable Rust toolchain (`rustup update stable`). On Linux you\nalso need ffmpeg and curl (`apt install ffmpeg curl`).\n\n```bash\ncargo build --release\n```\n\nThe binary is `target\u002Frelease\u002Fambersight`. Quick start:\n\n```bash\n.\u002Fambersight init config.toml      # create a starter config\n# edit config.toml: add your cameras\n.\u002Fambersight run --config config.toml\n```\n\nOpen `http:\u002F\u002Flocalhost:8090`. A new install has no camera: use Find cameras\n(Settings > Cameras) or add one by address. To try AmberSight without\nhardware, add a synthetic camera:\n\n```toml\n[[cameras]]\nname = \"Test Pattern\"\nurl = \"lavfi:\u002F\u002Fmandelbrot=size=640x360:rate=10\"\n```\n\n## Before using it on a network\n\n- **Add a user account** (Settings > Users & security). With no accounts, anyone who can\n  reach the port can watch every camera and change every setting.\n- **Turn on HTTPS** (`[server] tls = true`). AmberSight runs its own private\n  certificate authority; install it once per device from the account menu\n  (\"Trust this server\") or `\u002Ftls\u002Fca.crt`.\n- **Optional AI object detection:** Settings > Detection & alerts > Objects (AI) downloads a model (Tiny, Small or\n  Large) and turns it on; from the command line,\n  `ambersight ai-model --config config.toml` downloads it and shows the two\n  lines to add to the config.\n\n## Features\n\n- **Live view:** many cameras at once. Each tile plays fragmented-MP4 video in\n  the browser (Media Source); a light mode sends JPEG frames instead for large\n  grids and slow links. Corner labels (name, site, date, time) and AI detection\n  chips on each tile. Layouts, groups, paging, full screen, a phone layout, and\n  a Data saver mode that plays the sub stream.\n- **Display mode:** a full-screen page (`\u002Fdisplay`) for a wall TV, an old tablet\n  or a spare monitor that runs for weeks on its own: a grid of chosen cameras,\n  and the camera with an alert goes big for a while (two share the screen).\n  Clock, armed state, dimming at night, burn-in shift. It signs in with a code\n  an admin approves, as a viewer that can only watch.\n- **Streams that fit the device:** apps get the best quality their device can\n  decode: streams too big or in a codec the device can't play are converted on\n  the graphics card (or in software when there is none).\n- **Fill gaps from the camera's card:** when a Reolink camera with a memory card drops off\n  (Wi-Fi, a router restart, AmberSight restarting) and comes back, the missing part is\n  copied from its card and shows on the timeline as recorded, marked as from the card.\n  Per camera, off by default.\n- **Battery Reolink cameras without a hub (Argus):** add them with the brand \"Reolink battery\n  (Argus, no hub)\" and the camera's UID. They sleep until motion: the camera's motion message\n  (a local DNS entry for `pushx.reolink.com`) wakes them and starts recording, and AmberSight\n  fetches the first seconds of each event from the camera's card. Events the camera recorded\n  while AmberSight missed its message (push off, Wi-Fi trouble, AmberSight down) are imported\n  from the card later, marked \"from card\", without a notification. See the\n  [install guide](docs\u002Finstall.md#battery-reolink-cameras-without-a-hub-argus).\n- **Reolink's own protocol for always-on Reolinks:** a camera's \"Connect with\" setting can\n  read it over Reolink's port 9000 instead of RTSP, or use Auto: port 9000, moving to RTSP when\n  port 9000 keeps failing and back when it works again. See the\n  [camera guide](docs\u002Fcameras.md#reolink-wired-and-wi-fi).\n- **Recording:** continuous segments per camera, or a sub stream all the time\n  with the main stream only around events. Motion clips with pre-roll and\n  post-roll. By default recordings use what the disk can spare and keep 10% of\n  it free, deleting the oldest first; or give each folder a fixed size. Several\n  storage folders, an archive tier, and retention in days. Footage around\n  events is deleted last. A camera can also save each event's clip (or only\n  events AI confirmed) as an .mp4 to a second folder, such as a OneDrive or Google Drive\n  folder, shortly after the event: off-site copies from the same stream.\n- **Timeline:** all cameras in sync, alert markers by kind, fast and reverse\n  playback, and export of a time range. Bookmarks mark a moment with a note\n  (one camera or all of this server's) and can keep the video around it from\n  cleanup; a list searches them.\n- **Events:** a list beside the player, filters, false alarms, protect (kept\n  from cleanup), and export. Events are stored in a SQLite database.\n- **AI:** built-in YOLOX object detection on CPU or GPU (DirectML on Windows,\n  NVIDIA CUDA or Intel graphics with OpenVINO on Linux, Core ML on Apple silicon Macs),\n  with a Large model for the most accurate checks, an AI server option, or an\n  external detector command. AI review explains why an event did or did not\n  alert. AI remembers fixed spots it keeps mistaking for a person or a car (a\n  bush, a bin, a parked car) and stops alerting for them. Parked vehicles are ignored, package\n  detection, face recognition, smart search by description (CLIP), and a\n  loud-sound trigger.\n- **Zones:** rectangle and polygon detect and ignore zones. AmberSight has no\n  privacy masks of its own: use the camera's own privacy mask (Reolink,\n  Dahua\u002FAmcrest and Hikvision cameras have one), so the area never leaves the\n  camera. An ignore zone keeps motion there from counting.\n- **Text on the picture:** your own text with the date and time, drawn over\n  live view and playback (with the recording's own time), put into snapshots and\n  event pictures, and a time subtitle track in downloads (not in an event clip\n  sent from its saved file as it is); burning it into the recordings is an\n  option.\n- **Alerts:** push, Telegram, ntfy, Pushover, email, webhooks, Home Assistant,\n  MQTT with Home Assistant discovery, and action commands. System alerts for a\n  camera offline, recordings not written or a drive nearly full.\n- **Profiles and schedules:** named sets of overrides picked by a weekly\n  schedule, including sunrise and sunset.\n- **Camera watchdog:** restarts a camera that stops sending video, or power\n  cycles it through a smart plug or PoE port.\n- **PTZ and two-way talk** through ONVIF (talk also over Reolink's port 9000).\n- **Camera lights and siren (Reolink):** turn a camera's spotlight on, sound or stop its siren,\n  and switch its infrared and status lights, from Live, the camera's settings, MQTT and Home\n  Assistant, or as an action of an alert. Admins choose who may use them; every use is in the\n  audit log, and a siren is limited and always stopped when its time is up.\n- **Time-lapse:** each day of a camera in a short video.\n- **Off-site backup:** to a folder or S3, encrypted.\n- **Find cameras:** ONVIF discovery on this subnet and any other subnets you\n  list, sign-in with your usual camera login (a Dahua-style camera that\n  refuses ONVIF is added by its video stream instead), and an optional\n  hourly check that tells you when a new camera appears.\n- **Adding cameras by address:** the camera form asks for the address, port,\n  protocol, user name and password once, then the main and sub stream paths. A\n  brand list fills the usual paths, Find via ONVIF asks the camera, and a pasted\n  `rtsp:\u002F\u002F` address is split for you. The [camera guide](docs\u002Fcameras.md) lists\n  paths and known problems by brand. Transport is Auto, TCP or UDP (Auto tries\n  UDP when a camera only offers it).\n- **Hardware decoding:** motion detection decodes on an NVIDIA card (NVDEC), or\n  on Linux an Intel or AMD one (Quick Sync or VAAPI), when it passes a test\n  decode at start, and falls back to the processor; one setting picks the order\n  (Settings > System > Hardware), and a way that fails is tried again later. Intel\n  Quick Sync on Linux needs Intel's GPU runtime (`libmfx-gen1.2` on Debian\u002FUbuntu,\n  `intel-vpl-gpu-rt` on Fedora); without it Gen12+ Intel uses VAAPI, which fails\n  on some cameras. Auto\n  keeps video memory free on the NVIDIA card for the AI and other programs: past the limit\n  (1.5 GB by default) cameras use Intel or the processor and move back when there is room. Cameras with burned-in text\n  use the sub stream for motion and re-encode recordings on the card's encoder.\n  Status says when a large camera has no sub stream and offers to find one.\n- **Camera report:** a text file with what a camera sends and its recent\n  errors, without user names or passwords, to attach to a bug report\n  (Settings > Cameras > the camera > Network > Camera report).\n- **Linked servers:** several sites in one interface.\n- **Users and per-camera access.** Three roles: viewers watch; operators also arm and\n  disarm, move PTZ cameras, talk, record clips, keep and mark events and tune their cameras'\n  detection and alerts (each right can be turned off); admins do everything. Viewers and operators\n  can be limited to some cameras. Two-step codes (authenticator app, with recovery\n  codes) and per-device tokens for apps and RTSP. HTTPS with a private certificate authority.\n- **Updates:** signed self-update. AmberSight checks for new releases every\n  12 hours (it asks api.github.com and sends only `AmberSight\u002F\u003Cversion>`;\n  `[update] check = false` stops it); an admin installs one with a click (or\n  `ambersight update`). It says first what an update does (a minute without\n  recording, slow playback for a few minutes after, a database copy saved before\n  a database change) and waits for a confirm; a small notice shows while a fresh\n  start is still checking its recordings.\n- **Interface:** keyboard shortcuts, Ctrl+K command palette, and health and\n  performance charts (CPU, AI, network, disk).\n- **Languages:** English, German, Spanish, French, Italian, Portuguese (Brazil), Dutch, Polish,\n  Swedish, Russian and Chinese (Simplified). The admin sets the server's default and everyone can\n  pick their own, with a 12-hour or 24-hour clock; a language is downloaded the first time it is\n  needed and checked against the release (or installed from the release file). The translations\n  are machine-made and reviewed; text the server writes (notifications, status) is in English.\n- **Command line:** `ambersight --help` lists the commands (`init`, `run`,\n  `setup`, `service`, `cameras`, `events`, `snapshot`, `ai-model`, `discover`,\n  `ptz`, `backup`, and more).\n\n## Configuration\n\nMost settings are in the web page under **Settings**. Its sections are\nCameras, Recording, Detection & alerts, Smart features, Schedules & presence,\nUsers & security, Connections and System. They are saved to `config.toml`. See `config.example.toml` for\nevery option. Camera URLs:\n\n- `rtsp:\u002F\u002F...` - RTSP cameras (forced over TCP)\n- `http:\u002F\u002F...` \u002F file paths - anything ffmpeg can read\n- `lavfi:\u002F\u002F...` - synthetic test source (e.g. `lavfi:\u002F\u002Ftestsrc=size=640x360:rate=10`)\n\n## Data layout\n\nInside `data_dir` (default `amberdata`; `\u002Fvar\u002Flib\u002Fambersight` for the packages):\n\n```\nambersight.db                   # SQLite: events and the recordings index\ncameras\u002F\u003Cslug>\u002Fsegments\u002F*.mp4   # continuous segments\nclips\u002F\u003Cid>.mp4                  # motion clips\nthumbs\u002F                         # event pictures\nmodels\u002F                         # downloaded AI models\ntimelapse\u002F\u003Cslug>\u002F               # time-lapse videos\nbackups\u002F                        # config.toml and database backups\ntools\u002F                          # ffmpeg downloaded by AmberSight (Windows, macOS)\n```\n\nA storage folder set in the config holds its own `cameras\u002F` tree.\n\nThe database stores each recording as its folder's name plus a path inside\nthat folder, so a moved folder (another drive, another computer, Windows to\nLinux) only needs its new path set in Settings > Recording > Drives & folders.\nRecordings whose files are gone (a folder emptied, a drive reformatted) are\nnoticed at start and can be removed from the database there, or with\n`ambersight storage prune-missing` (a dry run unless `--apply`; it backs the\ndatabase up first and never deletes files). See \"Moving recordings or moving\nto a new computer\" in [docs\u002Finstall.md](docs\u002Finstall.md).\n\n## API\n\nThe web page uses a JSON API that you can use too: status, cameras, events,\nclips, snapshots, live streams and settings. Sign in with HTTP Basic auth or a\nsession. See [docs\u002Fapi-guide.md](docs\u002Fapi-guide.md) for the endpoints,\nauthentication and examples. For example, `GET \u002Fapi\u002Fstatus` returns server\nstatus and `GET \u002Fapi\u002Fsnapshot\u002F{id}` the latest JPEG from a camera.\n\n## Home Assistant\n\n**MQTT.** In `config.toml`, under the alerts section, set:\n\n```toml\nmqtt_url = \"mqtt:\u002F\u002Fuser:pass@broker:1883\"\nmqtt_prefix = \"ambersight\"   # optional, default \"ambersight\"\nmqtt_discovery = true        # publish Home Assistant discovery messages\n```\n\nWith discovery on, Home Assistant creates these entities (all retained, with availability from `\u003Cprefix>\u002Fstatus`):\n\n- Per camera (one device each): Motion, Person, Vehicle, Animal (from what the camera itself reports), Online, Snapshot, and a \"Record clip\" button. Battery (on-demand) cameras also get an Asleep sensor and a Wake button.\n- AmberSight server device: Shield switch, Profile select (\"Auto\" plus your profiles), an Active profile sensor, and a Problem sensor (on while a camera is offline, recordings are not being written or a drive is nearly full; the list is in its attributes).\n\nCommand topics (`\u003Ccam>` is the camera name in lower case with `_` for spaces):\n\n| Topic | Payload |\n|---|---|\n| `\u003Cprefix>\u002Fshield\u002Fset` | `ON` \u002F `OFF` |\n| `\u003Cprefix>\u002F\u003Ccam>\u002Ftrigger` | clip length in seconds (default 20) |\n| `\u003Cprefix>\u002F\u003Ccam>\u002Fwake` | anything; wakes a battery camera |\n| `\u003Cprefix>\u002Fprofile\u002Fset` | a profile name, or `Auto` to follow the schedule |\n\nState topics: `\u003Cprefix>\u002F\u003Ccam>\u002F{motion,person,vehicle,animal,online,asleep}` (`ON`\u002F`OFF`), `\u003Cprefix>\u002Fshield\u002Fstate`, `\u003Cprefix>\u002Fprofile\u002Fstate`, `\u003Cprefix>\u002Fprofile\u002Factive`, `\u003Cprefix>\u002Fproblems` (`ON`\u002F`OFF`) and `\u003Cprefix>\u002Fproblems\u002Flist` (JSON `{\"problems\": [...]}`).\n\n**Live video.** Add the Generic Camera integration per camera, with the camera's numeric `id` from `\u002Fapi\u002Fcameras` (8090 is the default port):\n\n- Still image URL: `http:\u002F\u002Fuser:pass@HOST:8090\u002Fapi\u002Fsnapshot\u002FID`\n- Stream source: `http:\u002F\u002Fuser:pass@HOST:8090\u002Fapi\u002Flive\u002FID\u002Fstream` (fragmented MP4; add `?q=sub` for the sub stream). This works for cameras on the built-in reader (RTSP and HTTP-FLV URLs, the default); cameras re-encoded through ffmpeg (burned-in text, `ingest = \"ffmpeg\"`) have no live stream; use the MJPEG address for those.\n\nHTTP Basic auth is accepted on these endpoints, so the credentials go in the URL. Use an account that can see the camera. Snapshot and stream requests wake a sleeping battery camera.\n\n## Cross-platform notes\n\n### ffmpeg\n\nAmberSight looks for ffmpeg in this order: next to the AmberSight program,\nthen `\u003Cdata_dir>\u002Ftools` (its own downloaded copy), then the system `PATH`.\nThe status page (Settings > System > Status & updates, Server card) shows which version is in use.\n\n- **macOS and Windows**: if no working ffmpeg is found when the server starts,\n  AmberSight downloads ffmpeg 8.1.2 once (about 27-33 MB on a Mac, 105 MB on\n  Windows), checks it against a fixed checksum, and keeps just the ffmpeg\n  program in `\u003Cdata_dir>\u002Ftools`. If that download fails, the message says how\n  to install it by hand (`brew install ffmpeg` \u002F `winget install ffmpeg`, or\n  put the ffmpeg program next to AmberSight).\n  - Mac builds: [Martin Riedl's build server](https:\u002F\u002Fffmpeg.martin-riedl.de)\n    (Apple silicon and Intel; signed with the builder's Developer ID).\n  - Windows build: [gyan.dev](https:\u002F\u002Fwww.gyan.dev\u002Fffmpeg\u002Fbuilds\u002F) \"essentials\",\n    from its versioned GitHub releases.\n  - License: these ffmpeg builds are GPL v3 (FFmpeg itself is LGPL\u002FGPL). They\n    are not part of AmberSight; your computer downloads them from their builders.\n- **Linux**: install it with your package manager (`sudo apt install ffmpeg`,\n  `sudo pacman -S ffmpeg`); the system build knows your graphics drivers for\n  hardware decoding. On Fedora the standard `ffmpeg-free` cannot decode H.265\n  cameras: add RPM Fusion (https:\u002F\u002Frpmfusion.org\u002FConfiguration) first, then\n  `sudo dnf install ffmpeg --allowerasing`. AmberSight says so clearly if\n  ffmpeg is missing.\n- An ffmpeg you install yourself (`brew install ffmpeg`, `winget install ffmpeg`,\n  `choco install ffmpeg`) is used as well; nothing is downloaded then.\n\nThe code uses portable crates; the only platform-specific code is the service\ninstaller (see \"Background service commands\"). Build with `cargo build --release` on each target.\n\n## License\n\nAmberSight is **source-available**, not open source. It is licensed under the\n[PolyForm Noncommercial License 1.0.0](https:\u002F\u002Fpolyformproject.org\u002Flicenses\u002Fnoncommercial\u002F1.0.0)\n(see `LICENSE`).\n\nIn plain words (the license text is what counts):\n\n- You may use AmberSight for any **noncommercial** purpose: at home, for a\n  hobby, for study, at a school, charity, public research or government\n  organization.\n- You may change it and share your changes, for noncommercial purposes, as\n  long as you pass on the license and its `Required Notice` line.\n- You may **not** sell it, charge for installing or running it, bundle it in a\n  product or service you sell, or use it in a business. Businesses that want\n  to use it can ask the copyright holder for a separate license.\n\nContributions are welcome; see `CONTRIBUTING.md` for the terms.\n\nThird-party code keeps its own license (all notices are collected in\n`THIRD-PARTY-NOTICES.txt`, which every package includes): the vendored RTSP library in\n`vendor\u002Fretina` (MIT or Apache-2.0), the Rust crates AmberSight builds on\n(their licenses are listed in `Cargo.lock` \u002F on crates.io), the AI models\nAmberSight downloads (each with its own license, named where it is set up),\nand ffmpeg (see above).\n","AmberSight 是一个自托管的安防视频监控与AI检测服务器，支持在 Windows、Linux 和 macOS 上本地部署。核心功能包括：通过 RTSP 等协议接入主流 IPC 摄像头（如 Reolink、ONVIF 设备），基于 AI 的物体检测与运动分析，智能录像分段（含预录\u002F后录）、事件标记、区域屏蔽配置，以及提供 Web 管理界面和 JSON API。采用 Rust 编写，兼顾性能与内存安全，适用于家庭安防、小型办公场所或边缘设备（如树莓派）的轻量级视频监控场景。",2,"2026-11-24 04:52:47","CREATED_QUERY"]