Skip to content

ptzsimA PTZ camera for your test bench.

Test camera control without camera hardware. Connect over ONVIF, VISCA, Pelco-D or NDI and watch the same simulated camera respond.

CIDocsCoverageLatest releasePyPIPython versionsLicense: MITConventional Commits

Control the camera from your terminal ​

PTZ simulator terminal dashboard showing camera controls, presets, recent commands and a text-mode viewfinder

The terminal dashboard combines camera status, presets, a command log that marks protocol errors, and a text-mode viewfinder. Open the image to zoom in.

Find the landmarks ​

The camera looks at a landscape with mountains, a house, a UFO beaming up a cow, billboards with VISCA and ONVIF commands and more, each at fixed pan/tilt coordinates. Drive your client there and check by eye that it lands where it should. Some details only show up when you zoom in.

Panorama of the simulated scene with the landmarks labelled

See the camera scene for every viewpoint with its VISCA packets and ONVIF values.

One camera, four ways to connect ​

The simulator shares position, motion and presets across its interfaces, so you can test a client against the same camera from different protocols.

ProtocolStandard (version)InterfaceSpecification
ONVIFCore Spec v26.06, PTZ Service v25.12, Imaging v18.12SOAP over HTTP with WS-DiscoveryCore, PTZ, Imaging
VISCASony VISCA command list v2.00; VISCA over IP per the Sony manualsSony VISCA over IP, TCP, UDP or a pseudo terminalCommand list v2.00, Axis interface description
Pelco-DDe-facto standard (Pelco "D" Protocol)Serial RS-485 via a pseudo terminalPelco "D" Protocol manual, Fujifilm SX400 specification
NDINDI SDK PTZ metadata (ntk_ptz_*)Optional NDI source with PTZ control and a test pictureNDI PTZ and control messages

The full list of supported standards with versions and references is in the guide under supported standards.

Start a camera ​

With Python 3.8 or newer:

sh
git clone https://github.com/stritti/ptz-simulator.git
cd ptz-simulator
python3 -m ptzsim serve --onvif

See the guide for more ways to run the simulator, additional transports and authentication options.

A PTZ camera simulator for testing camera integrations. Released under the MIT License.