---
title: "PTZ cameras"
description: "Let Vigiora detect pan/tilt/zoom cameras, override the detection, set an ONVIF address, use presets and digital zoom, and let a camera patrol its presets on its own — set up by hand or automatically by Vigiora AI."
url: https://vigiora.com/docs/cameras/ptz
updated: 2026-11-24T00:56:02.000Z
---

# PTZ cameras

> Let Vigiora detect pan/tilt/zoom cameras, override the detection, set an ONVIF address, use presets and digital zoom, and let a camera patrol its presets on its own — set up by hand or automatically by Vigiora AI.

Vigiora can steer pan/tilt/zoom (PTZ) cameras from the live page. For cameras on the server's own network, it detects PTZ by itself, using ONVIF or, on Hikvision cameras, ISAPI. You can override the detection when needed.

![The PTZ block on the General tab of the camera editor: PTZ Detected (ONVIF), the Detect again link, Joystick Auto / On / Off, Zoom and the ONVIF address field](https://vigiora.com/docs/img/cameras/ptz-1-editor-block.png)

*The PTZ block in the camera editor.*

## How detection works

For a camera on the server's network, Vigiora asks the camera whether it supports PTZ when you add it and whenever its address changes. It tries ONVIF first, then Hikvision ISAPI.

From version 1.6.8 Vigiora finds the ONVIF port by itself. Many cameras don't serve ONVIF on port 80: Reolink uses 8000 and TP-Link Tapo 2020, for example. Vigiora tries ports 80, 8000, 8899, 2020 and 8080, starting with the port the camera's maker usually uses, and asks each one a question that needs no login. Only the port that answers gets the camera's login. It saves the address it found in the **ONVIF address** field and uses it from then on. Cameras added with the [setup wizard](https://vigiora.com/docs/getting-started/setup-wizard) get the ONVIF address the wizard found.

When the camera's IP address changes, an address Vigiora found keeps its port and gets the new IP. An address you typed yourself is never changed this way.

The PTZ line in the camera editor shows the result:

| Status | Meaning |
| --- | --- |
| **Detected (ONVIF)** / **Detected (ISAPI)** | PTZ found. The joystick appears on the live page. |
| **Not detected** | The camera says it has no PTZ, or it didn't answer. |
| **Not checked yet** | Detection hasn't run yet. |
| **On (set manually)** / **Off (set manually)** | You overrode the detection. |

Cameras behind a Vigiora Client are not detected by the server. Their PTZ is simply **On** or **Off** and moves go through the Client.

## Check or change PTZ

1. **Open the camera settings**

   Open the camera and click **Edit**. The PTZ block is on the **General** tab.

2. **Run detection again**

   Click **Detect again**. Vigiora reports **PTZ found** with the method, or "The camera reports no pan/tilt/zoom."

3. **Override if needed**

   Next to **Joystick**, click **On** to show the joystick anyway, or **Off** to hide it. Click **Auto** to go back to detection.

Changes in the PTZ block save immediately. You don't need to click **Save**.

## Options

| Option | What it does | Default |
| --- | --- | --- |
| Joystick | Auto uses the detection result. On and Off override it. Auto is only offered for cameras on the server’s network. | Auto |
| Zoom | Camera (optical) sends zoom to the camera. Digital (in the browser) enlarges the picture instead, for cameras that pan and tilt but have no zoom lens. Shown when PTZ is on. | Camera (optical) |
| ONVIF address | The camera’s ONVIF device address, for example http://192.0.2.30:8000/onvif/device_service. Filled in by Vigiora when it finds the port (from 1.6.8). To set it yourself, type it and click Save next to the field. | Found automatically |
| Detect again | Asks the camera again whether it supports PTZ. |  |

### When to set the ONVIF address

Vigiora finds the usual ONVIF ports by itself. Set the address only when the camera uses an unusual port, or ONVIF on another device. If detection says **Not detected** but the camera can move:

1. Find the ONVIF port in the camera's web settings.
2. Enter the address in the ONVIF field, for example `http://192.0.2.30:8000/onvif/device_service`, and click **Save**.
3. Click **Detect again**.

Use the same host as the RTSP address, with any port. If the ONVIF address uses a different host, include its user name and password in the address.

## Use the joystick

On the camera's **Live** tab:

- **Press and hold** an arrow to move the camera, and let go to stop. From version 1.6.20 the camera keeps moving while you hold, instead of nudging for half a second per click; a dead-man in the server stops the camera if your browser goes quiet.
- Press and hold **+** or **−** to zoom in or out.
- Click **Presets** to go to, save and manage saved positions. See [Presets](#presets).

Presets are available for cameras on the server's network. See [Live view](https://vigiora.com/docs/using/live-view#steer-a-ptz-camera).

## Presets

A preset is a saved pan/tilt/zoom position you can send the camera back to. Open **Presets** on the joystick.

| Do this | How |
| --- | --- |
| **Go to** a preset | Click it in the list. |
| **Save** the current position | Click **Save preset**. It adds a new preset. To save over an existing one, pick it first. |
| **Rename** a preset (from 1.6.20) | Open its menu and choose **Rename**. |
| **Delete** a preset (from 1.6.20) | Open its menu and choose **Delete**. |
| **Move** a preset here (from 1.6.20) | Steer the camera where you want it, then choose **Move to current position** on the preset. Its name stays. |
| **Dwell time** (from 1.6.20) | Set the seconds to stay at this preset — how long a [patrol](#patrol-mode) rests here as it walks the camera through its presets. |

> **Note**
>
> **Reolink** cameras store preset names on the camera itself (over the Reolink app port). Other cameras can't rename a preset without re-saving the camera's current position into it, so Vigiora keeps the name for you instead; it shows in Vigiora only.

## Patrol mode

From version 1.6.20 a PTZ camera can **patrol** on its own: walk through its presets in turn, resting at each for its [dwell time](#presets), so one camera covers a wide scene without anyone touching the joystick. A patrol runs in the server, not the browser, so it keeps going whether or not anyone is watching, and across a restart. One patrol runs per camera at a time.

Each camera keeps its own named patrols. A patrol is an ordered list of **steps** — a preset, how long to dwell and how fast to move to it — plus a few choices for the whole patrol:

| Choice | What it does |
| --- | --- |
| **Loop** or **once** | Repeat from the top, or stop after the last step. |
| **Random order** | Visit the steps in a shuffled order each round, instead of top to bottom. |
| **Home preset** | A preset to return to when the patrol stops. |
| **Schedule** | The hours the patrol may run (always, when left empty). |
| **On activity** (from 1.6.20) | What the patrol does when the camera sees motion: **Keep moving** (ignore it), **Pause** (hold where it is while something is happening), or **Follow the action** — turn toward the motion and stay on it until it is over, then carry on. See [Follow the action](#follow-the-action). |
| **Activity from** (from 1.6.25) | Where "activity" comes from when the patrol pauses or follows: **Camera and Vigiora** (automatic — whichever notices first), the **camera's own detection** (its built-in motion, people, vehicle or line-crossing alerts, sent over ONVIF) or **Vigiora motion detection** alone. Only shown when the patrol does something on activity. |
| **Pause after a manual move** | When someone steers the camera by hand, pause the patrol for a while (120 seconds by default) before it carries on, so a hand move is never fought. Saving a new preset counts as a manual move, so you can frame and name it in peace. |

While a patrol moves the camera, motion detection is muted for the move itself (as for any PTZ move), so walking the presets doesn't raise a motion alert. If the camera can't be reached, the patrol backs off and tries again rather than hammering it. Starting and stopping a patrol is written to the audit log. Cameras behind a [Vigiora Client](https://vigiora.com/docs/admin/clients) can't patrol from the server — the control says so with the Client's name.

### Run a patrol from the joystick

Open **Patrol** on the joystick (next to **Presets**):

- Pick a saved patrol to **start** it. The quickest patrol — **all presets**, each for its dwell time, looping — is one click, with nothing to set up first.
- While a patrol runs, the joystick shows where it is: **Patrol · step 2/4 · next in 8 s**. **Pause** holds it where it is; **Resume** carries on; **Stop** ends it and returns to the home preset. A camera that is patrolling shows **Patrolling** on its tile in the grid.
- Moving the camera by hand pauses the patrol (see **Pause after a manual move** above).

### Set a patrol up automatically

Vigiora can build a patrol for you by looking at the camera. In the camera's **PTZ** settings, choose **Set up patrol automatically**:

1. **Vigiora reads the camera**

   It checks what the camera can do and finds how far it pans by moving to its end stops (cameras don't report an absolute position, so it learns the range by feel).

2. **It takes pictures across the scene**

   It takes a picture at up to twelve positions across the pan range, and at the presets you already have. Each position is saved as a preset.

3. **Vigiora AI decides the plan**

   It asks Vigiora AI what each view shows, how important it is and how long the camera should rest there (at most twenty views). This step uses AI credits.

4. **You accept, edit or regenerate**

   Vigiora proposes a patrol with the steps and dwell times it chose. Accept it, edit the steps first, or regenerate it. **Cancel** removes the presets the scan added.

The scan drives the camera while it runs, so motion from its own moves is ignored. Steering the camera by hand stops the scan. If AI isn't available on the camera — or the server has no AI credits — the automatic setup can't run; build the patrol by hand from the camera's presets instead.

### Follow the action

From version 1.6.20 a patrol can do more than pause when something happens: set **On activity** to **Follow the action** and the camera breaks off its round, turns toward the movement, and keeps it in frame until it settles — then returns to the patrol exactly where it left off. While it follows, the patrol control reads **Patrol · following the action**.

It works on any pan/tilt camera, with no extra hardware and no AI credits: Vigiora reads where the motion is from the camera's own picture and nudges the camera to keep it centred. When the scene has been quiet for the patrol's **activity quiet** time (10 seconds by default), the action is treated as over and the patrol resumes at the next preset.

A few things keep it well-behaved:

- **A person always wins.** Steering the camera by hand, or pausing the patrol, stops following at once — the camera never fights you.
- **It always comes back.** A single follow is capped (two minutes) so the patrol resumes even if the scene keeps moving.
- **It gives up when there is nothing to aim at.** From version 1.7.3, a follow ends after 10 seconds without a movement it can steer toward. This matters for a camera whose own detector reports activity without pause, such as water or a fan: the patrol no longer stays on one step for ever. After a follow that gave up, the patrol takes its next step before it may follow again.
- **Its own nudges are not a manual move.** From version 1.7.3, the small turns the camera makes while following no longer count as someone steering by hand, so they do not pause the patrol for **Pause after a manual move** each time.
- **No false alarms from its own moves.** As with every patrol move, motion detection ignores the camera following the action, so tracking a subject doesn't raise a motion alert.

#### Let the camera do the noticing

From version 1.6.25 a patrol can also take its cue from the camera itself. Most ONVIF cameras run their own detectors — motion cells, and on Reolink and Hikvision models people, vehicle, pet, visitor or line-crossing alerts — and Vigiora subscribes to those events over ONVIF. With **Activity from** set to **Camera and Vigiora** (the default for a new patrol, which also starts on **Follow the action**) the patrol reacts to whichever notices first; set it to **Camera's own detection** to trust only the camera, or to **Vigiora motion detection** to ignore the camera's alerts. The subscription is made for you and kept alive as long as a patrol on that camera listens to it.

The camera's alerts tell Vigiora *that* something is happening, not *where* in the picture it is, so the steering while following still comes from Vigiora's own motion detection. A patrol that listens only to the camera holds where it is while the camera reports activity, and carries on once it stops.

> **Note**
>
> Follow the action needs the camera reachable from the server (not behind a [Vigiora Client](https://vigiora.com/docs/admin/clients)) and, to steer toward the movement, motion detection running on the camera. Pointing at a sound is on the way — for now Vigiora follows what it sees.

### Edit a patrol by hand

In the camera's **PTZ** settings you can also create and edit patrols directly: add or reorder steps, pick the preset and dwell for each, set the speed, and choose loop/once, random order, the home preset, the schedule, what happens on activity, and the manual-move pause. A patrol built or edited this way runs exactly like an automatic one.

> **Note**
>
> A patrol is a saved plan, not a recording. Changing a preset's position or dwell time changes every patrol that uses it. Deleting a preset removes it from the patrols that step through it.

## Use ONVIF

From version 1.6.33, each camera has a **Use ONVIF** switch in the pan/tilt section of the camera editor. It is on by default. Turn it off for a camera that should not be spoken to over ONVIF at all.

With **Use ONVIF** off, Vigiora sends nothing to that camera over ONVIF:

- Pan/tilt controls, presets, patrols and the camera events that need ONVIF stop. The control pad is hidden on the live view.
- A camera driven by Hikvision's own protocol (ISAPI) keeps its pad, because it does not use ONVIF.
- A patrol that is running on the camera is ended.
- The PTZ settings you saved are kept. Switch **Use ONVIF** back on and everything comes back.

In the API the camera field is `onvif_enabled`, and PTZ calls for a camera with it off answer `409 onvif_disabled`. See [API v1](https://vigiora.com/docs/developers/api-v1#api-1101-and-1102-onvif-switch-and-camera-order).

## Digital zoom

With **Zoom** set to **Digital (in the browser)**, the **+** and **−** buttons enlarge the live picture in your browser from 1× to 4×, in steps of 0.5×. Nothing changes on the camera, and other viewers are not affected.

> **Tip**
>
> To zoom into recordings of any camera, PTZ or not, use the zoom in [Playback](https://vigiora.com/docs/using/playback#zoom-into-the-picture).

## Troubleshooting PTZ

| Problem | What to do |
| --- | --- |
| **Not detected**, but the camera can move | Set the ONVIF address with the right port, then **Detect again**. Or set **Joystick** to **On**. |
| The camera's message appears under the joystick | Read it: often the camera refused the login. Check the user has PTZ rights in the camera's own settings. |
| Moves work but zoom does nothing | The camera has no zoom lens. Set **Zoom** to **Digital (in the browser)**. |
| PTZ stopped after the camera got a new address | Vigiora updates the ONVIF address and checks PTZ again when it follows a camera to a new address. An address you typed yourself isn't changed: update it, or clear it so Vigiora searches again. See [Fixed IPs and rediscovery](https://vigiora.com/docs/cameras/fixed-ips-and-rediscovery). |

> **Note**
>
> Vigiora never repeats a refused login in a loop. After the camera refuses the password, it waits before it tries that method again, so the camera doesn't lock the account.

> **Note**
>
> From version 1.6.20, while Vigiora moves a PTZ camera its motion detection is muted, so the move itself doesn't raise a motion alert. Detection starts again a moment after the camera stops.

---

Source: https://vigiora.com/docs/cameras/ptz · Last updated 24 Nov 2026, 00:56 UTC
