Log in

View Full Version : Noise filter for anime?


killerhis
23rd March 2003, 15:36
Hi.... there a lot of noise reductions filters out on the net. I have a anime movie and I want to apply 2d and 3d (noise)cleaning. The anime that I'm encoding is on DVD (Ghost in the shell), and want to encode it into XviD. It's a PAL 4:3 movie!
I've been playing around with some filters, but it's a though choise to choose the best.

So any ideas which 2d and 3d filter i need to use and it's options. Please post your ideas, suggestions and opinions here.

Thankz

Killer HIS


PS: this is what i've got so far:

----------------------------------------------------------------

# version 1.3 alpha


# variable

lr_crop=8
tb_crop=20

# plugins

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3 v1.00\MPEG2Dec3.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\decomb406b6\Decomb.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\UnDot\UnDot.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\BicublinResize beta 1\BicublinResize.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\Deen beta 2\Deen.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\dup201\Dup.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\FluxSmooth-1.0\FluxSmooth-2.5.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter\UnFilter_Avisynth_2.5_Alpha\UnFilter.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\msmooth20b1\Msmooth.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\FluxSmooth-1.0\FluxSmooth-2.5.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\msharpen101\MSharpen.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\Deen beta 2\Deen.dll")

# source

mpeg2source("C:\ripping\Ghost in the shell.d2v", cpu=4, ipp=true, idct=1)

# video converting

telecide(guide=2, blend=false, gthresh=50)
Crop(lr_crop, tb_crop, -lr_crop, -tb_crop)
FastBilinearResize(640, 480)

# video processing

dup(threshold=1.5, copy=true, blend=true)

# end

sh0dan
23rd March 2003, 16:57
For a Ghost in the Shell I found this 2.5 script I used for a 1 CD XviD:
AFAIR the source was NTSC with Force Film.


MPEG2Source("C:\temp\rip05\ghost.d2v",cpu=4,idct=2)
crop(8,16,-8,-16)
Convolution3d (preset="animeHQ")
dup(threshold=1.5,copy=true, blend=true)
converttoyuy2()
msharpen()
converttoyv12()
bicubicresize(624,352)
limiter()


Be sure to try using the latest Dup (http://forum.doom9.org/showthread.php?s=&threadid=44500&highlight=Dup+CNR2).

EDIT by neuron2: That is, Dup version 2.20 beta 1 from the end of the thread. This version was contributed by the great sh0dan and fixes a blending problem as well as provides low-level optimizations.

MasterYoshidino
24th March 2003, 17:34
that's a good setting if you are using the beta avisynth 2.5
for 2.0 users u mite want to look into using the following setting


Telecide(post=true).Decimate(cycle=5)
SmoothHiQ(3,20,30,256,0)
TemporalSmoother(3)
Dup(threshold=0.50,show=false,copy=true)
LanczosResize(640,360,16,0,688,480)


don't use telecide if the source is pal of course =p
Dup needs to be played with though, some encode well at 0.5 threshold while some need as much as 1.0.
Lanczos is not necessary, but gives better looks to edges. You can also use a BicubicResize
The resize needs to be tweated to your source.
The example above is for a letterboxed source.

note that I don't use C3D as it does not support smart edge detection, like that of SShiQ does. But either way, _do_not_ place the SmoothHiQ below the TemporalSmoother under _any_ circumstances.

Lefungus
24th March 2003, 18:15
Ghost in the Shell PAL is also interlaced. SO i guess you should definitely put telecide in your script

MasterYoshidino
25th March 2003, 11:21
just don't decimate frames =)

sh0dan
25th March 2003, 11:30
@MasterYoshidino: Actually you do not gain anything from the "smart edge detection" when using radius = 3. Do the math, and you will see that no pixels can be blocked. ;)

digitize
25th March 2003, 14:21
I find that marc fd's atc (alternate temp cleaner) cleans up noise better than avs temporalcleaner, because it has the pixel lock feature.