Skip to content

Separate camera-side vs Frigate-based autotracking #124

Closed
1 of 1 issue completed
Closed

Description

@ch-bas

Problem. "Autotracking" currently exists only as free-text in features[] (~169 cameras: auto-tracking, smart tracking, …). This conflates two fundamentally different capabilities:

  1. Camera-side autotracking — the camera moves itself to follow a subject (onboard). A property of the camera.
  2. Frigate-based autotracking — Frigate drives the PTZ over ONVIF. It requires the camera to support ONVIF relative movement (RelativeMove, FOV space). Cameras that expose only absolute/continuous move don't work.

Reolink PTZ/dual-lens (26 of the tagged cameras) expose absolute-only ONVIF PTZ → camera-side tracking works, but Frigate autotracking does not. Today the DB implies they're equivalent to a Frigate-driveable Dahua, which is wrong.

Proposed model. Separate the camera fact from the Frigate-integration fact:

// camera (PTZ / dual-lens): new "ptz" object
"ptz": {
  "autotracking": true,                                 // camera-side onboard tracking
  "onvif_ptz": "relative"|"absolute"|"continuous"|"none"  // gates Frigate compat
}
// configs.frigate (alongside verified/detect/notes):
"autotracking": false                                   // Frigate can drive it (needs onvif_ptz: relative)

Part 1 — schema + camera-side migration (doable from existing data)

  • Add ptz object (autotracking, onvif_ptz) to the schema + configs.frigate.autotracking.
  • Migrate the ~169 free-text autotracking tags → ptz.autotracking: true.

Part 2 — ONVIF-move + Frigate-compat data (community-sourced, its own effort)

  • Populate onvif_ptz and configs.frigate.autotracking. This data is rarely in datasheets — it's empirical/community-sourced (Frigate compatibility notes, ONVIF Device Manager, forum reports), same lane as SoC (Data: backfill SoC (System-on-Chip) values #122). Start: Reolink → false; Frigate's known-working list → true; unknown → leave undefined. Re-verify Frigate's current ONVIF requirement before stamping flags.

Credit: user feedback on the autotracking distinction.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    enhancement
    on Jul 15, 2026
  2. added a commit that references this issue on Jul 27, 2026
  3. ch-bas commented on Jul 27, 2026

    @ch-bas
    OwnerAuthor

    Status update

    Part 1 — schema + camera-side migration → ✅ complete (drift fixed).

    Part 2 — ONVIF-move + Frigate-compat data → 🔴 still open (community-sourced effort).

    • onvif_ptz: 18 cameras populated so far — all Reolink = absolute (the known Frigate-incompatible case that motivated this issue).
    • configs.frigate.autotracking: 20 cameras, all false.
    • This is the empirical/community-sourced lane (Frigate compat lists, ONVIF Device Manager, forum reports — same as SoC Data: backfill SoC (System-on-Chip) values #122). Needs a re-verify of Frigate's current ONVIF RelativeMove requirement before stamping true flags. Left undefined where unknown.

    Suggested next step for Part 2: seed from Frigate's documented known-working PTZ list → onvif_ptz: relative + configs.frigate.autotracking: true, keep Reolink at absolute/false, leave everything else undefined. Happy to take that on as a focused pass if useful.

    Note: as new PTZ cameras get added, the Part-1 flag needs to be set at add-time; worth a lint/CI check that any ptz/dual-lens camera with an autotracking-style feature also sets ptz.autotracking.

  4. added 2 commits that reference this issue on Jul 27, 2026
  5. ch-bas commented on Jul 27, 2026

    @ch-bas
    OwnerAuthor

    Part 2 — first pass done (#152)

    Populated onvif_ptz + configs.frigate.autotracking from Frigate's official docs. Re-verified the requirement first — unchanged: FOV RelativeMove (TranslationSpaceFov) + working MoveStatus.

    Stamped 39 cameras (high-confidence only):

    • Reolink PT ×21 → onvif_ptz: absolute, frigate.autotracking: false (brand-level ❌ in Frigate's table)
    • Dahua SD/SDT speed domes ×14 → relative / true (Dahua mid/high-end generally ✅; incl. the exact table match SD49825GB-HNR)
    • Hikvision DS-2DE3A404IWG-E/-E-W ×2 → relative / true (exact ✅ — the documented exception to Hikvision's brand-level MoveStatus failure)
    • Amcrest IP8M-2899EW-AI → relative / true; IP2M-841B → false (exact ❌)

    Coverage now: onvif_ptz 56 (39 absolute + 17 relative), frigate.autotracking 41 (24 false + 17 true).

    Remaining for Part 2 (documented but deliberately deferred)

    Frigate's docs mark these brand-level ❌ — a straightforward next pass could stamp frigate.autotracking: false on their genuine motorized PTZ (with frigate blocks):

    • Hikvision general PTZ (MoveStatus firmware bug) — minus the DS-2DE3A404 exception already done
    • Tapo and Foscam PTZ (brand ❌)

    Left undefined (correct): fixed A180 multi-sensor panoramics (not motorized PTZ) and any model without authoritative Frigate/ONVIF data — this is empirical, community-sourced data (same lane as SoC #122), so unknowns stay undefined rather than guessed.

  6. added a commit that references this issue on Jul 27, 2026
  7. ch-bas commented on Jul 27, 2026

    @ch-bas
    OwnerAuthor

    Part 2 — brand-level ❌ pass done (#153)

    Stamped configs.frigate.autotracking: false on the three brands Frigate's docs mark ❌ brand-level, for their genuine motorized PTZ with existing frigate blocks:

    • Hikvision ×46 (MoveStatus firmware bug; excludes the DS-2DE3A404 exception)
    • Tapo ×20 (PTZ works, autotracking doesn't)
    • Foscam ×8 (PTZ but not FOV relative move)

    Fixed multi-sensor / dual-lens cameras were skipped; onvif_ptz left undefined for these (their ❌ isn't cleanly a move-type fact).

    Part 2 coverage now

    • onvif_ptz: 56 (39 absolute Reolink + 17 relative)
    • configs.frigate.autotracking: 115 (98 false + 17 true)

    Between #152 and #153, every camera whose Frigate autotracking compatibility is authoritatively documented (✅ or ❌) is now stamped. Remaining moving cameras are genuinely undocumented in Frigate's list and correctly left undefined (empirical/community data — not guessed). I'd consider Part 2 substantially complete; further entries can be added as the Frigate compat list grows or community reports come in.

  8. ch-bas commented on Jul 27, 2026

    @ch-bas
    OwnerAuthor

    Closing — both parts delivered ✅

    Part 1 — schema + camera-side migration: complete.

    Part 2 — ONVIF-move + Frigate-compat data: every camera Frigate authoritatively documents is now stamped (#152, #153) — onvif_ptz 56, configs.frigate.autotracking 115.

    The only remaining work is the undocumented tail, which is open-ended, data-driven, and community-sourced — not a bounded task. Tracking that in a standing collection issue rather than keeping this one open indefinitely:

    ➡️ #154 — Backfill onvif_ptz / configs.frigate.autotracking from community Frigate reports (help wanted / good first issue).

    Closing as done.

  9. added a commit that references this issue on Jul 27, 2026
  10. 3 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions