ONVIF · VMS · Milestone · Genetec · Axis · iVMS · H.265 · 13 min di lettura

Configurazione telecamera ONVIF in VMS: Milestone, Genetec, Axis Camera Station e iVMS

Aggiungere telecamere ONVIF di terze parti a un VMS richiede più che conoscere l'indirizzo IP. La sincronizzazione NTP, la corretta selezione del profilo ONVIF, la versione del driver e la configurazione della porta influenzano se la telecamera trasmette in modo affidabile e se gli eventi di movimento raggiungono il server di registrazione. Questa guida copre i passaggi esatti per le quattro piattaforme VMS più diffuse nelle installazioni commerciali e di smart building.

Prerequisiti per tutte le piattaforme VMS

Questi passaggi si applicano prima di aggiungere qualsiasi telecamera ONVIF a un VMS. Saltarli è la causa più comune di aggiunte fallite e interruzioni intermittenti del flusso.

Assegna IP statico

Le telecamere ONVIF devono avere IP statici sulla VLAN di sorveglianza. Il DHCP causa interruzioni del flusso alla scadenza dei lease. Utilizzare l'interfaccia web della telecamera o lo strumento SADP/Device Manager per assegnare un IP statico, gateway e DNS prima di aggiungere al VMS. Documentare la mappatura IP-telecamera nel disegno as-built.

Sincronizzazione oraria NTP

Mandatory. ONVIF WS-UsernameToken digest authentication requires the camera clock to be within 5 minutes of the VMS server clock. Configure the same NTP server (e.g. the VMS host or a local NTP server) on every camera. Verify in camera web UI: System → Date & Time → NTP. A 6-minute drift causes 'Invalid credentials' errors even with the correct password.

Imposta le credenziali ONVIF

Crea un account utente ONVIF dedicato su ciascuna telecamera (separato dall'account amministratore dell'interfaccia web). La maggior parte delle piattaforme VMS richiede credenziali ONVIF, non quelle di amministratore HTTP. Su Hikvision: Sistema → Gestione utenti → Aggiungi utente → Permesso: Remoto. Su Axis: Sistema → Gestione accessi → Aggiungi utente → Ruolo media ONVIF.

Abilita servizio ONVIF

Alcune telecamere hanno ONVIF disabilitato per impostazione predefinita o hanno una porta ONVIF specifica (predefinita 80 o 8899 su Hikvision). Verificare che ONVIF sia abilitato nell'interfaccia web della telecamera. Su Hikvision DS-2CD: Rete → Impostazioni avanzate → Protocollo di integrazione → Abilita ONVIF, controllare la porta (predefinita 80). Su Dahua: Rete → Integrazione → ONVIF.

Milestone XProtect

Milestone XProtect supporta ONVIF tramite un driver ONVIF dedicato. La versione del driver determina quale profilo (S o T) e quali funzionalità (H.265, metadati) vengono negoziati con la telecamera. Scaricare sempre l'ultimo driver ONVIF da Milestone Download Manager prima di aggiungere telecamere ONVIF.

Milestone XProtect — aggiunta telecamera ONVIF

1. XProtect Management Client → Recording Servers
   → right-click recording server → Add Hardware

2. Add Hardware Wizard:
   → Select "Manually specify hardware" (not auto-detect for ONVIF)
   → Driver: ONVIF Conformant Device (NOT manufacturer-specific driver)
   → Address: http://192.168.1.64/onvif/device_service
   → Port: 80 (or camera's ONVIF port)
   → ONVIF username / password (NOT HTTP admin credentials)

3. Profile selection (appears after connection):
   → Select "ONVIF Profile T" if camera supports H.265 + metadata
   → Select "ONVIF Profile S" for basic H.264 streaming only
   → Profile T enables: H.265 streams, HTTPS, metadata events

4. Recording settings:
   → Default codec: H.265 (if Profile T selected)
   → Stream 1 (live): max resolution, 25fps, H.265 High
   → Stream 2 (record): 15fps, H.265 High, motion-triggered

5. Motion detection:
   → Use "ONVIF Motion" (camera-side analytics) not software motion
   → Reduces CPU load on recording server significantly
   → Enable in Camera Properties → Events → ONVIF Motion

6. Verify: right-click camera → Live → confirm stream + motion events

Milestone XProtect 2023 R1 and later include an updated ONVIF driver (version 15.x) that supports Media2 service for Profile T cameras. If cameras show as "Profile S only" despite Profile T certification, update the ONVIF driver package via Milestone Download Manager and re-add the hardware.

Genetec Security Center

Genetec Security Center utilizza WS-Discovery per il rilevamento delle telecamere ONVIF, rendendo semplice l'aggiunta iniziale delle telecamere su reti correttamente configurate. La procedura guidata di aggiunta unità gestisce automaticamente la negoziazione del profilo.

Genetec Security Center — aggiunta unità ONVIF

1. Config Tool → Video → Archiver → Units → Add an IP unit

2. Discovery method:
   → Auto-discovery (WS-Discovery): cameras on same VLAN appear automatically
   → Manual: enter IP → Unit type: ONVIF → manufacturer: ONVIF Generic

3. Unit addition wizard:
   → Network credentials: ONVIF user/password (not HTTP admin)
   → Genetec negotiates Profile S/T/G/M automatically based on camera certs
   → For Profile T: H.265 codec option appears in camera properties

4. ONVIF-specific settings (Unit Properties → Extensions → ONVIF):
   → Event polling interval: 1000ms (default) → reduce to 500ms for faster alarms
   → Metadata streaming: enable if Profile M camera (analytics bounding boxes)
   → HTTPS transport: enable for Profile T cameras with HTTPS endpoint

5. Recording profile assignment:
   → Camera Properties → Recording → assign recording schedule
   → Codec: select H.265 (HEVC) for Profile T cameras
   → Retention: configure per project requirement

6. Verify: Config Tool → camera → Live → check stream
   Event monitor → trigger motion → verify alarm event appears

Axis Camera Station

Axis Camera Station fornisce un'integrazione nativa e profonda con le telecamere Axis e utilizza ONVIF per l'aggiunta di telecamere di terze parti. Le telecamere ONVIF di terze parti hanno set di funzionalità ridotti rispetto alle telecamere Axis native – alcune funzionalità specifiche Axis (AXIS Object Analytics, elaborazione periferica ARTPEC) richiedono il driver nativo.

Axis Camera Station 5.x — telecamera ONVIF di terze parti

1. ACS Client → Configuration → Cameras → Add Cameras

2. Search results:
   → Axis cameras appear with full model information (native AXIS driver)
   → Third-party ONVIF cameras appear as "ONVIF device" with IP only

3. For ONVIF third-party camera:
   → Select discovered device or click "Add manually"
   → Type: ONVIF
   → Address: camera IP
   → Port: 80 (default) or camera's ONVIF HTTP port
   → Credentials: ONVIF user/password

4. ONVIF profile selection:
   → ACS automatically queries GetProfiles and GetVideoSources
   → Select profile: Profile_1 (usually main stream, high res)
   → Secondary stream: Profile_2 (lower res for mobile/low-bandwidth view)

5. Recording configuration:
   → Schedule: 24/7 or motion-triggered
   → Motion detection: use ONVIF motion (camera-side) if available
   → Resolution: match camera's optimal H.265 resolution
   → Frame rate: 15fps for recording, 25fps for live view

6. Note: AXIS Object Analytics (perimeter detection, occupancy) is
   available ONLY on native Axis cameras, not ONVIF third-party.
   Use camera's own analytics and ONVIF motion event for non-Axis.

Hikvision iVMS-4200

Hikvision iVMS-4200 supporta ONVIF per aggiungere telecamere di terze parti non Hikvision. L'override della porta ONVIF è spesso necessario: molte telecamere utilizzano porte ONVIF non standard.

iVMS-4200 – aggiunta di telecamera ONVIF di terze parti

1. iVMS-4200 → Device Management → Add → IP/Domain

2. Device parameters:
   → Adding Mode: IP/Domain
   → IP Address: camera IP
   → Device Type: ONVIF (from dropdown — not "Encoding Device")
   → Port: 80 (or camera's ONVIF port — CHECK camera web UI)
   → User Name: ONVIF credentials
   → Password: ONVIF credentials

   Frequent issue: cameras default ONVIF to port 8899, not 80.
   Hanwha and Dahua often use port 8080. Always verify in camera UI.

3. ONVIF streaming URL format (for manual RTSP testing):
   rtsp://user:password@192.168.1.64:554/onvif/stream_0
   rtsp://user:password@192.168.1.64:554/Streaming/Channels/101
   (URL format is NOT standardised in ONVIF — query GetStreamUri)

4. Auto-detect: iVMS → Device Management → Auto Search
   → Device type filter: ONVIF
   → Cameras on LAN with WS-Discovery enabled appear automatically
   → Confirm each found device before adding

5. After adding: verify live view in iVMS main interface
   Preview → select camera → confirm stream resolution and codec

iVMS-4200 ha un supporto limitato per ONVIF Profile T nelle versioni precedenti alla 3.5. Aggiorna all'ultima versione di iVMS-4200 prima di aggiungere telecamere Profile T: le versioni precedenti impongono H.264 anche se la telecamera supporta H.265 tramite ONVIF.

H.265 e ONVIF Profile T

ONVIF Profile T è il profilo obbligatorio per i flussi H.265 (HEVC). I dispositivi Profile S non sono tenuti a supportare H.265. Quando si specificano telecamere per la registrazione H.265, richiedere sempre la certificazione Profile T nella documentazione di appalto.

Decodifica GPU del server NVR/VMS

  • ·La decodifica software H.265 è circa 2× più intensiva per la CPU rispetto a H.264 alla stessa risoluzione
  • ·4K H.265 richiede decodifica hardware: NVIDIA GTX 1650+ o Intel UHD 630+ con NVDEC/Quick Sync
  • ·Milestone e Genetec supportano la decodifica H.265 accelerata GPU dalle loro versioni 2022
  • ·Controlla la scheda tecnica del VMS per il numero massimo di stream H.265 4K per server senza GPU

H.265 Main Profile vs Main10

  • ·H.265 Main Profile (8-bit): standard – supportato da tutte le telecamere Profile T e VMS
  • ·H.265 Main10 (10-bit): gamma dinamica più elevata – supporto VMS limitato, non richiesto per la sorveglianza
  • ·Specificare sempre H.265 Main Profile nella configurazione dello stream della telecamera per la massima compatibilità VMS
  • ·H.265 High Efficiency: estensione non standard – da evitare per l'interoperabilità ONVIF

Pianificazione della larghezza di banda

Utilizzare questi valori per il dimensionamento delle porte dello switch di rete, la pianificazione dello storage NVR e i calcoli della capacità di uplink. I valori presuppongono un bitrate costante (CBR) con complessità di scena media (corridoio interno, movimento moderato). Le scene esterne con vegetazione aggiungono il 20–40%.

RisoluzioneFPSBitrate H.264Bitrate H.265Risparmio H.265
2MP (1080p)152–4 Mbit/s1–2 Mbit/s~50%
2MP (1080p)253–6 Mbit/s1,5–3 Mbit/s~50%
4 MP (2560×1440)154–8 Mbit/s2–4 Mbit/s~50%
4 MP (2560×1440)256–12 Mbit/s3–6 Mbit/s~50%
8 MP (4K / 3840×2160)1512–20 Mbit/s6–10 Mbit/s~50%
8 MP (4K / 3840×2160)2520–32 Mbit/s10–16 Mbit/s~50%

Formula di archiviazione: GB/day = (bitrate Mbit/s × 3600 × recording_hours) / 8 / 1000. Esempio: 8MP H.265 a 10 Mbit/s × 24h = 108 GB/giorno per telecamera. Per 30 giorni di conservazione con 16 telecamere: 16 × 108 × 30 = 51,8 TB — pianificare un NVR RAID-6 con ~65 TB utilizzabili.

Modalità di guasto comuni

Porta ONVIF bloccata dal firewall della telecamera

Some cameras run a host-based firewall that restricts ONVIF HTTP access to specific source IP ranges. Symptoms: VMS auto-discovery fails, manual IP addition returns 'connection refused' on port 80/8899. Fix: camera web UI → Security → Firewall → allow VMS server IP, or disable host firewall. Verify with: curl -v http://camera-ip/onvif/device_service from VMS host.

Sincronizzazione NTP disattivata → errore di autenticazione Digest

Camera clock drift > 5 minutes causes WS-UsernameToken digest timestamps to be rejected. VMS shows 'Invalid credentials' even with correct username/password. Fix: camera web UI → System → Date/Time → NTP sync → set same NTP server as VMS. Restart ONVIF service on camera after NTP sync. Verify: camera web UI should show current UTC time within 60s of actual time.

Percorso ONVIF errato — 404 su device_service

ONVIF non impone un percorso URL fisso per il servizio del dispositivo. La maggior parte delle telecamere utilizza /onvif/device_service ma alcune utilizzano /onvif/deviceio_service, /OnvifService o un percorso non standard. Soluzione: controllare la documentazione della telecamera per l'URL del servizio ONVIF. Utilizzare WS-Discovery (onvif-device-test) per ottenere XAddr — la telecamera pubblica il suo URL di servizio effettivo nella risposta ProbeMatch.

H.265 stream connects but VMS shows 'unsupported codec'

Il server VMS non ha la capacità di decodifica software H.265 o la versione del driver ONVIF non richiede H.265 tramite il servizio Media2. Soluzione: verificare che la versione VMS supporti H.265 (controllare le note di rilascio). Aggiornare il driver ONVIF all'ultima versione. Nelle impostazioni ONVIF della telecamera, confermare che il flusso H.265 sia configurato come codec primario — alcune telecamere usano H.264 di default sul profilo ONVIF anche quando H.265 è disponibile.

Hai bisogno di telecamere ONVIF commissionate nel tuo VMS in loco?

Gestiamo la messa in servizio di telecamere ONVIF in Milestone XProtect, Genetec e Axis Camera Station – inclusa sincronizzazione NTP, configurazione H.265 Profile T, integrazione eventi KNX e verifica del flusso registrato.

Richiedi un preventivo →
Caricamento in corso ...
Torna all'inizio