Log in

View Full Version : help w/ writing proper format for filters


jei
14th October 2004, 18:25
Hello all!
I have been experimenting with the convolution3d filter to clean up some grainy noise on vhs captures. What I found was that for convolution3d setting of vhsBQ, it would totally take out all traces of noise, but the picture is very smoothed and soft. I tried other lower settings but still saw some noise, so I wanted to try some sharpen filters on it. Also wanted to try some others I've seen recommended, like cnr2, undot, vague denoiser... etc. with the convolution3d to see if those have better results.

Anyway, I am not sure how to correctly write the code, because I don't exactly know what everything is doing but have some idea, I have been basically following along with guides (http://www.videohelp.com/forum/viewtopic.php?t=225951).

So say for the Undot filter, how would I write that in?

Would it be like this:

LoadPlugin("Convolution3d.dll")
avisource("D:\CAPTURE\capture.avi")
ConvertToYUY2(interlaced=true)
crop(8,4,-8,-4)
UnDot()
SeparateFields()
odd=SelectOdd.Convolution3D (0, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D (0, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
AddBorders(8,8,8,8)
LanczosResize(352,480)

or do I do this:

LoadPlugin("Convolution3d.dll")
avisource("D:\CAPTURE\capture.avi")
ConvertToYUY2(interlaced=true)
crop(8,4,-8,-4)
SeparateFields()
odd=SelectOdd.UnDot().Convolution3D (0, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.UnDot().Convolution3D (0, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
AddBorders(8,8,8,8)
LanczosResize(352,480)
Since my source is interlaced, would I go with the second one? How about for other filters?

Thanks for reading!

jei
17th October 2004, 06:01
Hey again,

I'm trying out PeachSmoother now, I wish filter readme's came with sample code, I just don't know where to put these things...

Which one is right?


avisource("D:\CAPTURE\capture.avi")
ConvertToYUY2(interlaced=true)
crop(8,4,-8,-4)
SeparateFields()
odd=SelectOdd.PeachSmoother()
evn=SelectEven.PeachSmoother()
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
AddBorders(8,8,8,8)
LanczosResize(352,480)



avisource("D:\CAPTURE\capture.avi")
ConvertToYUY2(interlaced=true)
crop(8,4,-8,-4)
SeparateFields()
PeachSmoother()
Weave()
AddBorders(8,8,8,8)
LanczosResize(352,480)