ColorBloom (make old gameplay videos look like current gen with glow effects) copy and paste in avsi file put it in Avisynth plugin directory folder :
Code:
Function ColorBloom_MT (clip Last, int "radius", int "min", int "max", float "sat") {
radius = Default (radius, 5)
edges = (radius % 4) == 0 ? radius : radius + 4 - (radius % 4)
min = Default (min, 254)
max = Default (max, min + 1)
sat = Default (sat, 128)
ConvertToYV12
blm = Mergeluma(last, Levels(min, 1, max, 0, 235, false), 1)
\ .GaussResize(width/edges,height/edges,p=1)
\ .BilinearResize(width,height)
\ .ColorYUV(cont_u=sat,cont_v=sat)
\ .Levels(1, 1, 75, 0, 255, false)
bloommask = MT_Lutxy(Merge(blm
\ ,BlankClip(blm,color_yuv=$FF8080),0.5)
\ ,yexpr="x y > x y"
\ ,uexpr="x 255 == x 255 y y * 255 x - / min ?"
\ ,vexpr="x 255 == x 255 y y * 255 x - / min ?"
\ ,chroma="process",Y=3,U=3,V=3)
MT_Merge (last, bloommask, blm,luma=true,chroma="process") #set luma to true because chroma looks rough.
}
Just experimenting,feel free to edit, Have fun!
Last edited by MJLives12; 4th May 2013 at 00:56.
Reason: Rename to colorbloom with few changes
|