It's base on Google's butteraugli.
Please refer to the original document.
butteraugli.butteraugli(clip clipa, clip clipb, bint heatmap = true)
- Both clipa and clipb MUST be in RGB24 format.
- If heatmap is set to true, it returns a heatmap contains differences between two input clips, else just copy clipb.
- Either heatmap is true or not, it stores diffvalue in the frame properties named "_Diff".
import mvsfunc as mvf
clipa = core.std.Trim(src1, 0, 0)
clipa = mvf.ToRGB(clipa, depth = 8)
clipb = core.std.Trim(src2, 0, 0)
clipb = mvf.ToRGB(clipb, depth = 8)
diff = core.butteraugli.butteraugli(clipa, clipb)
meson build
ninja -C build