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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th January 2009, 04:10   #1  |  Link
bmnot
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 )
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/

Last edited by Guest; 25th January 2009 at 07:09. Reason: readability
bmnot is offline   Reply With Quote
Old 25th January 2009, 10:47   #2  |  Link
jeffy
Registered User
 
Join Date: Jan 2007
Posts: 943
Isn't this a bad usage of SelectEvery?
http://forum.doom9.org/showthread.ph...97#post1034397
jeffy is offline   Reply With Quote
Old 25th January 2009, 11:29   #3  |  Link
AlanHK
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.
AlanHK is offline   Reply With Quote
Old 25th January 2009, 12:36   #4  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by bmnot View Post
the line where I load the virtualdub plugin is bad ...
Code:
LoadVirtualDubPlugin("C:\PROGRA~1\GORDIA~1\VirtualDubMod\plugins\SpotRemover.vdf","SpotRemover",11)
...
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","")
Do you get an error on the LoadVirtualDubPlugin line or on the call to SpotRemover itself?

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","")
Gavino is offline   Reply With Quote
Old 25th January 2009, 15:37   #5  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Gavino View Post
You cannot use a \ to split a string literal across lines.
That's not in his script. It was added by a mod to keep the screen from going too wide for readability.
Guest is offline   Reply With Quote
Old 25th January 2009, 17:07   #6  |  Link
bmnot
Registered User
 
Join Date: Jun 2007
Posts: 215
I'd like to expriment with RemoveDirt, DeSpot, and similar plugins, which plugins work good paired together, and does anyone have an example script that I could work with?
bmnot is offline   Reply With Quote
Old 25th January 2009, 19:52   #7  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Quote:
Originally Posted by bmnot View Post
I'd like to expriment with RemoveDirt, DeSpot, and similar plugins, which plugins work good paired together, and does anyone have an example script that I could work with?
RemoveDirt:
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)
(Obviously, sharpen to taste.)
And many options you can tweak, but defaults work for me.
AlanHK is offline   Reply With Quote
Reply

Tags
avisynth, plugin, virtualdub, virtualdubmod

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.