View Single Post
Old 6th January 2012, 15:47   #6  |  Link
librarian
Registered User
 
Join Date: Nov 2011
Posts: 63
A quick try:
Code:
LoadPlugin("Your_Path_here\mt_masktools-25.dll")
LoadPlugin("Your_Path_here\average.dll")
LoadPlugin("Your_Path_here\Removegrains.dll")
LoadPlugin("Your_Path_here\RepairS.dll")
LoadPlugin("Your_Path_here\RemovedirtS.dll")
LoadPlugin("Your_Path_here\Tivtc.dll")
LoadPlugin("Your_Path_here\Yadifmod.dll")
LoadPlugin("Your_Path_here\nnedi3.dll")
LoadPlugin("Your_Path_here\Tisophote.dll")
LoadPlugin("Your_Path_here\FFt3dfilter.dll")
Import(""Your_Path_here\srestore.avsi")

FFmpegsource("Felix Interlaced.avi")

Yadifmod(mode=1,edeint=nnedi3(field=2))

Srestore(frate=24)

############now your clips is 24 fps without fieldblending, as requested. If you want to denoise it, you can apply this: ############
Greyscale().converttoyv12()

tweak(bright=8,cont=1.1)

Tisophote()

grain=mt_makediff(removegrain(17,0))# save a bit of original grain

Removedirt()#_grey=true give me a few random green screens

fft3dfilter(sigma=1,sigma4=6)

mt_adddiff(grain)# recover original grain 



function RemoveDirt(clip input, bool "_grey", int "repmode") 
{
    _grey=default(_grey, false)
	repmode=default(repmode, 16)
	clmode=17
	clensed=Clense(input, grey=_grey, cache=4)
	sbegin = ForwardClense(input, grey=_grey, cache=-1)
	send = BackwardClense(input, grey=_grey, cache=-1)
	alt=Repair(SCSelect(input, sbegin, send, clensed, debug=true), input, mode=repmode, modeU = _grey ? -1 : repmode ) 
	restore=Repair(clensed, input, mode=repmode, modeU = _grey ? -1 : repmode)
	corrected=RestoreMotionBlocks(clensed, restore, neighbour=input, alternative=alt, gmthreshold=70, dist=1, dmode=2, debug=false,\
 	noise=10, noisy=12, grey=_grey)
	return RemoveGrain(corrected, mode=clmode, modeU = _grey ? -1 : clmode )
}

Last edited by librarian; 6th January 2012 at 16:05.
librarian is offline   Reply With Quote