Using mediamtx for my streaming use, the autofocusing is working “ok”. The application is a moving POV camera (N Scale 1:160 train set.) the AfWindow has been set to 0.45,0.80,0.10,0.20 so that the track and the view ahead is in focus, not the “sky”. When the train turns on the track it does pickup infinity (over the edge of the track) and other “infinity items” - this sends AutoFouc hunting / wrong for the application.
When all is working well (Af focusing on what it is suppose to) it ranges between 1200-2200. See below for the current - which has a close object in front of the camera.
How can the lens be limited to only 1200-2200 so as to not focus of the infinity.
camera@camera:~ $ v4l2-ctl --all -d /dev/v4l-subdev1
Driver Info:
Driver version : 6.12.20
Capabilities : 0x00000000
Camera Controls
focus_absolute 0x009a090a (int) : min=0 max=4095 step=1 default=0 value=2201