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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#41 | Link |
|
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,406
|
Easiest, as in crop(36,36,-36,-36)
or Code:
x=36 y=36 w=-36 h=-36
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
|
|
|
|
#43 | Link |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
I noticed that the global variables are one frame late to current frame:
Code:
ShowChannels(SetVar=True,show=true)
scriptclip("""subtitle(string(SC_Min_0))""")
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread |
|
|
|
|
|
#45 | Link | |
|
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,406
|
Thanks G.
Quote:
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
|
|
|
|
|
#46 | Link |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
Thanks Gavino! I'm making a soft limiter so I was thinking on feeding the (accumulated) loose minmax values, not sure how I can do it without HBD support, somehow I need to force the ShowChannels() call despite not using its output clip.
ColorYUV() has HBD support but didn't see how to extract values. I also want to add a per scene accumulated, a fast method is to reinitiate ShowChannels() after a scene change. EDIT: Strange, new ScriptClip can't grab ShowChannels globals. Code:
ShowChannels(SetVar=True,show=false)
ScriptClip( function [] () {
propSetArray("_YMin", function[]() { return [SC_Min_0,SC_Max_0] } )
}, after_frame=True )
propshow()
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread Last edited by Dogway; 18th November 2021 at 22:45. |
|
|
|
|
|
#47 | Link |
|
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,406
|
EDIT: ShowChannels SC_LMn_0 and SC_LMx_0 are LOOSE min and max.
You can also use YPlaneMin(Threshold=0.0) and YPlaneMax(Threshold=0.0) for Ymin and Ymax. YPlaneMin(Threshold=whatever%) and YPlaneMax(Threshold=whatever%) for loose min/max, if not interested in other values. (and builtin HBD) EDIT: ShowChannels defo sets Globals [some of my plugs set locals because of some problem/request or other reported by user]. EDIT: I have no idea what your script snippet does, I have not yet figured out that scriptclip function stuff. But, does this work Code:
ScriptClip( function [] () {
propSetArray("_YMin", function[]() { return [YPlaneMin(0.0),YPlaneMax(0.0)] } )
}, after_frame=True ) # Maybe After_Frame not needed : Presumably YPlaneMin/Max will be using implicit Last (or something ???)
propshow()
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 19th November 2021 at 02:34. |
|
|
|
|
|
#48 | Link |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
Yes, maybe I will do that for not accumulated, although that uses 0.4 percentile (?)
I wanted some kind of temporal average for the values. I managed somewhat to pass the global vars to SoftLimiter, but with the old ScriptClip.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread |
|
|
|
|
|
#49 | Link | ||
|
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,406
|
ColorYUV(analyse=true)
uses 0.4, actually total Y sample count / 256 for Y, and total Y sample count / 1024 for U and V (when YV12, so still 0.4). [old v2.58 ColorYUV which I have source for]. ShowChannels uses default 0.1%. Quote:
Quote:
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 19th November 2021 at 03:29. |
||
|
|
|
![]() |
| Tags |
| channels, info, max, min |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|