pdk42
Moderator
Thank you Michael. That's a helpful response. I wasn't aware of the flash band compensation, but since it's video only it's not likely that I'll ever need to worry about it since I don't do video.This is actually how I figured out that the rolling shutter is 50ms, by counting the bands and knowing that the light on a 50Hz grid flickers at 100Hz.
Anyway, the only way to avoid flicker using Electronic shutter is to capture the image at a shutter speed which is a multiple of 1/100 (or 1/120 if the powergrid runs at 60Hz), so 2/100, 3/100, 4/100 are all fine as you are always capturing a full cycle of the light.
The undocumented special sauce John Vickers is referring to is probably flash band compensation: https://eww.pavc.panasonic.co.jp/hdw/oi/AG-X2/html/AG-X2-X20_DVQP2773_eng/0099.html. It is a feature usually only implemented on camcorders and eliminates the uneven exposure you may get when flash photographers are shooting away in your presence or other abrupt bright flashes of light. This has nothing to do with the regular light cycle of AC powered lights. From the side effects you can deduce it simply repeats partial frames, taking the darker part of two different frames and stitching them together. Only applies to video capture though.
Note that on Panasonic cameras there is a feature which enables you to set up the camera in such a way that when you shoot video while the camera is set to a photo mode, it will automatically override your set shutter speed and switch to a multiple of 1/100 or 1/120, depending on what system frquency you have set (PAL or NTSC). Again, this only applies to video recording.
As you say though, AC lighting will cause banding with the S5's electronic shutter when shooting stills at shutter speeds faster than the reciprocal of the frequency x 2, as my example demonstrates. There is no special sauce to fix it, apart from switching to mechanical shutter.