Adding ONVIF Multi Lens cameras and Encoders

This article assumes 6.14 or later. Earlier versions needed manual configuration.

Auto mode

Configure the camera in the normal way, by selecting a camera or encoder device from the discover list and clicking the [<--] arrow, or clicking [+] and typing in the IP address. Ensure the group has type "Auto" (which is the default) and ensure this camera has a subunit of 1 which means the first camera in an encoder or first lens on a multisensor camera.

Add another, typically by clicking [<--] again. It will automatically give it a subunit of 2. Click this button the correct number of times to add the correct number of cameras from that device. All will be added to the same group and will select different lens inputs by setting different subunits.

ONVIF Manual Profile mode

Configure the camera in the normal way, by selecting a camera from the discover list and clicking the [<--] arrow, then editing the group to select a type of "ONVIF". Configure the Profile appropriate for input 1. Note that if subunit is 1 or unset, then the Profile will define which video input is used, so ensure you've selected a Profile which uses input 1.

Add another camera, typically by clicking [<--] again. It will automatically give it a subunit of 2. Ensure the group is correct. Click this button the correct number of times to add the correct number of cameras from that device. All will be added to the same group and will select different lens inputs. For subunits or 2 or more, the profile will "fuzzy match" against the configured profile so it will chose a profile with a similar name with the correct Video Source defined by the subunit parameter.

An alternative, legacy, method can be used: do not define a subunit (set it to 1) and select the Video Source by selecting a Profile which includes an appropriate Video Source. This means a separate Camera Group is needed for each subunit, which is not usually desirable, but was the method of setting up such cameras prior to 6.14. Note that this is the reason why subunit 1 is requires the Profile be an exact match.

Note that the <f> request flag can be used to force fuzzy matching for all subunits, thus ensuring that subunit 1 is treated the same as subunit 2 and later. This is not usually needed.

Ensure that the two profiles configured for first and second stream are for the same lens (same camera) which should be the one specified in subunit, if any. If the two lenses are different video sources (different lenses or cameras), the "fuzzy match" code will attempt to match a second profile which has the same lens as the first and you might not get the profile you requested.

ONVIF Legacy mode (6.12 and earlier)

For each camera, select a Profile with an which includes an appropriate Video Source. Often these are called "Input_1 h264" and "Input_2 h264" or similar. Some cameras do not provide different profile names for different video sources, and this method cannot be used.