I am streaming video from my NoIR Raspberry Pi camera and notice that sometimes the image starts flashing at about 2Hz. What seems to be happening is that the brightness is changing.
I have a sample video. You can see that after I move the camera, it stops flashing. What is going on? How do I stop this?
If not, the issue may be in encoding, in such case you may adjust bitrate and other encoding parameters.
Be also sure the issue is not in the player itself (you may try some other ones).
exposurecompensation (when set to 1, flashing is less likely, when set to 2 it takes a while to adjust to changes in brightness)
aelock=true - just looked too white but no flashing
ispdigitalgainrange="1 1" - still flashing
awblock=true - still flashing
ee-mode=0 (off) - still flashing
aeantibanding=0 (off) - still flashing
I believe the issue is with the auto exposure PID control loop that has too high a P term (or too low D) which causes overshoot when the camera goes from low to high brightness.
To clarify my previous post, the issue is not the change from very bright to very dark. The issue is when you go from a “little bit” dark to a “little bit” lighter.
IMO the control loop of the camera ISP auto exposure is not working well and needs adjustment.
I finally tested this. Apologies for the delay, I was on holiday.
With BOTH of the examples you give, I see the flashing problem. :-(
It does not always occur, and it is dependent on the brightness of the scene that the camera is viewing, but when it does occur it takes at least 5 seconds to disappear. Very annoying.
Could you use argsu_camera to try on/off the anti banding and if the gain/exposure range limit as above still the same then the problem could be the sensor source instead of ISP problem.