How we measure and test flicker removal

The short version

Our meter, FlickerScope, reports IEEE 1789 Percent Flicker for every pixel while following motion. The Deflicker app's on-device fix smooths brightness area by area; Deflicker Fusion rebuilds each frame from motion-aligned neighbors. A change to Deflicker Fusion ships only if no test clip gets worse.

What we mean by flicker, and how we measure it

Flicker here means brightness that changes from frame to frame because the lights pulse, not because the scene changed. Why slow-motion video flickers explains the physics.

FlickerScope follows motion with optical flow and models every pixel as steady scene light times a flicker gain. It finds the lamp's frequency even after the frame rate folds it (100 Hz light at 240 fps repeats every 12 frames) and sets one-off events, such as a muzzle flash, apart.

The score is IEEE 1789 Percent Flicker, a lighting standard: (max − min) / (max + min) of the light reaching each pixel over time. A clean video reads close to 0%. Parts of our shooting-range clip read 87%: their darkest frames get about 14 times less light than their brightest. On 8 synthetic clips with known flicker, the meter's readings correlate with the truth at r = 0.988 (mean error 2.2 points); it reads up to 7 points high when several lights pulse out of phase.

The free browser version reads 16 regions instead of every pixel. It labels a reading under 2% none, 2 to 5% slight, 5 to 12% visible, and 12% or more strong, which is hard to watch.

The two engines

The Deflicker app's on-device fix runs entirely on the iPhone, and the video never leaves it. It measures brightness area by area across the frame and smooths out the pulsing, which suits whole-frame pulsing and rolling bands. It is not part of the public benchmark below.

Deflicker Fusion runs our published method on our GPUs. FlickerScope measures a flicker gain for every pixel of every frame. Each frame is then rebuilt from its motion-aligned neighbors, each divided by its own gain and weighted by how clean it is, so a frame caught at the lamps' darkest point comes mostly from brighter frames instead of being brightened, noise and all, up to 14 times. Flashes are kept as added light. Where the output fluctuates more than the original, it blends back toward the original, and if overall exposure would shift by more than about 15%, the original is returned untouched.

The test clips, and the rule every change must pass

Deflicker Fusion is tested on up to 200 frames of each clip:

  • Public clips from the Blind Video Deflickering dataset (CVPR 2023): 11 slow-motion clips, lit by street lamps, a TV, stage lights, a fluorescent tube and more, and 4 time-lapse clips. All run with the same settings.
  • 8 synthetic clips with known flicker: simulated filament, fluorescent, LED-driver and PWM-dimmed LED light on 50 or 60 Hz mains, at 120 to 480 fps.
  • Our own footage: a 240 fps shooting-range clip under 50 Hz LED lighting, with a muzzle flash, and two other private clips.

A fix for one clip may not cost another. Before a change to Deflicker Fusion ships, bench/gate.py runs it against the current method on every prepared clip, both scored by the same meter. The change fails if any clip gets worse, beyond a small tolerance, on flicker, warp error, structure, grain, exposure or an artifact score. Flicker, for example, may not rise by more than 0.3 points or 5%, whichever is larger. On the shooting-range clip, the muzzle flash must not change either.

So fixes are general rules. An early version made a falling-water clip 55% brighter; the fix was two rules for every clip about when a fit can be trusted, and with them that clip goes from 67% to 12% flicker.

Results

Research rows are Deflicker Fusion on the benchmark. Browser rows are iPhone clips before and after the Deflicker app, read by the browser meter. The meters differ, so compare before and after on one meter only.

ClipMeterFlicker beforeFlicker afterStructure
Shooting range, 240 fps, 50 Hz LEDResearch29.73%1.98%0.986
Night walkway, street lampsResearch48.4%3.2%0.992
Ballroom first dance (partial)Research33.9%28.3%0.975
Night golf range, iPhone, 30 fpsBrowser8.2%2.9%Not measured
Indoor shooting range, iPhone, 60 fpsBrowser48.0%0.8%Not measured

Flicker is that meter's reading of the original and of the result; lower is better. Structure is how much of the original picture survives, as the SSIM structure term (1.000 means untouched); ghosting and blur lower it. Partial: better, but still visibly flickering.

On the shooting-range clip, ffmpeg's deflicker filter raised flicker to 33.89%, because one gain per frame can't fix flicker in part of the frame. Warp error, a standard measure that doesn't use our model, fell from 58.69 to 5.21 with Deflicker Fusion. On our home page's golf clip, the lit turf's average jump from one frame to the next fell from 5.4 as shot to 0.4 after Deflicker Fusion, on the 0 to 255 brightness scale, across 147 frames.

What deflickering can't fix

  • Detail that was never recorded. An area blown out to white in every frame stays flat. Deflicker Fusion can rebuild a lamp highlight that clips only on the bright pulses, from neighboring frames where it did not clip.
  • Time-lapse flicker is not lamp flicker, and Deflicker Fusion barely moves the reading on the dataset's time-lapse clips (sunset 25.9% to 24.5%). Much of what the research meter reads there is clouds, noise and compression. Exposure jumps between shots now get their own fix, which is measured separately, with the website's meter.
  • What optical flow can't track, such as drifting smoke (63.0% to 59.4%) or falling water, which improves only partly.
  • Color. The method corrects brightness, not color: a tube that cycles from white to yellow still cycles.
  • Slow swings of about 1 Hz are only partly removed, and fan blades repeating every few frames can read as flicker.

Check the numbers yourself

Silent Co, LLC publishes the code and the method, so you can rerun these tests.

Our private clips are not distributed, and the synthetic set was built from their stills, so yours will differ; the public clips are the same. To fix your own footage, see how to fix flickering slow-motion video on iPhone, then compare before and after with the browser meter.