logo Sign In

Post #901131

Author
Harmy
Parent topic
Avisynth gate weave stabilization
Link to post in topic
https://originaltrilogy.com/post/id/901131/action/topic#901131
Date created
25-Jan-2016, 12:55 AM

OK, so let me preface this by saying I know very little about avisynth and am hopeless with programming, so I always need simple step by step instructions when attempting something like this.

So, here is the script I’m using, which works just fine:

AviSource(“P:\video.avi”)

converttoYV12()

LoadPlugin(“plugins/removedirt.dll”)
Import(“plugins/03_RemoveDirtMC.avs”)
dirt_strenght=20
RemoveDirtMC(dirt_strenght)

ConvertToRGB24
return last

Now, I found this stabilization script from GForce:

temp=orig.TemporalSoften(7,255,255,25,2)
rep=Repair(temp,orig,mode=16).TemporalSoften(1,255,255,25,2)
source=Interleave(rep,orig,rep)
mdata=DePanEstimate(source, range=1, trust=0, dxmax=1, dymax=1)
DePan(source, data=mdata, offset=1)
SelectEvery(3,2)

How do I incorporate it into the above script, so that it stabilizes before it removes dirt?
When I simply pasted it after converttoYV12() I got an error saying:
I don’t know what “orig” means.