user23040: During frame by frame watching of some video taken via Instagram app one noticed strange unwanted artifacts on the video caused by camera flash. Please, consider below several sample image frames taken from the video:

Here we clearly see three cases:

No camera flash.
Camera flash: expected camera flash effect.
Camera flash: unexpected camera flash effect (artifacts: the left side is brighter than the right side).

The questions:

Why this happens at all? How this is related to the physics of the filming process: camera flash speed light, image acquisition by the image  sensor at 24..25 fps, video compression/decompression (guess the H.264 was used by Instagram app, video was taken at the end of 2018), etc.
How to avoid such an artifacts next time?

Thanks in advance for the explanation.
Direct link to the full video: https://scontent-ort2-1.cdninstagram.com/v/t50.12441-16/45731449_1983300578418249_711802823897524155_n.mp4?_nc_ht=scontent-ort2-1.cdninstagram.com&oe=5D7924B5&oh=b2ddf05b200a10ababd105c8b23d7f23&dl=1

user26178: This is actually a collateral effect of the concept of rolling shutter. Most video devices do not expose all the frame area at once. They expose starting from one side and (up or down) and move from there. (The example has the camera rotated 90° so the effect is on the sides of the frame).
This can be either a mechanical element that moves or rotates or an electronic system.
As the flash of a camera is a really fast burst of light, it can sometimes be captured in one zone of the frame, by the time another part of the frame is streaming the data, the flash burst is over, so this zone of the image is transmitting the non-illuminated scene.
On still frame photography, this is the reason you have a minimum sync speed.
Frankly, it is really hard to avoid this situation in an environment such as the example posted, because you can not sync your camera to that flash.
On a controlled environment, like lighting in a movie, you could add the lighting in post-production, making one full frame white, and probably some other just a bit exposed.
Another way to control it is by using a slower burst of light. Rather than using a flash that lasts about a thousandth of a second (which disappears really fast), you use some system that flashes on tenths of a second. This way the burst of light has time to be captured by the shutter of the camera.

23040: <p>During frame by frame watching of some video taken via Instagram app one noticed strange unwanted artifacts on the video caused by camera flash. Please, consider below several sample image frames taken from the video:</p>

<p><a href="https://i.stack.imgur.com/19cbP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/19cbP.png" alt="Sample image frames taken from the video"></a></p>

<p>Here we clearly see three cases:</p>

<ol>
<li>No camera flash.</li>
<li>Camera flash: expected camera flash effect.</li>
<li>Camera flash: unexpected camera flash effect (artifacts: the left side is brighter than the right side).</li>
</ol>

<p>The questions:</p>

<ol>
<li>Why this happens at all? How this is related to the physics of the filming process: camera flash speed light, image acquisition by the image  sensor at 24..25 fps, video compression/decompression (guess the H.264 was used by Instagram app, video was taken at the end of 2018), etc.</li>
<li>How to avoid such an artifacts next time?</li>
</ol>

<p>Thanks in advance for the explanation.</p>

<p>Direct link to the full video: <a href="https://scontent-ort2-1.cdninstagram.com/v/t50.12441-16/45731449_1983300578418249_711802823897524155_n.mp4?_nc_ht=scontent-ort2-1.cdninstagram.com&amp;oe=5D7924B5&amp;oh=b2ddf05b200a10ababd105c8b23d7f23&amp;dl=1" rel="nofollow noreferrer">https://scontent-ort2-1.cdninstagram.com/v/t50.12441-16/45731449_1983300578418249_711802823897524155_n.mp4?_nc_ht=scontent-ort2-1.cdninstagram.com&amp;oe=5D7924B5&amp;oh=b2ddf05b200a10ababd105c8b23d7f23&amp;dl=1</a></p>
 26178: <p>This is actually a collateral effect of the concept of <a href="https://en.wikipedia.org/wiki/Rolling_shutter" rel="nofollow noreferrer">rolling shutter</a>. Most video devices do not expose all the frame area at once. They expose starting from one side and (up or down) and move from there. (The example has the camera rotated 90° so the effect is on the sides of the frame).</p>

<p>This can be either a mechanical element that moves or rotates or an electronic system.</p>

<p>As the flash of a camera is a really fast burst of light, it can sometimes be captured in one zone of the frame, by the time another part of the frame is streaming the data, the flash burst is over, so this zone of the image is transmitting the non-illuminated scene.</p>

<p>On still frame photography, this is the reason you have a minimum sync speed.</p>

<p>Frankly, it is really hard to avoid this situation in an environment such as the example posted, because you can not sync your camera to that flash.</p>

<p>On a controlled environment, like lighting in a movie, you could add the lighting in post-production, making one full frame white, and probably some other just a bit exposed.</p>

<p>Another way to control it is by using a slower burst of light. Rather than using a flash that lasts about a thousandth of a second (which disappears really fast), you use some system that flashes on tenths of a second. This way the burst of light has time to be captured by the shutter of the camera.</p>
