FORUM arduino

FORUM arduino



SearchSearch   Users   Registration   Entrance
Today: 06.12.2025 - 13:04:25
Pages:  1  2  

Using per frame conditional filtering

AuthorMessage

cosmosm3

Chronic doubter




Statistics:
Messages: 734
Registration: 09.07.2002

@Sh0dan : Very cool!:cool: How about the following set:- MinLuma() blackest pixel MaxLuma() whitest pixel Probably not quite so useful (signed values) . MinChromaU() . MaxChromaU() . MinChromaV() . MaxChromaV() Maybe more useful as absolutes . MinAbsChromaU() . MaxAbsChromaU() . MinAbsChromaV() . MaxAbsChromaV() More likely just to want the saturation (sqrt(U'^2+V'^2)) values . MinChromaUV() or MinSaturation() . MaxChromaUV() or MaxSaturation() . AverageChromaUV() or AverageSaturation() Possibly other statistical measures like Median value or upper and lower quartiles could be good as well. Also nothing in AviSynth says a plugin/filter has to return a Clip (they just all seem to). There are already functions like FrameRate() that return non-clip values ;) so you probably don't need to build the world into this Filter. IanB



Message # 1 30.08.24 - 23:35:24
RE: Using per frame conditional filtering

bimmermax

Chronic doubter




Statistics:
Messages: 106
Registration: 02.19.2003

Using the new conditional filter 



Message # 2 30.08.24 - 23:41:28
RE: Using per frame conditional filtering

EndangeredBeatz

Chronic doubter




Statistics:
Messages: 73
Registration: 05.19.2003

@MustardMan: Follow the second link in my signature. Actually both your scripts are correct. :) If you don't specify a clip, the "testclip" is used as "implicit last". @IanB: Yes - further single image statistical functions are in the works, and more compare functions should also be done.



Message # 3 30.08.24 - 23:51:52
RE: Using per frame conditional filtering

cohiba

Chronic doubter




Statistics:
Messages: 108
Registration: 05.03.2002

How bout something that can choose the frame with the least interlacing? I'm thinking of clips that are hard to IVTC then you could feed it both the IVTC2 and the Decombed version and get the best in return.



Message # 4 30.08.24 - 23:56:46
RE: Using per frame conditional filtering

kaiservon

Chronic doubter




Statistics:
Messages: 2,314
Registration: 10.14.2001

1) You are right, "n" as frame number may be a little short. But is it now frame_number or current_frame (I would prefer frame_number or maybe only frame) 2) I still don't understand why you use three parameters instead of one string evaluating to a bool. It would be much clearer to script writers. 4) what does that mean: when you reference a video clip ... it will be represented by the value it has at the end of the script? Putting a clip in the condition function feeds not the current value but the last in the script? That means it is strongly suggested to only use implicit last as this is how you feed the testclip? 5) I suppose the two choice clips must have the same video properties 6-9) very great - now using AviSynth gets really funny :)



Message # 5 31.08.24 - 00:05:03
RE: Using per frame conditional filtering

pho.soup

Chronic doubter




Statistics:
Messages: 8
Registration: 05.08.2002

Added the following conditional functions: YDifferenceFromPrevious() UDifferenceFromPrevious() VDifferenceFromPrevious() and YDifferenceToNext() UDifferenceToNext() VDifferenceToNext() These should be quite handy for detecting scene change transitions: Example: conditionalfilter(last,last,last.trim(1,0),"YDifferenceToNext()",">","10", show=true) This will replace the last frame before a scenechange with the first frame after the scenechange. (Inspired by another thread). This made me think of: Audio is always passed untouched through, from the testclip for now. The CVS Binary is dated April 3rd.


--------------------
"What we do today, echoes and eternity".
Message # 6 31.08.24 - 00:12:40
RE: Using per frame conditional filtering

DHoang

Chronic doubter




Statistics:
Messages: 39
Registration: 11.17.2003

@sh0dan I've just realized this is the first frame-by-frame evaluation and conditional filtering ever done in Avisynth! :D Way to go, sh0dan! Haven't tried it yet, it seems we can use any variables, right? Now if we could have an "exists filename" condition and variable import... ;) I've got to show this to Ddogg :D Bilu



Message # 7 31.08.24 - 00:24:20
RE: Using per frame conditional filtering

Randy V

Chronic doubter




Statistics:
Messages: 844
Registration: 12.04.2003

Yes - you can use any variables - and in principle execute as many functions as you like, as long as it returns either bool, int or float.


--------------------
Randy V. San Diego, CA '98 740iL (Black/Tan/NAV-TV & all the gadgets)
Message # 8 31.08.24 - 00:35:37
RE: Using per frame conditional filtering

Stinky

Chronic doubter




Statistics:
Messages: 86
Registration: 10.03.2003

And could I use Import() in one of the sources? ;) Bilu



Message # 9 31.08.24 - 00:41:52
RE: Using per frame conditional filtering

jmig

Chronic doubter




Statistics:
Messages: 291
Registration: 10.14.2003

Sources are static - only the two conditions are evaluated, so no.



Message # 10 31.08.24 - 00:50:47
RE: Using per frame conditional filtering
Automatically Panning : Previous topic
Pages:  1  2  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Running on: Phorum 8.88.8