Hi, not sure I completely understand everything you're asking, but let me try to answer.
1. For the focus, are you able to get reasonable focus by setting the lens position manually? The AfWindows control only has any effect when running the focus automatically, so you have to be able to get a good manual setting otherwise the automatic focusing will never work.
If you can set a good manual focus, but the automatic search isn't working, try setting the environment variable LIBCAMERA_LOG_LEVELS to RPiAf:0 (exactly as written) which will write some debug to the console. If you could capture that for a single failed autofocus attempt, that might suggest what is going wrong.
2. For the flash, from what you describe I assume you're firing some kind of xenon flash? If so, then you're going to have problems.
Xenon flash pulses are normally very short, so there would need to be a moment when every line of the sensor is being exposed (and you would fire the flash at this moment). For a rolling shutter sensor, this would require quite a long exposure time (greater than the minimum frame readout time). And even then, you would have some pretty difficult timing constraints. Things are obviously easier if you can use a global shutter sensor. There's a reason why all phones have LED flashes these days!
1. For the focus, are you able to get reasonable focus by setting the lens position manually? The AfWindows control only has any effect when running the focus automatically, so you have to be able to get a good manual setting otherwise the automatic focusing will never work.
If you can set a good manual focus, but the automatic search isn't working, try setting the environment variable LIBCAMERA_LOG_LEVELS to RPiAf:0 (exactly as written) which will write some debug to the console. If you could capture that for a single failed autofocus attempt, that might suggest what is going wrong.
2. For the flash, from what you describe I assume you're firing some kind of xenon flash? If so, then you're going to have problems.
Xenon flash pulses are normally very short, so there would need to be a moment when every line of the sensor is being exposed (and you would fire the flash at this moment). For a rolling shutter sensor, this would require quite a long exposure time (greater than the minimum frame readout time). And even then, you would have some pretty difficult timing constraints. Things are obviously easier if you can use a global shutter sensor. There's a reason why all phones have LED flashes these days!
Statistics: Posted by therealdavidp — Wed Feb 26, 2025 9:43 am