Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-10T06:25:22.023Z
Answers.Text: re the last point: you could also use a higher shutter speed if that doesn't produce other unwanted artefacts.
Answers.UserDisplayName: stib
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T03:12:44.010Z
Answers.Text: Also, on the last point, don't forget about infinitely slow "flashes"; i.e., continuous light sources such as video lights or sunlight.
Answers.UserDisplayName: Jason Conrad
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T04:40:44.567Z
Answers.Text: @stib, I actually want to simulate different shutter speeds to compare the effect, slower and faster than the 180° rule.
Answers.UserDisplayName: Rafael
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-24T14:55:37.757Z
Answers.Text: Excellent answer, thanks! The @Rusty Core is right: the simple solution to reduce or eliminate unwanted image artifacts is to use a sensor with a global shutter.
Answers.UserDisplayName: pmor
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-09T21:22:13.657Z
Answers.LastActivityDate: 2019-09-09T23:09:26.790Z
Answers.LastEditDate: 2019-09-09T23:09:26.790Z
Answers.UserDisplayName: Rafael
Body: <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.sstatic.net/19cbP.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-10T18:54:59.953Z
Comments.Text: A simple solution is to use a camera with CCD sensor, which has global shutter. These are increasingly rare, you may find a used one that shoots 1080p but not higher resolution.
Comments.UserDisplayName: Rusty Core
Tags: <camera><effects><compression><lighting><flash>
Title: Camera flash produces unwanted artifacts on the video
UserDisplayName: pmor
ThreadText: # Camera flash produces unwanted artifacts on the video
  
  (Asked by: username_0 on 2019-09-09)
  
  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:
  
  [![Sample image frames taken from the video](https://i.sstatic.net/19cbP.png)](https://i.sstatic.net/19cbP.png)
  
  Here we clearly see three cases:
  
  1. No camera flash.
  2. Camera flash: expected camera flash effect.
  3. Camera flash: unexpected camera flash effect (artifacts: the left side is brighter than the right side).
  
  The questions:
  
  1. 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.
  2. 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>
  
  **Tags:** camera, effects, compression, lighting, flash
  
  > **Comments:**
  > **username_1**: A simple solution is to use a camera with CCD sensor, which has global shutter. These are increasingly rare, you may find a used one that shoots 1080p but not higher resolution.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-09-09. Score: 4 | Accepted answer
  
  This is actually a collateral effect of the concept of [rolling shutter](https://en.wikipedia.org/wiki/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.
  
  > **Comments:**
  > **username_3**: re the last point: you could also use a higher shutter speed if that doesn't produce other unwanted artefacts.  
  > **username_4**: Also, on the last point, don't forget about infinitely slow "flashes"; i.e., continuous light sources such as video lights or sunlight.  
  > **username_2**: @username_3, I actually want to simulate different shutter speeds to compare the effect, slower and faster than the 180° rule.  
  > **username_0**: Excellent answer, thanks! The @username_1 is right: the simple solution to reduce or eliminate unwanted image artifacts is to use a sensor with a global shutter.  
  
  ---
  
  