Skip to content

NDI PTZ ​

Reference: NDI documentation "PTZ and Control Messages" and the NDI SDK header Processing.NDI.Recv.ex.h (NDIlib_recv_ptz_*). ptzsim module: ptzsim/ndi.py, option --ndi (needs the ndi extra).

MessageAttributes and rangesptzsim
ntk_ptz_pan_tiltpan −1 (left) … +1 (right), tilt −1 (down) … +1 (up)yes
ntk_ptz_pan_tilt_speedpan_speed −1 (right) … +1 (left), tilt_speed −1 (down) … +1 (up); 0 stopsyes; note that the pan speed sign is the opposite of the pan position sign
ntk_ptz_zoomzoom 0 (zoomed in) … 1 (zoomed out)yes
ntk_ptz_zoom_speedzoom_speed −1 (out) … +1 (in)yes
ntk_ptz_focusmode="auto" or mode="manual" distance= 0 (infinity) … 1 (closest)yes
ntk_ptz_focus_speedfocus speed −1 … +1yes; the attribute name is not documented on the NDI page, ptzsim reads the attribute distance
ntk_ptz_store_presetindex 0 … 99yes, the presets shared with VISCA/ONVIF
ntk_ptz_recall_presetindex 0 … 99, speed 0 … 1, default 1yes
ntk_ptz_white_balancemode auto, indoor, outdoor, one_shot, manual (red, blue 0 … 1)yes
ntk_ptz_exposuremode auto/manual, value, gain, shutteraccepted, not simulated (issue #27)

The sender announces PTZ support with connection metadata <ndi_capabilities ntk_ptz="true" …/>. That element is not described on the NDI page; receivers such as NDI Studio Monitor, vMix and OBS (DistroAV) use it to offer PTZ control.

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