Skip to content

IR Cut Filter of Axis cameras

It is possible to control the IR Cut Filter of IP cameras through the Datastead RTSP/RTMP/HTTP/ONVIF DirectShow Source Filter v7.2.2.1 or newer, that must be installed first.

First start the preview of the Axis IP camera with the following sample code, e.g.:

VideoGrabber.VideoSource = vs_IPCamera VideoGrabber.IPCameraURL = "rtsp://192.168.5.29/axis-media/media.amp?videocodec=h264&audio=1"; VideoGrabber.SetAuthentication (at_IPCamera, "root", "password");

then, once the preview is running:

  • to set the IR Cut Filter state, invoke one of the following commands:

VideoGrabber.ONVIF_SetStr ("RTSP_Source_Axis_IrCutFilter_str", "enabled")

or

VideoGrabber.ONVIF_SetStr ("RTSP_Source_Axis_IrCutFilter_str", "disabled")

or

VideoGrabber.ONVIF_SetStr ("RTSP_Source_Axis_IrCutFilter_str", "auto")

  • to retrieve the IR Cut Filter state, invoke:

function VideoGrabber.ONVIF_GetStr ("RTSP_Source_Axis_IrCutFilter_str", Value) : Boolean

Value returns one of the following values: "enabled, "disabled", or "auto"