Author
|
Topic: HDR telecine clips SUPER 8 and REGULAR 8mm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mattias Norberg
Junior
Posts: 30
From: Sweden
Registered: Jul 2012
|
posted October 20, 2013 01:05 PM
Thanks this is a modified videofred script here it is
***************************************************************
#SetMemoryMax(1920) #enable if you use MT mode #SetMTMode(2,4) #enable if you use MT mode LoadDll("C:\avsplugins\fftw3.dll") #change the path where you have the dll files LoadDll("C:\avsplugins\mvtools2.dll") #change the path where you have the dll files
a=ImageSource("G:\Reel1\hdrstab\image%d.tga",start=0,end=32428,fps=18).ConvertToYV12().Changefps(54) #i tripple the frame count from 18 to 54 it did help the denoise in fast scenes i use later SelectEvery(3,0) to get back to orginal 18 fps
return denoise(a).SelectEvery(3,0).ConvertToRGB24().imagewriter(file="I:\outputDIRECTORY\image%d.tga",start=0,end=0,type="tga") #i output it as image sequence just play this .avs file with ex media player classic
function denoise(clip movie) { block_size=16 block_over=block_size/2 USM_sharp_ness=30 USM_radi_us=3 USM_sharp_ness1 = USM_sharp_ness USM_sharp_ness2 = USM_sharp_ness+(USM_sharp_ness/2) USM_sharp_ness3 = USM_sharp_ness*2 USM_radi_us1 = USM_radi_us USM_radi_us2 = USM_radi_us-1 USM_radi_us3 = USM_radi_us2-1
cleaned=RemoveGrain(movie,2).unsharpmask(USM_sharp_ness1,USM_radi_us1,0).unsharpmask(USM_sharp_ness2,USM_radi_us2,0) #SetMTMode(5) #enable if you use MT mode vectors= MVAnalyseMulti(cleaned,refframes=6, pel=2,truemotion=true, blksize=block_size ,blksizev=block_size, overlap=block_over,dct=0,idx=1,search=1,threads=12,prefetch=1)
T=MVDegrainMulti(cleaned,vectors, thSAD=1100, SadMode=0, idx=2,plane=4,threads=12).unsharpmask(USM_sharp_ness3,USM_radi_us3,0) #SetMTMode(2) #enable if you use MT mode b2=t.blur(0.9).NonlinUSM(1.2,1.5,1.2,3.5).mgrain3().blur(0.1)
return b2 }
function mgrain3(clip last) { blksize_size=8 overlap_size=blksize_size/2 dct=0 tmotion=false super= last.MSuper(pel=2) bv1 = MAnalyse(super, isb = true, delta=1,truemotion=tmotion,blksize=blksize_size,overlap=overlap_size, dct=dct) fv1 = MAnalyse(super, isb = false, delta=1,truemotion=tmotion,blksize=blksize_size,overlap=overlap_size, dct=dct) bv2 = MAnalyse(super, isb = true, delta=2,truemotion=tmotion,blksize=blksize_size,overlap=overlap_size, dct=dct) fv2 = MAnalyse(super, isb = false, delta=2,truemotion=tmotion,blksize=blksize_size,overlap=overlap_size, dct=dct) bv3 = MAnalyse(super, isb = true, delta=3,truemotion=tmotion,blksize=blksize_size,overlap=overlap_size, dct=dct) fv3 = MAnalyse(super, isb = false, delta=3,truemotion=tmotion,blksize=blksize_size,overlap=overlap_size, dct=dct) l=last.MDegrain3(super, bv1,fv1,bv2,fv2,bv3,fv3,thSAD=650) return l }
function NonlinUSM(clip o, float "z", float "pow", float "str", float "rad", float "ldmp") { z = default(z, 6.0) # zero point pow = default(pow, 1.6) # power str = default(str, 1.0) # strength rad = default(rad, 9.0) # radius for "gauss" ldmp= default(ldmp, 0.001) # damping for verysmall differences
g = o.bicubicresize(round(o.width()/rad/4)*4,round(o.height()/rad/4)*4).bicubicresize(o.width(),o.height(),1,0)
mt_lutxy(o,g,"x x y - abs "+string(z)+" / 1 "+string(pow)+" / ^ "+string(z)+" * "+string(str)+ \ " * x y - 2 ^ x y - 2 ^ "+string(ldmp)+" + / * x y - x y - abs 0.001 + / * +",U=2,V=2)
return(last) }
| IP: Logged
|
|
|
|
|
|
|
|
|
|