Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Thread Tools Search this Thread Display Modes
Old 2nd August 2022, 18:43   #1  |  Link
Doom9ing since 2001
zambelli's Avatar
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 1,997
Overlaying color plane mix/max values

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?
Attached Images
zambelli is offline   Reply With Quote
Old 2nd August 2022, 20:48   #2  |  Link
Registered User
Join Date: Sep 2007
Posts: 4,984
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
poisondeathray is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 02:47.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.