Skip to content

PTZ Control

Meridian VMS provides full pan-tilt-zoom (PTZ) control for ONVIF-capable cameras. Operators can control cameras from the Live View interface using on-screen controls, keyboard shortcuts, USB joysticks, or professional CCTV keyboards.

PTZ commands are sent to cameras via the ONVIF PTZ service. When a camera is added with ONVIF discovery or manual ONVIF configuration, its PTZ capabilities are detected automatically.

OperationDescription
Continuous PanContinuous horizontal movement (left/right) at variable speed
Continuous TiltContinuous vertical movement (up/down) at variable speed
Continuous ZoomContinuous zoom in/out at variable speed
StopStop all PTZ movement
Absolute MoveMove to a specific pan/tilt/zoom position
Relative MoveMove by a relative offset from current position
Preset RecallMove to a saved preset position
Preset SaveSave the current position as a named preset
HomeReturn to the camera’s home position

PTZ speed is adjustable from 0.1 (slowest) to 1.0 (fastest). The speed applies to continuous pan, tilt, and zoom operations. Higher speed values result in faster camera movement.

On-screen controls use a virtual joystick where distance from center determines speed — moving the joystick slightly produces slow movement, while pushing it to the edge produces full-speed movement.

The PTZ control panel is available in Live View when viewing a PTZ-capable camera. Click the PTZ button on the tile toolbar to open the control overlay.

ControlDescription
Directional pad8-direction movement (pan/tilt combinations)
Zoom sliderZoom in/out with a vertical slider
Speed controlAdjust movement speed
Preset listDropdown of saved presets with recall buttons
Home buttonReturn to the home position

PTZ cameras can be controlled from the keyboard when a PTZ-enabled tile is selected in Live View:

KeyAction
Arrow LeftPan left
Arrow RightPan right
Arrow UpTilt up
Arrow DownTilt down
+ / =Zoom in
-Zoom out
SpaceStop all movement
HomeGo to home position
1-9Recall preset 1-9

Hold Shift with arrow keys for slower (fine) movement. Hold Ctrl with arrow keys for faster movement.

Meridian VMS supports USB joysticks and gamepads for PTZ control via the browser’s Gamepad API. Any HID-compliant joystick is supported — no drivers or plugins required.

Joystick AxisPTZ Action
Left stick XPan (left/right)
Left stick YTilt (up/down)
Right stick Y or TriggerZoom (in/out)

Joystick deflection is proportional — small movements produce slow PTZ speed, full deflection produces maximum speed. The dead zone is configurable to prevent drift.

ButtonAction
Button 1 (A)Recall preset 1
Button 2 (B)Recall preset 2
Button 3 (X)Recall preset 3
Button 4 (Y)Go to home position
Left bumperPrevious camera in grid
Right bumperNext camera in grid

Joystick settings are available at Settings > Controls > Joystick:

SettingDefaultDescription
Enable JoystickOnMaster toggle for joystick input
Dead Zone0.15Minimum axis deflection to register movement (0.0-0.5)
Sensitivity1.0Speed multiplier for joystick input (0.1-2.0)
Invert YOffInvert tilt direction (push forward = tilt down)

Meridian VMS supports the Uniview KB1100 professional CCTV keyboard, a rack-mountable controller with a 3-axis joystick, number pad, and function buttons. The keyboard communicates over a reverse-engineered UDP protocol.

The KB1100 sends UDP packets on port 60000. Configure the keyboard’s target IP to the management server address. The management server translates KB1100 commands into ONVIF PTZ calls.

ControlPTZ Action
3-axis joystickPan (X), tilt (Y), zoom (twist)
Number pad + EnterEnter camera number to select
Preset button + numberRecall preset by number
Set + numberSave current position as preset
MenuToggle PTZ control panel
Mon buttonSelect monitor/grid tile

The KB1100 uses a fixed-length UDP packet:

Offset Length Description
0x00 2 Header (0xA5 0x01)
0x02 1 Command type
0x03 1 Joystick X axis (0x00-0xFF, center 0x80)
0x04 1 Joystick Y axis (0x00-0xFF, center 0x80)
0x05 1 Zoom axis (0x00-0xFF, center 0x80)
0x06 2 Button state bitmask
0x08 1 Checksum

Other CCTV keyboards that use the Pelco-D protocol (serial RS-485 or TCP/IP) are also supported. Configure the serial port or TCP endpoint in Settings > Controls > CCTV Keyboard:

SettingDescription
ProtocolPelco-D or Pelco-P
ConnectionSerial port path (e.g., /dev/ttyUSB0) or TCP address
Baud rateSerial baud rate (default: 9600)
Camera mappingMap Pelco address numbers to Meridian cameras

PTZ presets save specific camera positions for quick recall.

From the PTZ control panel:

  1. Move the camera to the desired position.
  2. Click Save Preset and enter a name (e.g., “Gate Entrance”, “Parking Overview”).
  3. The preset is saved on both the camera (ONVIF) and in Meridian VMS.

Presets are recalled from:

  • The preset dropdown in the PTZ control panel
  • Keyboard number keys (1-9)
  • CCTV keyboard number pad
  • Alarm definitions (move to preset on alarm trigger)
  • Home Assistant meridian.ptz_command service

Configure a preset tour to cycle through multiple presets automatically:

SettingDescription
PresetsOrdered list of presets in the tour
Dwell timeHow long to stay at each preset (seconds)
SpeedMovement speed between presets
LoopRepeat the tour continuously
MethodEndpointDescription
POST/api/cameras/{id}/ptzSend a PTZ command (pan, tilt, zoom, stop)
GET/api/cameras/{id}/ptz/presetsList saved presets
POST/api/cameras/{id}/ptz/presetsSave a new preset
POST/api/cameras/{id}/ptz/presets/{preset}/recallRecall a preset
DELETE/api/cameras/{id}/ptz/presets/{preset}Delete a preset
POST/api/cameras/{id}/ptz/homeMove to home position