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 22nd January 2014, 10:28   #1  |  Link
steptoe
Registered User
 
steptoe's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 360
How to speed up this script ?

I'm using avisynth+, which works perfectly with this script but as yet MT support is only in beta stages so isn't guaranteed to work 100%

Is there a way to speed up this script, I've tried the MVTools2 version but that removes parts of the anim DVD I'm cleaning up (DangerMouse UK), where the MVTools version doesn't

# You need: RemoveGrain, MVTools 1.1.1
function RemoveDirt(clip input, int limit, bool _grey)
{
clensed=input.Clense(grey=_grey, cache=8)
alt=input.removegrain(2)
return RestoreMotionBlocks(clensed,input,alternative=alt,pthreshold=2,cthreshold=8, gmthreshold=40,dist=4,dmode=2,debug=false,noise=limit,noisy=12,grey=_grey)
}

function RemoveDirtMC(clip,int limit, bool "_grey")
{
_grey=default(_grey, false)
limit = default(limit,6)
bvec = clip.MVAnalyse(isb=false, blksize=8, delta=1, pel=2, truemotion=true, idx=1)
fvec = clip.MVAnalyse(isb=true, blksize=8, delta=1, pel=2, truemotion=true, idx=1)
backw = clip.MVFlow(bvec)
forw = clip.MVFlow(fvec)
clp=interleave(backw,clip,forw)
clp=clp.RemoveDirt(limit,_grey)
clp=clp.SelectEvery(3,1)
return clp
}


My process is basically :

TomsMoComp (-1,15,1)
RemoveDirtMC(175,false)
UnFilter(10,10)

As I'm using AviSynth+, I've also tried using RGTools(2) instead of RemoveGrain(2) as is suggested its a direct replacement for RemoveGrain, but that fails complaining it can't load RGTools even using the LoadPlugin command

I'm using the latest AviSynth+, Win7 Ultimate 16GB with an I5-2500k running very stable at 4.5ghz. My FPS is about 30, but if I just use TomsMoComp on its own get about 150 plus


Thanks

Last edited by steptoe; 22nd January 2014 at 10:34.
steptoe is offline   Reply With Quote
Reply

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 02:54.


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