PTZ focus preset

billmeek

n3wb
Apr 29, 2017
9
2
Middle TN, USA
Do all of the Dahua PTZ cameras use the focus adjustment manually configured in the presets? Or does the autofocus set the focus when you move between presets?
 
I was just looking through the SD49225T-HN User Manual (downloaded from https://www.dahuasecurity.com/asset...-Web3_0-Operation-Manual-V1_0_0-201805226.pdf) and it appears that you can set the focus when creating a preset. But unless you change the 'Mode' to "Manual" under 'Focus and Zoom', I suspect that it won't have any effect.

Would anyone owning a SD49225T-HN be willing to test and verify that a stored manual focus with presets work?
 
Give this a try
Code:
http://<ip_address>/cgi-bin/devVideoInput.cgi?action=getFocusStatus

It should ask for a username and password before giving you something like this:

Code:
status.Focus=0.918015
status.FocusMotorSteps=2720
status.LenAdjustStatus=0
status.Status=Normal
status.Zoom=0.721933
status.ZoomMotorSteps=1345

So you should now be able to use

Code:
http://<user:pass@ip_address>/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.665636&zoom=0.315000

or if you prefer curl
Code:
curl --digest -u <user>:<password> -X GET http://<ip_address>/cgi-bin/devVideoInput.cgi?action=getFocusStatus


Edit:
If you're using BlueIris or similar you might be able to set it to run an external script after moving to a preset. I have a similar setup to change my cameras between day/night mode as necessary.
 
  • Like
Reactions: bickford
Thank you for the code xdq. I haven't purchased the PTZ camera yet. I was investigating buying the SD49225T-HN for my NRL22 rifle club to use as a spotter scope. Using the camera and a laptop with an external monitor (HDMI TV), would allow everyone to clearly see hits on the small targets (little as 1/4th inch) at range. My concern is the focus time as switching between distances can be moderately quick on a timed course.
 
I was just looking through the SD49225T-HN User Manual (downloaded from https://www.dahuasecurity.com/asset...-Web3_0-Operation-Manual-V1_0_0-201805226.pdf) and it appears that you can set the focus when creating a preset. But unless you change the 'Mode' to "Manual" under 'Focus and Zoom', I suspect that it won't have any effect.

Would anyone owning a SD49225T-HN be willing to test and verify that a stored manual focus with presets work?
Just tried it on mine and it does keep the the right focus on presets when set to manual.