<commit_before>---
title: "ONVIF"
description: "Communicate with your agents through MQTT and ONVIF."
lead: "Communicate with your agents through MQTT and ONVIF."
date: 2020-10-06T08:49:31+00:00
lastmod: 2020-10-06T08:49:31+00:00
draft: false
images: []
menu:
  hub:
    parent: "hub"
weight: 305
toc: true
---

When adding and deploying your Kerberos Agents you have [the option to enable ONVIF](/factory/getting-started/#adding-a-new-deployment) integration. Once enabled and connected properly to your camera using ONVIF, you can leverage specific functions and features of the camera, such as as PTZ, Streaming Profiles, etc. Which features are available depends on the camera you are using, and [which ONVIF profiles](https://www.onvif.org/profiles) are supported.

When connecting your Kerberos Agents to Kerberos Hub, you can start leveraging those capabilities. This means that certain ONVIF actions are forwarded from Kerberos Hub to the (edge deployed) Kerberos Agents. The forwarding is happening through the MQTT bidirectional connection you have setup. In other words this setup allows you to control your cameras from the internet without needing any port forwarding or special network sessions.

![MQTT Kerberos Hub architecture](mqtt-kerberos-hub.svg)

## PTZ

One of the key elements of ONVIF is the ability to control PTZ or use and configure presets, without using the builtin controls and application of the camera provider. By leveraging the ONVIF protocol providers such as Kerberos.io can leverage capabilities such as PTZ in its own application and user interface. 

This brings several of advantages, such as an unified experience independent of the camera brand, which usually end up in more scalable and well designed user interfaces. At least that's what our mission is at Kerberos.io.

When browsing to the livestream page of a specific camera or groups of camera, you will see some of the PTZ functions visualised. Using the pan title, you can move the camera from left to right, top to bottom or the other way around. By pressing the center button, you will move the camera to its center location.

![PTZ on Kerberos Hub](ptz.gif)

A couple of more features will be added shortly and are scheduled on our roadmap: such as Zoom out and Zoom in control, and the ability to set/get presets PTZ positions.
<commit_msg>Remove spaces<commit_after>---
title: "ONVIF"
description: "Communicate with your agents through MQTT and ONVIF."
lead: "Communicate with your agents through MQTT and ONVIF."
date: 2020-10-06T08:49:31+00:00
lastmod: 2020-10-06T08:49:31+00:00
draft: false
images: []
menu:
  hub:
    parent: "hub"
weight: 305
toc: true
---

When adding and deploying your Kerberos Agents you have [the option to enable ONVIF](/factory/getting-started/#adding-a-new-deployment) integration. Once enabled and connected properly to your camera using ONVIF, you can leverage specific functions and features of the camera, such as as PTZ, Streaming Profiles, etc. Which features are available depends on the camera you are using, and [which ONVIF profiles](https://www.onvif.org/profiles) are supported.

When connecting your Kerberos Agents to Kerberos Hub, you can start leveraging those capabilities. This means that certain ONVIF actions are forwarded from Kerberos Hub to the (edge deployed) Kerberos Agents. The forwarding is happening through the MQTT bidirectional connection you have setup. In other words this setup allows you to control your cameras from the internet without needing any port forwarding or special network sessions.

![MQTT Kerberos Hub architecture](mqtt-kerberos-hub.svg)

## PTZ

One of the key elements of ONVIF is the ability to control PTZ or use and configure presets, without using the builtin controls and application of the camera provider. By leveraging the ONVIF protocol providers such as Kerberos.io can leverage capabilities such as PTZ in its own application and user interface. 

This brings several of advantages, such as an unified experience independent of the camera brand, which usually end up in more scalable and well designed user interfaces. At least that's what our mission is at Kerberos.io.

When browsing to the livestream page of a specific camera or groups of camera, you will see some of the PTZ functions visualised. Using the pan title, you can move the camera from left to right, top to bottom or the other way around. By pressing the center button, you will move the camera to its center location.

![PTZ on Kerberos Hub](ptz.gif)

A couple of more features will be added shortly and are scheduled on our roadmap: such as Zoom out and Zoom in control, and the ability to set/get presets PTZ positions.
{'fraction_non_alphanumeric': 0.050757091064192794, 'fraction_numerical': 0.016634676903390915, 'mean_word_length': 4.698663426488457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5599122', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1196, 'n_words': 693}