---
title: Best Camera Configuration for AiVR
description: Recommended Codec, Frame Rate, Resolution and Bitrate Settings for Cameras Connected to the AiVR
---

[Skip to content](https://help.alocity.com/knowledge/c.-best-camera-configuration-for-aivr#main-content)

English

Show submenu for translations

[SUBMIT A TICKET HERE](https://help.alocity.com/knowledge/kb-tickets/new?hsLang=en)

[![Alocity](https://help.alocity.com/hs-fs/hubfs/alocity-logo%20Full.png?width=181&height=48&name=alocity-logo%20Full.png)](https://www.alocity.com/)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [SUBMIT A TICKET HERE](https://help.alocity.com/knowledge/kb-tickets/new)
- [Contact Support Now](mailto:support@alocity.com)

[Contact Support Now](mailto:support@alocity.com)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Alocity Help Center (Knowledge Base)](https://help.alocity.com/knowledge?hsLang=en)
2. [AiVR Installation, Setup And Configuration Guide](https://help.alocity.com/knowledge/aivr-installation-setup-and-configuration-guide?hsLang=en)
3. [Configuration Tips](https://help.alocity.com/knowledge/aivr-installation-setup-and-configuration-guide?hsLang=en#configuration-tips)

# Best Camera Configuration for AiVR

## Recommended Codec, Frame Rate, Resolution and Bitrate Settings for Cameras Connected to the AiVR

There's no single camera setting that works for every installation. Each camera is configured in one of two directions, depending on what's limiting it, and always within the limits of the AiVR it connects to:

- **Tune down (Efficient).** For capable, modern cameras, the limit is usually upload bandwidth and disk, not image quality. Lowering frame rate and capping bitrate keeps cloud backup and recording healthy without hurting detection.
- **Tune up (Detection Boost).** For older and lower-cost cameras, the limit is usually image quality. At low bitrates their encoders produce blocky, smeared frames, and the AI misses or misreads what's in them. More bitrate, cleaner keyframes and a faster shutter often fix problems that look like AI faults.
- **Stay inside the AiVR's budget.** Decoding, memory, disk and upload are shared by every camera on the AiVR, so every Boost camera spends capacity that has to come from somewhere.

> **IMPORTANT:** The AiVR can't change camera settings. Every setting in this article is made on the camera's own web page. Work through it in order: classify each camera (section 2), apply a profile (sections 3–5), check the totals (section 7), then use the troubleshooting table.   
> 
> Please navigate to this [article](https://help.alocity.com/knowledge/common-rtsp-stream-urls?hsLang=en)to learn about RTSP streams, all settings must be applied to the stream alocity uses.

---

### 1. How the AiVR Uses a Camera Stream

The AiVR pulls one stream from each camera and uses it two ways at once. The **recording path** stores the video exactly as received and uploads it for cloud backup, so every bit costs disk and upload. The **AI path** decodes every frame at full resolution, then passes one frame in five to the AI, which analyzes a 640 × 640 copy.

| Camera setting | Effect on recording and upload | Effect on AI detection |
| --- | --- | --- |
| Frame rate | Linear: half the fps is roughly half the data | The AI analyzes fps ÷ 5 frames per second: 30 fps → 6, 15 fps → 3, 10 fps → 2. Fast targets can cross a zone between analyzed frames at low fps. |
| Resolution | Major: more pixels means more bitrate | Every frame is decoded at full size, which costs AiVR capacity. Detection sees a 640-pixel copy, so resolution above 1080p adds little. |
| Bitrate | Direct: sets GB per day and upload Mbps | Little effect at moderate compression; detection drops sharply under heavy compression, worst for small, fast or poorly lit targets |
| Keyframe (I-frame) interval | A shorter interval adds some bitrate | A lost packet corrupts video until the next keyframe, so long intervals mean longer stretches of damaged frames |
| Shutter, gain, noise reduction | Noise at night raises bitrate | Motion blur and noise hide the shapes the detector looks for |

The recording path rewards turning settings down; the AI path punishes turning the wrong ones down too far. Frame rate, bitrate and shutter are where the two pull in opposite directions.

---

### 2. Classify Each Camera

Before changing any setting, give each camera (each view, on multi-sensor cameras) a **role** and a **capability**. The pair decides the profile.

**Role:** **Record only** (no AI zones), **General detection** (people and vehicles, intrusion, loitering at walking pace), **Fast motion** (line crossing, vehicles, gates, anything faster than walking) or **Detail agents** (face recognition, person of interest, license plates).

**Capability:** treat a camera as **older or low-cost** if any of these is true:

- It doesn't hold the frame rate, bitrate or keyframe interval you set.
- Video turns blocky or smeared when people move, especially at night.
- It packs a high megapixel count onto a small sensor (for example 8MP on a sensor sized for 2MP).
- It has no keyframe interval setting, only a vendor "smart" codec mode, or firmware several years old.

Everything else is **modern**.

| Role | Modern camera | Older or low-cost camera |
| --- | --- | --- |
| Record only | Record-only | Record-only |
| General detection | Efficient | Detection Boost |
| Fast motion | Efficient, at 20–30 fps | Detection Boost |
| Detail agents (face, POI, LPR) | Detection Boost | Detection Boost, after checking pixel density (section 5) |

---

### 3. Apply a Profile

Create one dedicated stream profile named **Alocity** on each camera, so its settings stay separate from other recorders and are easy to find on the next visit. Use these values as starting points, then confirm the picture and the AiVR totals.

| Setting | Efficient | Detection Boost | Record-only |
| --- | --- | --- | --- |
| Resolution | 1920×1080; 1280×720 for doors and hallways; fisheyes keep their native square resolution | Where the camera's image is cleanest, usually 1920×1080 even if it offers more; native only when a detail agent needs the pixels | 1280×720 to 1920×1080 |
| Frame rate | 15 fps; 20–30 fps for fast motion | 25–30 fps, so the AI analyzes 5–6 frames per second | 10–15 fps |
| Codec | H.265 if supported, otherwise H.264 | H.264 (High or Main profile) unless the camera's H.265 is verified clean | H.265 if supported |
| Rate control | VBR with an average and a hard maximum | VBR with a high maximum, or CBR set high enough for night; image quality at highest | VBR with a maximum |
| Keyframe interval | 1–2× the frame rate (one every 1–2 seconds) | Equal to the frame rate (one per second) | One every 2 seconds |
| Smart codecs | Off | Off | Off |
| On-screen text (time, name) | Outside detection zones | Off, or in a corner outside detection zones | Any |
| Shutter | Auto, with a maximum exposure set (section 5) | Fixed maximum exposure for the motion in the scene | Auto |

#### Starting bitrates

| Stream type | Efficient (H.265, 15 fps) avg / max, Mbps | Detection Boost (H.264, 25–30 fps) avg / max, Mbps |
| --- | --- | --- |
| Door or hallway, 1280×720 | 0.4–0.8 / 1.2 | 1.5–2.5 / 4 |
| General, 1920×1080 | 1.5–2.5 / 4 | 4–6 / 8 |
| Busy scene, 1920×1080 | 2.5–3.5 / 5 | 5–7 / 10 |
| Fisheye, 3008×3008 | 4–6 / 8 | Not recommended: use Efficient and add a separate camera for the detection zone |

The Efficient bands are field-tested values that keep AiVRs within their upload capacity. The Boost bands are derived from them: H.264 needs about 30–50% more bitrate than H.265, and doubling the frame rate adds roughly 30–60%. Confirm Boost values against the picture before rolling out.

> **IMPORTANT:** Turn off smart codecs and variable-keyframe features: **Dynamic GOV**, **Dynamic FPS**, WiseStream, H.264+/H.265+, Smart Codec and Zipstream. They change the keyframe interval on the fly and strip detail from areas the camera judges unimportant. With Dynamic FPS on, a quiet scene can drop to 1 fps, so the first moments of an event are choppy in playback and the AI can miss it.  Smart codecs have different names by manufacturer:

---

### 4. Getting the Most from Older and Low-Cost Cameras

With a weak camera, put its limited processing into a clean, steady stream at a moderate resolution, rather than spreading it across megapixels and extra streams it can't encode well.

#### Turn these up

- **Bitrate and quality.** Raise the maximum bitrate and set image quality to the highest level.
- **Night headroom.** At night noise consumes bitrate. A VBR maximum, or a CBR value set high enough for night, keeps the picture from collapsing into blocks.
- **Frame rate, to 25–30 fps,** with keyframes **one per second**.
- **Light.** Adding infrared or visible light improves the image more than any encoder setting, and cuts low-light bitrate dramatically.
- **Firmware.** Update before tuning; older firmware often ignores encoder settings.

#### Leave these alone or turn them down

- **Resolution.** Don't run a budget camera at its maximum megapixels. It costs AiVR capacity, and a high-megapixel small sensor is often worse at night than a 2MP one.
- **Extra streams.** Turn off substreams, third streams and recording to the camera's own NVR if they aren't used.
- **On-camera analytics.** Turn off built-in motion and smart detection when the AiVR does the analytics.
- **Noise reduction.** Use as little as you can; strong noise reduction smears moving objects.

> **Tip:** A Boost camera at 30 fps costs the AiVR about twice the decoding of the same camera at 15 fps, and two to three times the upload of an Efficient camera. Boost only the cameras that cover detection zones.

---

### 5. Image Settings That Affect AI

Encoder settings decide how much detail survives compression; image settings decide how much detail exists in the first place. These apply to every profile.

#### Shutter (maximum exposure time)

Left on auto, most cameras use the slowest shutter the frame rate allows, so at 15 fps a camera can expose for up to 1/15 s at night and moving people turn into streaks. Set a maximum exposure for the motion in the scene:

| Scene | Maximum exposure |
| --- | --- |
| Indoor, people walking | 1/100 to 1/250 s |
| Vehicles | 1 s ÷ (18 × top speed in mph), for example 1/500 s at 25 mph |
| Static scenes, record only | Auto |

A faster shutter needs more light. If the night picture turns dark and noisy, add infrared or visible light rather than slowing the shutter back down.

#### Pixel density on the target

| Level (IEC 62676-4) | Pixels per meter | Use for |
| --- | --- | --- |
| Detection | 25 | — |
| Observation | 62 | Plan AiVR detection zones at this level or better |
| Recognition | 125 | — |
| Identification | 250 | Face recognition and person-of-interest alerts, on faces |

Get density by narrowing the field of view or moving the camera closer, not by raising resolution on a weak camera.

#### Night, infrared and placement

- Keep infrared from reflecting off nearby walls, eaves or housings into the lens.
- Check focus at night as well as by day; focus can shift under infrared unless the lens is IR-corrected.
- Avoid color mode at night unless there's real light on the scene.
- Aim detection cameras so the zone fills a good part of the frame, and keep bright windows and headlights out of the main view. Use WDR only where a scene is backlit.
- Finalize the angle, zoom and focus before drawing AI zones; moving the camera later means redrawing them. Return PTZ cameras to a home preset so zones line up.

#### By camera type

| Camera type | Resolution | Tip |
| --- | --- | --- |
| Dome / turret / bullet | 1080p (2MP) | The everyday default |
| Small indoor dome | 720p | Small rooms and hallways |
| Outdoor bullet | 1080p–4MP | Plan bitrate headroom for rain, foliage and night IR |
| 4K dome or bullet | 4K (8MP) | Costs 4× the decoding of 1080p at the same frame rate |
| Fisheye | Native | Set raw and dewarped channels separately; add only what's needed |
| Multi-sensor | Per sensor | Add each sensor as its own stream |
| PTZ | 1080p–4K | Return to a home preset so zones line up |
| License plates (LPR) | 1080p or higher | Never 720p. Aim tight and head-on at the lane; WDR on |

---

### 6. Check Your Cameras in the Control Center

The Control Center reviews each camera's actual recording and recommends changes.

1. Go to **AiVR**, click the AiVR's name and open the **Storage** tab.
2. Scroll to **Yesterday's storage by camera**. Each row shows a full calendar day for one camera, with a status of warning, info or ok.
3. Expand a row to see its codec, resolution, frame rate, bitrate mode, average and peak bitrate, and recommendations.

![](https://help.alocity.com/hs-fs/hubfs/Screenshot%202026-11-02%20164514.png?width=670&height=332&name=Screenshot%202026-11-02%20164514.png)

| Recommendation | What to do on the camera |
| --- | --- |
| **Encode in H.265** | Switch from H.264 to H.265 (Efficient and Record-only cameras). H.265 stores the same footage in roughly 35–45% less space. |
| **Switch to variable bitrate** | Change CBR to VBR with a maximum, so quiet hours use less storage. |
| **Frame rate above target** | Lower to 15 fps unless the camera covers fast motion or is a Detection Boost camera. |
| **Fleet GB outlier** | This camera stores much more than others. Review its resolution, bitrate and smart-codec settings. |

When a camera is set correctly, the row reads **Matches the recommended profile**.

> **Note:** The Control Center's recommendations target the Efficient profile. Detection Boost cameras will show "frame rate above target" or H.264 recommendations by design; leave them as set.

---

### 7. Stay Inside the AiVR's Limits

Before finalizing, run the four checks: stream count, decoding units, upload and disk. An AiVR that fails any of them drops frames, falls behind on cloud backup or becomes unstable. See [Sizing Your AiVR](https://help.alocity.com/knowledge/sizing-your-aivr?hsLang=en).

---

### 8. Troubleshooting Picture and Detection Problems

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| Actual frame rate lower than set | Camera encoder overloaded | Turn off substreams and third streams, lower resolution, update firmware |
| Blocky or smeared video on movement, worst at night | Bitrate maximum too low; smart codec on; low CBR value | Raise the maximum (Detection Boost bands); turn off smart codecs; use VBR with a high maximum |
| Gray or broken frames for several seconds | Packet loss plus a long keyframe interval | Keyframe every 1 second; check cabling, switch ports and wireless bridges |
| Fast-moving people or vehicles missed | Frame rate too low (AI sees fps ÷ 5); motion blur from a slow shutter | 25–30 fps on that camera; set a maximum exposure (section 5) |
| Distant people missed | Too few pixels on the target | Narrow the field of view or add a camera; aim for 62 pixels per meter in the zone |
| Missed or false detections only at night | Gain noise; IR reflection; insects or webs near the IR lights; color mode in the dark | Add light; move or shield the camera; clean the housing; use black-and-white at night |
| Recording gaps on every camera at the same time | Recording drive stalling (consumer SMR drive) | Contact Alocity support to confirm the drive; use a surveillance-class drive or SSD |
| Recording gaps on one camera | That camera's stream dropping | Check its power, cabling, address and stream settings |
| Cloud backup falling behind | Upload below the sum of camera bitrates plus 20% | Move cameras without detection zones to Efficient or Record-only, then re-check (see [Sizing Your AiVR](https://help.alocity.com/knowledge/sizing-your-aivr?hsLang=en)) |
| Remote live view fails, local view works | Outbound TCP 8554 blocked, or TLS inspection on | Allow the outbound ports in [Alocity AiVR Network Requirements](https://help.alocity.com/knowledge/alocity-aivr-network-requirements?hsLang=en); exempt the AiVR from SSL/TLS inspection |

For problems adding cameras, see [Adding Cameras to Your AiVR](https://help.alocity.com/knowledge/b.-adding-cameras-to-you-aivr?hsLang=en).

For questions or assistance, please contact your account manager or email [support@alocity.com](mailto:support@alocity.com).

- [Quick Start Guides](https://help.alocity.com/knowledge/quick-start-guides?hsLang=en)
- [Alocity Control Center Guide](https://help.alocity.com/knowledge/alocity-control-center-guide?hsLang=en#main-content)

    - [Software and Account General Setup](https://help.alocity.com/knowledge/alocity-control-center-guide?hsLang=en#software-and-account-general-setup)
    - [Video Security Management](https://help.alocity.com/knowledge/alocity-control-center-guide?hsLang=en#video-security-management)
    - [User and Group Management](https://help.alocity.com/knowledge/alocity-control-center-guide?hsLang=en#user-and-group-management)
    - [Access Control Management](https://help.alocity.com/knowledge/alocity-control-center-guide?hsLang=en#access-control-management)
    - [Intercom Management](https://help.alocity.com/knowledge/alocity-control-center-guide?hsLang=en#intercom-management)
    - [Aimee](https://help.alocity.com/knowledge/alocity-control-center-guide?hsLang=en#aimee)
- [Alocity 1id Mobile App Guide](https://help.alocity.com/knowledge/alocity-1id-mobile-app-guide?hsLang=en#main-content)

    - [Resident & tenant guide](https://help.alocity.com/knowledge/alocity-1id-mobile-app-guide?hsLang=en#resident-tenant-guide)
    - [Mobile Credential Users and Super Admins Guide](https://help.alocity.com/knowledge/alocity-1id-mobile-app-guide?hsLang=en#mobile-credential-users-and-super-admins-guide)
- [AiVR Installation, Setup And Configuration Guide](https://help.alocity.com/knowledge/aivr-installation-setup-and-configuration-guide?hsLang=en#main-content)

    - [First Steps](https://help.alocity.com/knowledge/aivr-installation-setup-and-configuration-guide?hsLang=en#first-steps)
    - [Setup and configuration](https://help.alocity.com/knowledge/aivr-installation-setup-and-configuration-guide?hsLang=en#setup-and-configuration)
    - [Configuration Tips](https://help.alocity.com/knowledge/aivr-installation-setup-and-configuration-guide?hsLang=en#configuration-tips)
    - [AI Video Agents](https://help.alocity.com/knowledge/aivr-installation-setup-and-configuration-guide?hsLang=en#ai-video-agents)
- [F3D100 Installation, Setup And Configuration Guide](https://help.alocity.com/knowledge/f3d100-installation-setup-and-configuration-guide?hsLang=en#main-content)

    - [First Steps](https://help.alocity.com/knowledge/f3d100-installation-setup-and-configuration-guide?hsLang=en#first-steps)
    - [F3D100 Installation and Wiring](https://help.alocity.com/knowledge/f3d100-installation-setup-and-configuration-guide?hsLang=en#f3d100-installation-and-wiring)
    - [I/O Controller Installation (F3D100)](https://help.alocity.com/knowledge/f3d100-installation-setup-and-configuration-guide?hsLang=en#i-o-controller-installation-f3d100)
    - [Connecting the F3D100 to 3rd Party readers and controllers](https://help.alocity.com/knowledge/f3d100-installation-setup-and-configuration-guide?hsLang=en#connecting-the-f3d100-to-3rd-party-readers-and-controllers)
- [AI-1000 Installation, Setup And Configuration](https://help.alocity.com/knowledge/ai-1000-installation-setup-and-configuration?hsLang=en#main-content)

    - [First Steps](https://help.alocity.com/knowledge/ai-1000-installation-setup-and-configuration?hsLang=en#first-steps)
    - [AI-1000 Installation and Wiring](https://help.alocity.com/knowledge/ai-1000-installation-setup-and-configuration?hsLang=en#ai-1000-installation-and-wiring)
    - [I/O Controller Installation](https://help.alocity.com/knowledge/ai-1000-installation-setup-and-configuration?hsLang=en#i-o-controller-installation)
- [Mercury Installation, Setup And Configuration Guide](https://help.alocity.com/knowledge/mercury-installation-setup-and-configuration-guide?hsLang=en#main-content)

    - [First Steps](https://help.alocity.com/knowledge/mercury-installation-setup-and-configuration-guide?hsLang=en#first-steps)
    - [Setup and Configuration](https://help.alocity.com/knowledge/mercury-installation-setup-and-configuration-guide?hsLang=en#setup-and-configuration)
- [Elevator Control](https://help.alocity.com/knowledge/elevator-control?hsLang=en#main-content)

    - [First Steps](https://help.alocity.com/knowledge/elevator-control?hsLang=en#first-steps)
    - [Elevator Control Configuration](https://help.alocity.com/knowledge/elevator-control?hsLang=en#elevator-control-configuration)
- [FAQ'S](https://help.alocity.com/knowledge/faqs?hsLang=en#main-content)

    - [Frequently Asked Questions (FAQ'S)](https://help.alocity.com/knowledge/faqs?hsLang=en#frequently-asked-questions-faqs)
    - [Common Problems Troubleshooting](https://help.alocity.com/knowledge/faqs?hsLang=en#common-problems-troubleshooting)
- [Release Notes And Versions History](https://help.alocity.com/knowledge/release-notes-and-versions-history?hsLang=en)

# Alocity

alocity.com Help Center

Copyright © 2026, Alocity