shoopdabloop
31st May 2009, 07:48
loadcplugin("c:\program files\avisynth 2.5\plugins\yadif.dll")
AviSource("tape 5 - clip 007.avi").AssumeBFF().converttoYV12(interlaced=true)
MT("removegrain()",0,splitvertical=true)
MT("Yadif()",0,splitvertical=true)
Trim(1,last.framecount)
Spline36Resize(748,496)
mdata = DePanEstimate(trust=0,pixaspect=0.9091)
DePanStabilize(data=mdata,dxmax=12,dymax=14,mirror=12,pixaspect=0.9091)
Crop2(720,356)
MT("DeGrainMedian(mode=0)",0)
fft3dgpu()
MT("removegrain()",0)
MT("warpsharp(54)",0)
AddBorders(0,62,0,62)
source is moderately shaky NTSC DV footage (16:9 letterboxed to 720x480) from a PANASONIC PV-DV102 camcorder (consumer, circa 2002)
final avisynth output is 720x480 with letterboxing.
Crop2 is a simple script I wrote that calculates the appropriate cropping for each side of the image from a WxH input.
function Crop2(clip clp, int "wid", int "hei", bool "alg")
{
dw = clp.width - wid
dh = clp.height - hei
hw = dw/2
hh = dh/2
return clp.Crop(hw,hh,-hw,-hh,alg)
}
the destination project is 654x354 (~1.85:1), hence the "Crop2(720,356)" (720x0.9091 is almost 654, 354 isn't div/4 but the video editing apps i use support it)
i am by no means an experienced avisynther, so feel free to tell me where i ****ed up.
AviSource("tape 5 - clip 007.avi").AssumeBFF().converttoYV12(interlaced=true)
MT("removegrain()",0,splitvertical=true)
MT("Yadif()",0,splitvertical=true)
Trim(1,last.framecount)
Spline36Resize(748,496)
mdata = DePanEstimate(trust=0,pixaspect=0.9091)
DePanStabilize(data=mdata,dxmax=12,dymax=14,mirror=12,pixaspect=0.9091)
Crop2(720,356)
MT("DeGrainMedian(mode=0)",0)
fft3dgpu()
MT("removegrain()",0)
MT("warpsharp(54)",0)
AddBorders(0,62,0,62)
source is moderately shaky NTSC DV footage (16:9 letterboxed to 720x480) from a PANASONIC PV-DV102 camcorder (consumer, circa 2002)
final avisynth output is 720x480 with letterboxing.
Crop2 is a simple script I wrote that calculates the appropriate cropping for each side of the image from a WxH input.
function Crop2(clip clp, int "wid", int "hei", bool "alg")
{
dw = clp.width - wid
dh = clp.height - hei
hw = dw/2
hh = dh/2
return clp.Crop(hw,hh,-hw,-hh,alg)
}
the destination project is 654x354 (~1.85:1), hence the "Crop2(720,356)" (720x0.9091 is almost 654, 354 isn't div/4 but the video editing apps i use support it)
i am by no means an experienced avisynther, so feel free to tell me where i ****ed up.