Skip to content

Latest commit

 

History

History
115 lines (77 loc) · 2.63 KB

File metadata and controls

115 lines (77 loc) · 2.63 KB

Using PTZControlConsole with Stream Deck

PTZControlConsole can be used from Stream Deck buttons by running command-line actions. This is useful when a camera action should be triggered from a physical button without opening the PTZControl Windows GUI.

Illustrative Stream Deck command setup mockup

Illustrative mockup. The exact Stream Deck action UI depends on the installed Stream Deck software version and plugins.

Preparation

  1. Download the matching Windows console package from the GitHub release page.
  2. Extract the ZIP file to a stable folder, for example:
C:\Tools\PTZControlConsole
  1. Open a terminal in that folder and verify that the camera is visible:
.\PTZControlConsole.exe list-devices
.\PTZControlConsole.exe cam-device-info --camera "PTZ Pro 2"

Use --device-path instead of --camera when camera names are ambiguous.

Recommended Stream Deck action style

Create a Stream Deck button that runs a command or starts a program. The exact action name depends on the Stream Deck software and installed plugins. Use the full path to PTZControlConsole.exe and pass the required arguments.

Example command:

C:\Tools\PTZControlConsole\PTZControlConsole.exe restore-preset 1 --camera "PTZ Pro 2"

If the Stream Deck action separates program and arguments, use:

Program:

C:\Tools\PTZControlConsole\PTZControlConsole.exe

Arguments:

restore-preset 1 --camera "PTZ Pro 2"

Useful button examples

Restore preset 1:

restore-preset 1 --camera "PTZ Pro 2"

Move to the Logitech home position:

restore-home --target move --camera "PTZ Pro 2"

Zoom in by 10 percent:

zoom-relative 10 --mode percent --camera "PTZ Pro 2"

Zoom out by 10 percent:

zoom-relative -10 --mode percent --camera "PTZ Pro 2"

Move pan right by 10 percent:

move-relative --mode percent --pan 10 --camera "PTZ Pro 2"

Move pan left by 10 percent:

move-relative --mode percent --pan -10 --camera "PTZ Pro 2"

Set a unique Windows DirectShow camera name:

set-directshow-camera-name --device-path "DevicePath" --friendlyname "Stage Left" --acknowledge-warning

Only use the DirectShow rename command intentionally. It writes to the Windows HKLM registry and requires administrator rights.

Camera selector choices

Use one selector per button:

--camera "NamePart"
--device-path "DevicePath"
--slot 1

--camera is readable and works well when camera names are unique. --device-path is verbose but precise. --slot is short, but depends on the camera enumeration order.