Log in

View Full Version : Need help with LSharpAAF


IppE
29th December 2010, 21:12
I'm trying to use LSharpAAF 1.2 (http://forum.doom9.org/showthread.php?t=153835) to deinterlace a 1080p clip and then resize it to 720p.

Everything goes fine except when trying to use the LSharpAAF it gives me this error:

http://puu.sh/CO7

This is the avs script if it helps at all:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SangNom.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RepairSSE3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\nnedi2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\nnedi.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mvtools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools-26.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\EEDI2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\aWarpSharp2.dll")
LoadPlugin("F:\Working_x264\avs_plugin\avss.dll")
LoadPlugin("F:\Working_x264\avs_plugin\nnedi3.dll")
DSS2("M:\Touhou Meikai Kenshi Yoyomu 4.mp4")
ConvertToYV12()
LSharpAAF(StrDrk=18, ShPre=100, ShPost=280, SmPost=80, aatype="nnedi3")
BlackmanResize(1280,720)

So I'd like it someone could either help me in getting this particular thing working or introduce me to another high quality Anti Aliasing script (that actually works).

Thank you.

Gavino
29th December 2010, 21:39
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mvtools.dll")
You need to (install and) use mvtools2.dll

Also, you don't need LoadPlugin for things in "C:\Program Files\AviSynth 2.5\plugins" - they are automatically loaded by Avisynth.

IppE
29th December 2010, 21:44
I wonder why it wasn't in the LSharpAAF_v1.2+Requirements.rar then.

Now it gives a different error though, this one in particular:

http://puu.sh/CPn

Could someone check if anything else essential is missing from that "LSharpAAF_v1.2+Requirements.rar", I'm obviously not that good with these things.

Gavino
29th December 2010, 22:43
I've never used LSharpAAF, but from a quick look at the source, it appears you need three different versions of mvtools.
(Was it really necessary to do it this way?)

mvtools
mvtools2
josie_wells' multi-threaded version (search the forums if you don't have this)

Didée
29th December 2010, 22:44
Ah ... on a closer look, the MVTools part of that script is chaotic.

Lines 72 to 80:
mbv1 = a.MVAnalyse(isb=true, delta=1,idx=_idx)
mbv2 = a.MVAnalyse(isb=true, delta=2,idx=_idx)
mfv2 = a.MVAnalyse(isb=false,delta=2,idx=_idx)
mfv1 = a.MVAnalyse(isb=false,delta=1,idx=_idx)
allv = a.MVAnalyseMulti(refframes=tradius,idx=_idx)

sDD = (MT) ? sD.MVDegrainMulti(allv,idx=14) : sD.MVDegrain2(mbv1,mfv1,mbv2,mfv2,idx=14)
sDD2 = tradius==1 ? sDD.MDegrain1(sDsuper,bv1,fv1,thSAD=_thSAD) : tradius==2 ? sDD.MDegrain2(sDsuper,bv1,fv1,bv2,fv2,thSAD=_thSAD)
\ : sDD.MDegrain3(sDsuper,bv1,fv1,bv2,fv2,bv3,fv3,thSAD=_thSAD)

Red: The script requires MVToolsMulti.dll to be loaded even if the DLL isn't going to be used.

Shades of blue: The script either uses MVToolsMulti AND MVTools-v2, or MVTools-v1 AND MVTools-v2.


Better don't get into arguing what of the script makes sense, and what not.

Quick way to get running: Kicking out MVToolsMulti when it's not used:

mbv1 = a.MVAnalyse(isb=true, delta=1,idx=_idx)
mbv2 = a.MVAnalyse(isb=true, delta=2,idx=_idx)
mfv2 = a.MVAnalyse(isb=false,delta=2,idx=_idx)
mfv1 = a.MVAnalyse(isb=false,delta=1,idx=_idx)
allv = (MT==false) ? a : a.MVAnalyseMulti(refframes=tradius,idx=_idx)

sDD = (MT) ? sD.MVDegrainMulti(allv,idx=14) : sD.MVDegrain2(mbv1,mfv1,mbv2,mfv2,idx=14)
sDD2 = tradius==1 ? sDD.MDegrain1(sDsuper,bv1,fv1,thSAD=_thSAD) : tradius==2 ? sDD.MDegrain2(sDsuper,bv1,fv1,bv2,fv2,thSAD=_thSAD)
\ : sDD.MDegrain3(sDsuper,bv1,fv1,bv2,fv2,bv3,fv3,thSAD=_thSAD)
Load MVTools-v1 and MVTools-v2 in the main script, and don't use "MT=true" with this function.

IppE
29th December 2010, 23:24
Thanks, its working now.