bmnot
25th January 2009, 03:10
Alright, I'm trying to run a spot removal plugin that I found works very well after running an IVTC on a film and resizing it to 16x9. But When I open my avs file in TMPGEnc or MeGUI every time it tells me that the line where I load the virtualdub plugin is bad, I've seen other people load virtualdub plugins in avisynth this way without problems. I'm probably doing something wrong, can someone help me out. Also, I'd rather not do this in virtualdub and frameserve it, but if I have to do that I guess I will.
# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\mvtools.dll")
LoadVirtualDubPlugin("C:\PROGRA~1\GORDIA~1\VirtualDubMod\plugins\SpotRemover.vdf","SpotRemover",11)
# SOURCE
mpeg2source("C:\Users\Derek\Desktop\TheLastManOnEarth.d2v")
# TO ALL OF YOU AT DOOM9 THIS NEXT LINE JUST DEFINES THE FILE AS A VALUE
# NAMED SRC ITS USED LATER WITH THE SPOT REMOVAL PLUGIN
SRC = mpeg2source("C:\Users\Derek\Desktop\TheLastManOnEarth.d2v")
# TRIM
#trim(startframe,endframe)
# IVTC
Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
# DEINTERLACING (2)
#KernelDeInt(order=1,sharp=true)
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
# CROPPING
crop(0,60,720,360)
# SUBTITLES
#VobSub("FileName")
# RESIZING
LanczosResize(720,480)
# DENOISING: choose one combination (or none)
Undot()
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmoothST(5,7)
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmoothST(7,7)
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmoothST(10,15)
# BORDERS
#AddBorders(left,top,right,bottom)
# COMPRESSIBILITY CHECK
#SelectRangeEvery(280,14)
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)
# SPOT REMOVAL
FLT = SRC.Blur(1.58)
b_vec2 = FLT.MVAnalyse(isb = true, delta = 2, idx=1)
b_vec1 = FLT.MVAnalyse(isb = true, delta = 1, idx=1)
f_vec1 = FLT.MVAnalyse(isb = false, delta = 1, idx=1)
f_vec2 = FLT.MVAnalyse(isb = false, delta = 2, idx=1)
bf2 = SRC.MVCompensate(vectors=b_vec2, idx=2)
bf1 = SRC.MVCompensate(vectors=b_vec1, idx=2)
ff1 = SRC.MVCompensate(vectors=f_vec1, idx=2)
ff2 = SRC.MVCompensate(vectors=f_vec2, idx=2)
interleave( bf2, bf1, SRC.MVDegrain2(b_vec2,b_vec1,f_vec1,f_vec2,plane=4,thsad=400,idx=1), ff1, ff2 )
#CONVERT TO RGB32
ConvertToRGB32()
SpotRemover("SSI:7 SSC:0 SKW:5 SLI:2 SLC:2 SLD:0 DLS:26 DLC:18 DPC:16 DSF:2 DSD:0 \
MTX:16 MTY:12 MTL:22 MDX:1 MDY:1 MIH:0","")
SelectEvery( 5, 4 )
I'd really appreciate some help on this. Also, the url of the spot removal plugin is http://spotremoverfilter.com It works brilliantly! Check it out. If you know of a better plugin or a better way to do this please let me know.
Thanks in Advance!
Also the film I'm trying to do this on is "The Last Man on Earth" which was filmed in 1964, and has since gone Public Domain, I'd like to fix this film because it's based on the same Richard Matheson novel as I Am Ledgend, it's a good movie.
http://www.archive.org/details/the-last-man-on-earth
http://www.imdb.com/title/tt0058700/
# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\mvtools.dll")
LoadVirtualDubPlugin("C:\PROGRA~1\GORDIA~1\VirtualDubMod\plugins\SpotRemover.vdf","SpotRemover",11)
# SOURCE
mpeg2source("C:\Users\Derek\Desktop\TheLastManOnEarth.d2v")
# TO ALL OF YOU AT DOOM9 THIS NEXT LINE JUST DEFINES THE FILE AS A VALUE
# NAMED SRC ITS USED LATER WITH THE SPOT REMOVAL PLUGIN
SRC = mpeg2source("C:\Users\Derek\Desktop\TheLastManOnEarth.d2v")
# TRIM
#trim(startframe,endframe)
# IVTC
Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
# DEINTERLACING (2)
#KernelDeInt(order=1,sharp=true)
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
# CROPPING
crop(0,60,720,360)
# SUBTITLES
#VobSub("FileName")
# RESIZING
LanczosResize(720,480)
# DENOISING: choose one combination (or none)
Undot()
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmoothST(5,7)
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmoothST(7,7)
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmoothST(10,15)
# BORDERS
#AddBorders(left,top,right,bottom)
# COMPRESSIBILITY CHECK
#SelectRangeEvery(280,14)
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)
# SPOT REMOVAL
FLT = SRC.Blur(1.58)
b_vec2 = FLT.MVAnalyse(isb = true, delta = 2, idx=1)
b_vec1 = FLT.MVAnalyse(isb = true, delta = 1, idx=1)
f_vec1 = FLT.MVAnalyse(isb = false, delta = 1, idx=1)
f_vec2 = FLT.MVAnalyse(isb = false, delta = 2, idx=1)
bf2 = SRC.MVCompensate(vectors=b_vec2, idx=2)
bf1 = SRC.MVCompensate(vectors=b_vec1, idx=2)
ff1 = SRC.MVCompensate(vectors=f_vec1, idx=2)
ff2 = SRC.MVCompensate(vectors=f_vec2, idx=2)
interleave( bf2, bf1, SRC.MVDegrain2(b_vec2,b_vec1,f_vec1,f_vec2,plane=4,thsad=400,idx=1), ff1, ff2 )
#CONVERT TO RGB32
ConvertToRGB32()
SpotRemover("SSI:7 SSC:0 SKW:5 SLI:2 SLC:2 SLD:0 DLS:26 DLC:18 DPC:16 DSF:2 DSD:0 \
MTX:16 MTY:12 MTL:22 MDX:1 MDY:1 MIH:0","")
SelectEvery( 5, 4 )
I'd really appreciate some help on this. Also, the url of the spot removal plugin is http://spotremoverfilter.com It works brilliantly! Check it out. If you know of a better plugin or a better way to do this please let me know.
Thanks in Advance!
Also the film I'm trying to do this on is "The Last Man on Earth" which was filmed in 1964, and has since gone Public Domain, I'd like to fix this film because it's based on the same Richard Matheson novel as I Am Ledgend, it's a good movie.
http://www.archive.org/details/the-last-man-on-earth
http://www.imdb.com/title/tt0058700/