Log in

View Full Version : Derainbow help


Trash Master
9th December 2008, 16:54
I have been trying to get DeRainbow to work and for the life of me I can't figure it out. If I am not getting an msharpen error I get a maskmerge error. Am I missing any .dll's At the bottom is the code I am using for my DeRainbow.avs. I am brain dead. I search for hours last night and all the threads I found did not help. I am sure it's something simple I need to do. Thanks for your time. -TM
DGDecode.dll
Decomb522.dll
deblock.dll
vinverse.dll
dup.dll
mt_masktools-25.dll
mt_masktools-26.dll
fft3dfilter.dll
DctFilter.dll
mvtools.dll
RemoveGrainS.dll
undot.dll
Repair.dll
RSharpenS.dll
DenoiseSharpen.dll
RSharpen.dll
TIVTC.dll
TDeint.dll
ColorMatrix.dll
hqdn3d.dll
============================
function DeRainbow(clip org, int "thresh")
{
assert(org.isYV12(),"DeRainbow() requires YV12 input!")
thresh = default(thresh, 10)

org_u = utoy(org)
org_v = vtoy(org)

msharpen(org, threshold = thresh, mask=true)
reduceby2()
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255, coring=false).blur(1.5).blur(1.5).levels(50,2.0,255,0,255, coring=false)

filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)

u_final = mt_merge(org_u, filtered_u, uv)
v_final = mt_merge(org_v, filtered_v, uv)

return ytouv(u_final, v_final, org)
}

jeffy
9th December 2008, 21:13
Do you have these?
MSharpen
http://neuron2.net/msharpen/msharpen.html

MipSmooth
http://avisynth.org.ru/docs/english/externalfilters/mipsmooth.htm

Trash Master
9th December 2008, 21:52
*just got back. I was gonna post a " I got it ". Thanks for the input jeffy. I am using mipsmooth() and msharpen(). Everything is working fine.