Browser-based video tool · WCAG 2.3.1 flash and red-flash screening

Photosensitive Flash Test for Video

Check a clip for sequences that flash more than three times a second over a large enough part of the picture, including saturated red flashes, and see exactly where they are. It follows the WCAG 2.2 general and red flash definitions. It is a screening aid, not a certified Harding or Ofcom test.

Video

Up to 2 minutes. Every frame is read at a reduced size, one seek at a time, so a long clip takes minutes.

Drop a video here or click to choose

.mp4, .webm, .mov, .m4v

What this does and does not check

This is not an Ofcom, ITU-R BT.1702 or Harding FPA certification. Broadcasters and streamers that require a Harding test still need one. A result here only tells you where the WCAG-style rules below are met or broken in this file.

  • A change counts when a pixel's relative luminance swings by at least 0.1 (10% of the maximum) from its last turning point and the darker end is below 0.8.
  • A flash is two opposing changes, so more than six alternating changes in any one second fails. A 3 Hz flicker makes six changes a second and passes; 3.5 Hz makes seven and fails.
  • Only frames where changing pixels fill 25% of a window one third of the frame wide and high count. That is the 341 × 256 pixel (about 10 degree) field of a 1024 × 768 display, scaled to your video.
  • Red flash follows the WCAG 2.2 definition: one of the two states is saturated red (R/(R+G+B) of at least 0.8) and the two states differ by more than 0.2 in the CIE 1976 u′, v′ chromaticity diagram. A pixel darker than a relative luminance of 0.003 counts as black, because chromaticity is not defined there.
  • Luminance is computed from sRGB pixel values as a typical display shows them; a very bright or dim screen changes real-world impact.

Choose a video and press Screen the video. The result lists every stretch that breaks the general or red flash rule, marks it on a timeline, and shows the frame where it starts.

Photosensitive Flash Test for Video

Operator: Abdulla Al Fahad. How tools are built and checked

Fast flashing across a large part of the screen can trigger seizures in people with photosensitive epilepsy, and the web accessibility guidelines set a limit: no more than three flashes in any one second, unless the flashing area is small or the flashes are dim. This page checks a video against those rules, shows on a timeline where it breaks them, and gives you the frame at the start of each failing stretch.

It is a screening aid built from the published definitions, not a certified test. Broadcasters and streamers that require a Harding FPA report, or compliance with ITU-R BT.1702, still need one, and nothing on this page says a video is safe.

Key features

  • General flash and red flash checked separately, with the most changes found in any one second (two changes make a flash, so the limit is six)
  • A timeline with a lane each for general flash, red flash and the stripe-pattern advisory
  • A frame thumbnail at the start of every finding, and a PDF report and CSV of findings

The rules applied, and what this screening is not

The page reads an MP4, WebM, MOV or M4V video of up to 2 minutes at up to 60 frames per second. Each frame is drawn at up to 256 pixels wide, so very small flashing details (a few pixels in a 1080p frame) are averaged away, and the report says the analysis picture size is reduced.

The CSV has a row for each finding with its type, start and end in seconds and the most changes in one second; the pattern advisory rows have no count. The PDF holds the verdicts, the findings with times, and the thumbnails, with the file name reduced to plain characters.

Luminance is computed from the sRGB values in the file, as a typical display shows them. A very bright or very dim screen, a different gamma, or a cinema projector changes the real impact, which is why the guidelines express the limits in relative terms.

A browser that cannot read past the end of a damaged file shows its last frame again and again. When the last seconds of the clip are one repeated frame, the page says so above the verdicts, because the verdicts then cover only the part before it.

The browser's decoder may apply colour conversion or smooth compression noise before the page sees a frame, so screen the master file where it matters.

How it works

For each pixel the page keeps the last turning point of its relative luminance (0.2126 R + 0.7152 G + 0.0722 B on linearised values). A change counts when the luminance swings by at least 0.1, 10% of the maximum, from that turning point, and the darker of the two states is below 0.8. A flash is a pair of opposing changes, so each swing in one direction is counted as one transition.

A frame counts toward a flash only if the pixels that changed in the same direction fill at least 25% of a window one third of the frame wide and one third high, tried at many positions. That window is the 341 by 256 pixel field the guideline's note gives for about 10 degrees on a 1024 by 768 display, scaled to your video, so it is 11.1% of the frame and the threshold is 2.8% of the frame.

Qualified changes are put in time order and the page counts the transitions, each one opposing the one before it, in every half-open one-second window. Three flashes are six transitions, so a window with more than six fails: 3 Hz makes six a second and passes, 3.5 Hz makes seven and fails, at every frame rate the page offers. Failing windows that overlap are merged into one stretch.

Red flash follows the WCAG 2.2 definition. A transition counts when at least one of the two states is saturated red, meaning R divided by R plus G plus B is at least 0.8, and the two states are more than 0.2 apart in the CIE 1976 u′, v′ chromaticity diagram. Chromaticity is not defined for black, so a state with a relative luminance under 0.003 is treated as black and given the white point's chromaticity; otherwise sensor noise in dark areas would flicker.

Every 0.25 seconds the page also looks for regular stripes: at least five light and dark pairs along a row or column of a third of the frame, with a contrast of at least 0.2, in a quarter of the lines. That is a rough advisory, not a pattern test.

Common use cases

  • An editor checks a trailer with a strobing logo reveal and finds a general-flash failure between 0:12 and 0:15, fixes it by softening the white frames and screens it again.
  • A game developer exports capture from a boss fight and finds a red-flash failure where a red warning pulses against black four times a second.
  • An accessibility reviewer screens a screen recording of a web animation and sends the PDF with its frames to the team.
  • A school video team screens a 90-second class film at 24 fps and finds no failure, then records the result in their publishing checklist as a screening, not a certification.
  • A motion designer tests a flicker effect at three strengths: a 12% luminance swing fails and an 8% one passes.
  • A game streamer checks a 40-second highlight reel with muzzle-flash effects before posting it, and finds the failing stretch is three explosions in quick succession.

How to use this tool

  1. Drop the video and confirm the frame rate the page measured.
  2. Press Screen the video and wait; it reads every frame at the chosen rate and shows an estimate once it is going.
  3. Read the two verdicts, click through the findings on the timeline, and look at the frame at each start.
  4. Download the PDF and the CSV to send to the editor.

Example

A 5-second clip that alternates full-screen black and white, once at 3 Hz and once at 3.5 Hz, screened at 30 frames per second

Screen each clip. A third clip alternates pure red and black at 4 Hz.

Verdicts for each clip

3 Hz: general flash passes with the most changes in one second 6 (the limit is 6, which is three flashes); red flash 0.
3.5 Hz: general flash fails with 7 changes, one stretch from 0:00.18 to 0:04.88; red flash 0.
Red and black at 4 Hz: general flash and red flash both fail, with 8 changes in one second, from 0:00.15 to 0:04.92.

Tips for best results

  • Screen the file you will publish, not an earlier cut: an added title or transition changes flash counts.
  • Leave the frame rate at the clip's own rate. Reading fewer frames per second than the clip has can step over a flash.
  • To judge a red flash against a colour of the same brightness, screen the final export: a video codec shifts colours, and a green that matched a red's luminance in the project may not match after encoding.

Common pitfalls

A result of no failure found is not clearance. The page is blind to what it cannot see: flashes smaller than the window, strobing between frames faster than the frame rate, and conditions of a particular screen.

The window is a fixed fraction of the frame. A video shown tiny on a phone or huge on a wall subtends a different visual angle than the guideline assumes.

Cuts between very different shots count as changes. A fast edit sequence of bright and dark shots can fail even though nothing inside any shot flashes.

Frames are read one seek at a time, so a clip with sparse keyframes can be slow to screen.

Strobing that has been mixed into a single frame by the encoder, or that falls between two frames, cannot be seen from the frames the browser hands over.

Common errors and how to fix them

This video is longer than 2 minutes
Trim the clip, or screen it in two-minute parts and combine the findings.
The frame rate could not be measured
Choose the clip's real frame rate in the list; 24, 25, 30, 50 and 60 are offered.
The browser could not open the video
Re-save it as an MP4 with H.264 video or as a WebM, since the page reads frames through the browser's own player.

Best practices

  • Keep the PDF with the project file, with the date and the exact file name of the cut that was screened.
  • Re-screen after any change to colour, speed or transitions, because each can add or remove a flash.

How the thresholds behave

A full-screen black and white square wave passes at 1, 2 and 3 flashes per second, with at most 2, 4 and 6 changes in a second, and fails at 3.5 and 4, with 7 and 8, whatever the frame rate: the result is the same at 24, 25, 30 and 60 frames per second. A 4 Hz flash in a patch of 2% of the frame passes, while 5% and 10% fail; the threshold is 25% of a window one ninth of the frame, which is 2.8%. A swing between relative luminance 0.30 and 0.38 at 6 Hz passes and between 0.30 and 0.42 fails. Alternating 0.85 and 1.0, where both states are 0.8 or brighter, passes.

Pure red against black at 4 Hz fails both general and red flash. Red against a green of the same luminance (0.2126 in linear light) fails the red test and passes the general one. A slow fade, 0.5 Hz from black to white, scores no changes. Static stripes of 16 light and dark pairs across the frame are flagged as a pattern and stripes of 3 pairs are not.

Where the numbers come from

The definitions follow the Web Content Accessibility Guidelines 2.2, success criterion 2.3.1 (Three Flashes or Below Threshold) and its definitions of general flash and red flash, which draw on ITU-R BT.1702 and ISO 9241-391. The 2.0 and 2.1 wording of the red-flash test used a (R minus G minus B) times 320 measure; 2.2 replaced it with the chromaticity difference used here. The stripe check is only loosely based on the pattern guidance in the recommendation. The page's own counting choices, such as alternating transitions in a half-open one-second window and the black floor for chromaticity, are stated here so a result can be reproduced.

Frequently asked questions

Is a pass from this page accepted by broadcasters?

No. Broadcasters that ask for a Harding FPA report want that specific tool. Use this page to find and fix problems before the formal test, not instead of it.

Why is 3 flashes a second allowed but 3.5 not?

The guideline says more than three flashes in any one-second period fails. A flash is a pair of opposing changes, so three flashes is six changes; 3.5 flashes a second makes seven changes in every second, which is over the limit.

Why do flashes in a small corner pass?

The rule counts a flash only when it covers enough of the picture: 25% of about a 10 degree field, which is 2.8% of the frame here. A smaller bright blink is below the threshold.

Do slow fades count?

No. A fade changes luminance gradually, so it never swings by 0.1 from a turning point between one frame and the next; a 0.5 Hz fade counts as no changes at all.

Why the red test separately?

Saturated red flashing is more provocative than its luminance suggests, so the guideline gives it its own test, which a red that matches the luminance of its background would otherwise slip past. The test is a colour difference of more than 0.2 in the u′, v′ diagram with one state saturated red, so red against green fails it even where the brightness does not change.