Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Jun 2007
Posts: 215
|
Cannot Load VirtualDub Plugins
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.
Code:
# 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 ) 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/ Last edited by Guest; 25th January 2009 at 07:09. Reason: readability |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Jan 2007
Posts: 943
|
Isn't this a bad usage of SelectEvery?
http://forum.doom9.org/showthread.ph...97#post1034397 |
![]() |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: May 2006
Posts: 237
|
I tried all the cleaners, spot removers etc I could find a while ago, including SpotRemover.vdf, and concluded that removedirt, which is already an Avisynth plugin, gave the best results for me. Also very simple to use.
I usually add a sharpen after. Last edited by AlanHK; 25th January 2009 at 11:36. |
![]() |
![]() |
![]() |
#4 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,437
|
Quote:
You cannot use a \ to split a string literal across lines. Either write it all on one line or change it to Code:
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","") |
|
![]() |
![]() |
![]() |
#7 | Link | |
Registered User
Join Date: May 2006
Posts: 237
|
Quote:
Install the RemoveGrain and RemoveDirt packages. Copy the script function RemoveDirt from the HTML help file, or save it as an avsi in your plugins directory, or load explicitly), then just: Code:
AVISource("clip.avi") RemoveDirt() Sharpen(0.7) And many options you can tweak, but defaults work for me. |
|
![]() |
![]() |
![]() |
Tags |
avisynth, plugin, virtualdub, virtualdubmod |
Thread Tools | Search this Thread |
Display Modes | |
|
|