bololo
15th April 2010, 10:10
Hello Everyone!
I would like to learn how to use Avisynth and all the filters arround to repair/improve my collection of old anime.
I would like to make my first try on "Arupusu no Shōjo Haiji" which is from 1974 and it is extreme noisy and suffers some shaking.
Furthermore this anime suffers spotting and also dark lines are too bright for my taste.
For getting an idea of this toon, here a lossless compressed sample (34 MB, codec:FFV1)
http://rapidshare.com/files/376022232/sample.avi
Edit:Another sample direct from the source
(15 MB, mpeg2):
http://rapidshare.com/files/376421612/sample_cut.mpv
Edit: My avisynth-Script (you may have to adjust the path for the filters)
# Set DAR in encoder to 4 : 3. The following line is for automatic signalling
global MeGUI_darx = 4
global MeGUI_dary = 3
AviSource("sample.avi")
### colorcorrection
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)
### anitflicker
loadplugin("deflicker.dll")
DeFlicker(scene=30)
###linedarken
Import("FastLineDarken.avs")
FastLineDarken(strength=128)
### DeDot
TComb(mode=2,fthreshl=10,fthreshc=20,othreshl=5,othreshc=6,map=false,scthresh=12.0)
### crop
crop( 14, 2, -10, -2)
###Saturation
Tweak(sat=1.1, bright=-30, cont=1.1)
### Denoise
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\Convolution3DYV12.dll")
Convolution3D("animeBQ")
#----- eDeen(r=2, ty=20, tuv=30, ly=2, luv=3, hqc=true)
FFT3DFilter(sigma=2.0, plane=4, bw=48, bh=48, bt=4, ow=16, oh=16, sharpen=1, interlaced=false)
#ConvertToYV12()
#deSpot
i=ConvertToYV12()
d = DePanEstimate(i,trust=3)
DePanInterleave( data=d)
DeSpot(p1=30, p2=15, pwidth=800, pheight=600, mthres=20, motpn=true, dilate=1, seg=1, color=true,ranked=true)
SelectEvery(3, 1)
### deshake
Import("Stab.avs")
Stab()
### 3rd party filter
LoadVirtualDubPlugin("MSU_cartoon_restore.vdf","MSUCartoonRestore", 0)
ConvertToRGB32.MSUCartoonRestore("bilateral", 2, 4, 30)
ConvertToYV12()
###Sharpen
aWarpSharp2(depth=20,type=0,blur=4,thresh=128,chroma=4)
MSharpen(threshold = 15, strength = 100)
###duplicate frames
Dup(threshold=3,blend=false,copy=true,chroma=false,blksize=8,show=false)
Edit: Now i am satisfied
But i am not satisfied with the result, so i beg for your help:
I cant fix this x and y shaking, and the areas of same colour still have noise.
Do you have any suggestions or hints for me?
I played arround with all this disabled (#) filters in the script but i failed to find good settings - maybe you have an idea?
greetings,
bololo
I would like to learn how to use Avisynth and all the filters arround to repair/improve my collection of old anime.
I would like to make my first try on "Arupusu no Shōjo Haiji" which is from 1974 and it is extreme noisy and suffers some shaking.
Furthermore this anime suffers spotting and also dark lines are too bright for my taste.
For getting an idea of this toon, here a lossless compressed sample (34 MB, codec:FFV1)
http://rapidshare.com/files/376022232/sample.avi
Edit:Another sample direct from the source
(15 MB, mpeg2):
http://rapidshare.com/files/376421612/sample_cut.mpv
Edit: My avisynth-Script (you may have to adjust the path for the filters)
# Set DAR in encoder to 4 : 3. The following line is for automatic signalling
global MeGUI_darx = 4
global MeGUI_dary = 3
AviSource("sample.avi")
### colorcorrection
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)
### anitflicker
loadplugin("deflicker.dll")
DeFlicker(scene=30)
###linedarken
Import("FastLineDarken.avs")
FastLineDarken(strength=128)
### DeDot
TComb(mode=2,fthreshl=10,fthreshc=20,othreshl=5,othreshc=6,map=false,scthresh=12.0)
### crop
crop( 14, 2, -10, -2)
###Saturation
Tweak(sat=1.1, bright=-30, cont=1.1)
### Denoise
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\Convolution3DYV12.dll")
Convolution3D("animeBQ")
#----- eDeen(r=2, ty=20, tuv=30, ly=2, luv=3, hqc=true)
FFT3DFilter(sigma=2.0, plane=4, bw=48, bh=48, bt=4, ow=16, oh=16, sharpen=1, interlaced=false)
#ConvertToYV12()
#deSpot
i=ConvertToYV12()
d = DePanEstimate(i,trust=3)
DePanInterleave( data=d)
DeSpot(p1=30, p2=15, pwidth=800, pheight=600, mthres=20, motpn=true, dilate=1, seg=1, color=true,ranked=true)
SelectEvery(3, 1)
### deshake
Import("Stab.avs")
Stab()
### 3rd party filter
LoadVirtualDubPlugin("MSU_cartoon_restore.vdf","MSUCartoonRestore", 0)
ConvertToRGB32.MSUCartoonRestore("bilateral", 2, 4, 30)
ConvertToYV12()
###Sharpen
aWarpSharp2(depth=20,type=0,blur=4,thresh=128,chroma=4)
MSharpen(threshold = 15, strength = 100)
###duplicate frames
Dup(threshold=3,blend=false,copy=true,chroma=false,blksize=8,show=false)
Edit: Now i am satisfied
But i am not satisfied with the result, so i beg for your help:
I cant fix this x and y shaking, and the areas of same colour still have noise.
Do you have any suggestions or hints for me?
I played arround with all this disabled (#) filters in the script but i failed to find good settings - maybe you have an idea?
greetings,
bololo