Log in

View Full Version : Overlaying color plane mix/max values


zambelli
2nd August 2022, 18:43
I'm trying to overlay color plane min/max/range values, and the script I had which used to work in Avisynth 2.6 and maybe older Avisynth+ versions no longer works because I'm guessing something must've changed in the syntax.

This used to work at some point:
ScriptClip(last, """Subtitle("YMin=" + string(YPlaneMin(threshold=0.5)) + " : YMax=" + string(YPlaneMax(threshold=0.5)) + " : YRange=" + string(YPlaneMinMaxDifference(threshold=0.5)) + "\n" + "YMin=" + string(YPlaneMin(threshold=0.5)/(Pow(2,BitsPerComponent)-Pow(2,BitsPerComponent)*0.08203125)) + " : YMax=" + string(YPlaneMax(threshold=0.5)/(Pow(2,BitsPerComponent)-Pow(2,BitsPerComponent)*0.08203125)) + " : YRange=" + string(YPlaneMinMaxDifference(threshold=0.5)/(Pow(2,BitsPerComponent)-Pow(2,BitsPerComponent)*0.08203125)), align=9, lsp=1)""")

Now I just keep getting -1 for YPlaneMin/Max. How do I make it work again?

poisondeathray
2nd August 2022, 20:48
It works for me; maybe update your avs version?

Another method is coloryuv(analyze=true) , or rgbadjust(analyze=true) for RGB . coloryuv seems faster ~25% in avsmeter64, than scriptclip