Jaded-Encoding-Thaumaturgy / lvsfunc

lvsfunc, a collection of LightArrowsEXE's VapourSynth functions and wrappers
https://lvsfunc.readthedocs.io/
MIT License
52 stars 11 forks source link

Add also_check_avg #157

Closed motbob closed 1 year ago

motbob commented 1 year ago

Sometimes, video changes come in the form of overall brightness changes, like fog in censored scenes or anti-seizure filters, which Max/Min isn't good at catching. This change attempts to catch those scenes. Tested to have no false positives in a comparison between Abema and Crunchyroll.

Speed hit is something like 5%, maybe?

Update from previous pull request: adjust the avg diff threshold based on the max/min threshold. If the max/min thr is less conservative, the avg diff threshold can also be less conservative. Values were derived by finding the point at which the first false positive appeared for a given thr and then adding a 50% buffer. Also, fix bug that prevented users from using avg threshold (thr less than 1) at all.

LightArrowsEXE commented 1 year ago

Is this still getting looked at?

Setsugennoao commented 1 year ago

I guess I'll have to take over this PR, since op is busy.