---
title: "Set up an Axis camera with a self-hosted NVR"
description: "How to record an Axis camera on your own Vigiora Server. Set the root password, know the axis-media stream address and how to ask for a smaller stream, know when you need Axis's separate ONVIF account, and see what Vigiora finds by itself."
url: https://vigiora.com/articles/axis-camera-self-hosted-nvr
language: en
date: 2026-11-16
updated: 2026-11-16
tags: [how-to]
scenario: false
---

# Set up an Axis camera with a self-hosted NVR

> How to record an Axis camera on your own Vigiora Server. Set the root password, know the axis-media stream address and how to ask for a smaller stream, know when you need Axis's separate ONVIF account, and see what Vigiora finds by itself.

Axis cameras are made for professional recorders: every model streams over RTSP, and they support ONVIF profiles such as S, G and T. They work well with a self-hosted recorder such as Vigiora Server. Two details differ from most brands: there is one stream address with options rather than a fixed sub-stream path, and ONVIF uses its own accounts.

> **What you need**
>
> - An Axis camera on the same network as the server.
> - A web browser, or AXIS IP Utility to find the camera on the network.
> - A Vigiora Server on the same network. See [Install on Linux](https://vigiora.com/docs/getting-started/install-linux).
>

## Before you start: the root password

1. **Set the root password**

   An Axis camera has no default password. Open its address in a browser (or use AXIS IP Utility or AXIS Device Manager) and set a password for the user `root`.

2. **Add an ONVIF account (only for PTZ)**

   You only need this for pan, tilt and zoom control. From the maker's documentation: Axis keeps ONVIF accounts apart from the camera's other accounts, and on current AXIS OS they are under **Settings → System → ONVIF**. Add an ONVIF account with administrator rights. Using the same user name and password as the camera account you give Vigiora keeps things simple.

3. **Check that ONVIF is on (only for PTZ)**

   On some older firmware ONVIF is off by default. Turn it on in the same place.

## The stream addresses

Replace the user, password and address with your own. RTSP uses port 554.

| Stream | Address |
| --- | --- |
| Main | `rtsp://user:password@192.0.2.26:554/axis-media/media.amp` |
| Smaller stream | `rtsp://user:password@192.0.2.26:554/axis-media/media.amp?resolution=640x360` |
| A stream profile | `rtsp://user:password@192.0.2.26:554/axis-media/media.amp?streamprofile=Quality` |

Axis has one stream address, with options added after `?`. From Axis's VAPIX documentation, the options include `videocodec` (h264, h265 or jpeg), `resolution`, `streamprofile` (a profile you set up on the camera), `audio=0` or `1`, and `camera=` to pick a sensor on a multi-sensor camera. The resolution must be one the camera supports.

The ports that matter: **554** for RTSP, **80** for the web page and ONVIF.

![A text card summarising the Axis stream addresses and ports from this page](https://vigiora.com/articles/img/axis-camera-self-hosted-nvr/cheat-sheet.webp)

*The Axis stream addresses and ports on one card. A text summary of this page, not a screenshot.*

## What Vigiora finds for you

In the [setup wizard](https://vigiora.com/docs/getting-started/setup-wizard), or with **Monitors → Add Monitor → On this network**, give the camera's address and its own login (for example `root`). The next Vigiora Server release finds the stream by itself, with a smaller second stream, and reads the model and serial number from the camera. You only need a separate ONVIF account for PTZ control. In short:

1. **The scan finds the camera** and recognises Axis by its hardware address. Axis cameras also announce themselves over ONVIF discovery.
2. **It asks for the streams over ONVIF** on port 80, when the camera accepts the login. ONVIF gives the main stream and a second, smaller profile as the sub-stream, with the model, firmware and serial.
3. **If ONVIF doesn't answer or refuses the login**, it tries `/axis-media/media.amp`, and, because it knows the camera is an Axis, the `?resolution=640x360` stream as the sub-stream.
4. **It learns the features**: pan, tilt and zoom on Axis PTZ models, the microphone and the speaker. Many Axis models take sound only through an external microphone or accessory, so don't be surprised if a camera shows no microphone.

If ONVIF refuses the login, that no longer stops the connection: Vigiora carries on with the camera's own login. Add the ONVIF account as above only if you want PTZ control, or add the camera by hand with **I have the RTSP URL** and the address above. See [Add a camera by its RTSP address](https://vigiora.com/docs/cameras/add-a-camera#add-a-camera-by-its-rtsp-address).

## Recording: main stream or sub-stream

- **Record the main stream** where detail matters: an entrance, a loading bay, a till.
- **Record the sub-stream** with **Record low quality (sub-stream)** on the other cameras. It saves about 60–80% of disk. See [Main stream or sub-stream?](https://vigiora.com/docs/cameras/recording-and-retention#main-stream-or-sub-stream).
- For full control, create a stream profile on the camera, for example H.264 at 640×360 and 10 fps, and type it as the **Sub stream** in the **Settings** step with `?streamprofile=` and the profile's name.
- The free plan has no camera limit and includes AI on 2 cameras.

## Troubleshooting

- **PTZ doesn't move.** There is no ONVIF account yet, or it has a different password. Add one under **Settings → System → ONVIF**.
- **No sub-stream.** Vigiora found only the main stream. Everything still works, with more bandwidth. When you add the camera, the **Settings** step lets you type a **Sub stream** such as `…/axis-media/media.amp?resolution=640x360`. See [No sub-stream](https://vigiora.com/docs/cameras/troubleshooting-cameras#no-sub-stream).
- **The stream is refused with a resolution.** The camera doesn't offer that size. Pick one from the camera's video settings.
- **Password with special characters.** Write them in percent-encoding in a typed address. See [Address rules](https://vigiora.com/docs/cameras/add-a-camera#address-rules).

## Related docs

1. **Add a camera**

   All the ways to connect a camera: [Add a camera](https://vigiora.com/docs/cameras/add-a-camera).

2. **PTZ**

   Pan, tilt, zoom, presets and patrols: [PTZ cameras](https://vigiora.com/docs/cameras/ptz).

3. **Troubleshooting**

   Missing stream, wrong path or freezes: [Troubleshooting cameras](https://vigiora.com/docs/cameras/troubleshooting-cameras).

---

Source: https://vigiora.com/articles/axis-camera-self-hosted-nvr · Published 2026-11-16
