PDA

View Full Version : Using Filters, order/arrangement


Delta2
8th May 2006, 11:10
LoadPlugin("blockbuster.dll")
LoadPlugin("deen.dll")
LoadPlugin("asharp.dll")
LoadPlugin("UnDot.dll")
DirectShowSource("MOVIE.AVI",framecount=7534)
ConvertToyv12()
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
Deen("c2d",2,4,6,4,6,0.5,9,"")
asharp(1,4)
UnDot()
Lanczos4Resize(720,428)
Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.3,seed=2)
Tweak(hue=4,sat=1.3,bright=0,cont=0.9)
AddBorders(0,74,0,74)


Is this arrangement/order of filters correct to get a best DVD quality ?

Daodan
8th May 2006, 11:17
Only thing that could be out of place is to move that Blockbuster before resizing since I think deblockers (don't know about this one) need mod16 to work well. I don't really understand why you used it two times though... Usually resize comes last for best effect of the other filters, deblockers come first, denoisers in the middle, in my opinion, in case your source is progressive of course.
As for the filters themeselves... there are better ones (I'm mainly refering to asharp that produces a weird image in my opinion), but if you like the output...it's up to you.

foxyshadis
8th May 2006, 11:56
Second Blockbuster is fine, it adds grain to prevent blocks during encode, rather than removing blocks. The first one is useless though, I think you want a real deblocker there? (funkydeblock, deblock_qed, or just deblock.)

aSharp does have a weird look, like smoothing and sharpening at once (good for anime, not real life), aWarpSharp or LimitedSharpen might look a lot better for rl material.

Clown shoes
29th May 2006, 22:53
I was also wondering about filter orders. Mostly with regard to sharpeners, deblockers, denoisers and resizers. Is there a general rule of thumb when it comes to the order of these things, or is it more dependant on the content?

This is a fairly generic script I would use for something that had some macro blocking, and a little noise.

# DLLs

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\DctFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\mt_masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\Deen.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\FluxSmooth.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\mvtools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\RemoveDirt.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\RemoveGrainS.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\Repair.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\VagueDenoiser.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\deblock.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\EEDI2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\frfun7.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Remove Noise Simple\AddGrain.dll")

# SCRIPTS

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\RemoveNoiseMC.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\SeeSaw.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\BlockTerminator.avsi")



avisource("E:\test.avi", audio=false)

AssumeFPS(25)

colorMatrix()
Levels(0, 1.3, 255, 0, 255)
Tweak(bright=1.0, sat=1.1, cont=1.05 )
ColorYUV(gain_u=5)

Deblock_QED(quant1=18,aOff1=16,quant2=28,aOff2=11)
#BlockTerminator()

#hqdn3d(3,2,4,4,5). LimitedSharpenFaster(dest_x=720,dest_y=576,ss_x=1.1,ss_y=1.1,Smode=3,strength=50)
RemoveNoiseMC_HQ(tlimit=4,rgrain=1). LimitedSharpenFaster(dest_x=720,dest_y=576,ss_x=1.1,ss_y=1.1,Smode=3,strength=50)

addborders(0,32,0,32)

stickboy
30th May 2006, 00:47
I was also wondering about filter orders. Mostly with regard to sharpeners, deblockers, denoisers and resizers. Is there a general rule of thumb when it comes to the order of these things, or is it more dependant on the content?A general rule of thumb is to denoise before sharpening (you don't want to sharpen noise) and to resize last.

I'm not familiar enough with deblockers to comment on that. If your source is a DVD, I'd guess you should deblock before denoising, since with a digital transfer, no noise would have been added after the blocks were introduced.