Apple just published their algorithm to 1) detect if flashing lights in a video are severe enough to be a potential photosensitive epilepsy risk and then 2) reduce that flashing to a safer level! This is one of the new accessibility systems they've put in iOS 16.4, and it's available under the MIT license in Swift, Matlab, and Wolfram Mathematica along with a paper explaining how it works! Thanks to @asie for pointing this out to me!
