VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Jul 2008
    Location
    United States
    Search Comp PM
    I get an error while loading my script into VirtualDubMod. It has to be something easy to fix? I will post both my script and the error.

    Here is the error: AviSynth open failure: script error: there is no function named "RemoveDirt"

    Here is my script below:



    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\removedirt.dll")
    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\removegrain.dll")
    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\msharpen.dll")
    AVISource("I:\Apollo 13\video.avi")
    RemoveGrain(mode=2)
    RemoveGrain(mode=17)
    RemoveDirt()
    BlackmanResize(720,400)
    MSharpen(10,100,true,false,false)
    Quote Quote  
  2. Check to see if removedirt.dll is in the directory specified: H:\Program Files\AviSynth 2.5\Plugins\
    Quote Quote  
  3. Member
    Join Date
    Jul 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    Check to see if removedirt.dll is in the directory specified: H:\Program Files\AviSynth 2.5\Plugins\
    It sure is there. I checked again now and I checked again earlier. It's name RemoveDirt.dll is the name just like that. Yes I have it.
    Quote Quote  
  4. Are you sure it's the H: hard drive? Normal install is the C: hard drive
    Quote Quote  
  5. Member
    Join Date
    Jul 2008
    Location
    United States
    Search Comp PM
    I was reading in the archieve at Doom9 but not sure if it's this issue but I had to import RemoveDirt.avs or change something to avsi but what do I change and how?
    Quote Quote  
  6. Member
    Join Date
    Jul 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    Are you sure it's the H: hard drive? Normal install is the C: hard drive
    Yes I am sure. MS-DOS v6.22 is C and XP Pro is H
    Quote Quote  
  7. Originally Posted by rocky12
    I was reading in the archieve at Doom9 but not sure if it's this issue but I had to import RemoveDirt.avs or change something to avsi but what do I change and how?
    Not sure what you mean, or what you're saying; maybe ask at Doom9
    Quote Quote  
  8. Member
    Join Date
    Jul 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    Originally Posted by rocky12
    I was reading in the archieve at Doom9 but not sure if it's this issue but I had to import RemoveDirt.avs or change something to avsi but what do I change and how?
    Not sure what you mean, or what you're saying; maybe ask at Doom9
    Can't my account is suppended for 30 days.


    http://forum.doom9.org/showthread.php?t=114517 (here is what I am talking about)
    Quote Quote  
  9. Read the RemoveDirt.htm file. The latest RemoveDirt implements RemoveDirt() as an AVS script. You must create it (a sample is given in the htm file) an import it into your script.

    RemoveDirt.AVS:
    Code:
    function RemoveDirt(clip input, bool "_grey", int "repmode") 
    {
        _grey=default(_grey, false)
    	repmode=default(repmode, 16)
    	clmode=17
    	clensed=Clense(input, grey=_grey, cache=4)
    	sbegin = ForwardClense(input, grey=_grey, cache=-1)
    	send = BackwardClense(input, grey=_grey, cache=-1)
    	alt=Repair(SCSelect(input, sbegin, send, clensed, debug=true), input, mode=repmode, modeU = _grey ? -1 : repmode ) 
    	restore=Repair(clensed, input, mode=repmode, modeU = _grey ? -1 : repmode)
    	corrected=RestoreMotionBlocks(clensed, restore, neighbour=input, alternative=alt, gmthreshold=70, dist=1, dmode=2, debug=false, noise=10, noisy=12, grey=_grey)
    	return RemoveGrain(corrected, mode=clmode, modeU = _grey ? -1 : clmode )
    }
    import("Path\to\RemoveDirt.avs")
    Quote Quote  
  10. Member
    Join Date
    Jul 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Read the RemoveDirt.htm file. The latest RemoveDirt implements RemoveDirt() as an AVS script. You must create it (a sample is given in the htm file) an import it into your script.
    How do I create it? What file? Where is the file at?
    Quote Quote  
  11. Create an AVS script called RemoveDirt.AVS with the code from my previous message. Put it in the same folder with all your other AviSynth plugins. Use the import line I gave (modified to use the correct path, the same as your LoadPlugins) in the AVS script that uses the function:

    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\removedirt.dll")
    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\removegrain.dll")
    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\msharpen.dll")
    Import("H:\Program Files\AviSynth 2.5\Plugins\RemoveDirt.avs") # <-------------- note new line
    AVISource("I:\Apollo 13\video.avi")
    RemoveGrain(mode=2)
    RemoveGrain(mode=17)
    RemoveDirt()
    BlackmanResize(720,400)
    MSharpen(10,100,true,false,false)
    Quote Quote  
  12. Member
    Join Date
    Jul 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Create an AVS script called RemoveDirt.AVS with the code from my previous message. Put it in the same folder with all your other AviSynth plugins. Use the import line I gave (modified to use the correct path, the same as your LoadPlugins) in the AVS script that uses the function:

    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\removedirt.dll")
    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\removegrain.dll")
    LoadPlugin("H:\Program Files\AviSynth 2.5\Plugins\msharpen.dll")
    Import("H:\Program Files\AviSynth 2.5\Plugins\RemoveDirt.avs") # <-------------- note new line
    AVISource("I:\Apollo 13\video.avi")
    RemoveGrain(mode=2)
    RemoveGrain(mode=17)
    RemoveDirt()
    BlackmanResize(720,400)
    MSharpen(10,100,true,false,false)

    Thank you so much! It worked!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!