View Single Post
Old 29th October 2014, 12:19   #1  |  Link
elbennodiablo
Registered User
 
Join Date: May 2010
Posts: 10
8mm film denoising/deflickering fine-tuning

Hello everyone, I am filtering my parents wedding video, after a so-so capture that included double frames. I had a short discussion on the filtering already at the Video Help Forum.

After removing the doubles with srestore, I end up with a 20 fps video, of which you can download some frames here: frames.rar

I stabilized the footage for comparisement reasons, but still have the nonstabilized footage. John Meyer was so kind to suggest some filtering, which I am implementing and trying to work with these frames. This is my current script:

Quote:
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\Depan.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DepanEstimate.dll")
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\removegrain.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\removedirt.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\MVTools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\MVTools2.dll")
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\warpsharp.dll")
loadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools-26.dll")
loadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools-25.dll")
Import("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveDirtMC.avs")

### VIDEO

ImageSource("%03d.jpg", start=001, end=100, fps=20, use_DevIL=true)
converttoyv12(matrix="Rec709",interlaced=false)

### DENOISING AND DEFLICKERING
rest=last

calm = rest.temporalsoften(1,255,255,32,2).merge(rest,0.25)#.repair(rest,1).removegrain(11)
calm = calm.temporalsoften(1,255,255,16,2).merge(calm,0.25)

LOP = calm.bicubicresize(480,270).bicubicresize(1392,1048,1,0)
HIP = rest.bicubicresize(480,270).bicubicresize(1392,1048,1,0)
HIP = mt_makediff(rest,HIP)
mix = LOP.mt_adddiff(HIP,U=2,V=2)

sup1=rest.msuper(levels=1)
sup2=mix.removegrain(11).msuper()

bv2=sup2.manalyse(isb=true, delta=2,blksize=16,overlap=8,DCT=5)
bv1=sup2.manalyse(isb=true, delta=1,blksize=16,overlap=8,DCT=5)
fv1=sup2.manalyse(isb=false,delta=1,blksize=16,overlap=8,DCT=5)
fv2=sup2.manalyse(isb=false,delta=2,blksize=16,overlap=8,DCT=5)

rest.mdegrain2(sup1,bv1,fv1,bv2,fv2,thSAD=640)

### REMOVING DIRT
RemoveDirtMC(40,false)

### SHARPEN
ConverttoRGB32(matrix="rec709",interlaced=false)
LoadVirtualDubPlugin("F:\Losse Bestanden\Software\VirtualDub-1.10.4\plugins32\msu_sharpen.vdf", "MSUSmartSharpen", 1)
MSUSmartSharpen(2) # from 0 to 5 (mad)
converttoyv12(matrix="Rec709",interlaced=false)
frame 05
frame 44
frame 80

As you can see up here, I end up with ghosting in the image, because of the denoising step. How can this be solved? Or are the differences between the frames simply to big to be solved? Thank you!

Last edited by elbennodiablo; 30th October 2014 at 18:13.
elbennodiablo is offline   Reply With Quote