AVIsynth read error: CAVIStreamSynth: unknown system exception - 0xc000001e ahO7 0
!!!
Have tried systematically going through the script, and the error occurs when I get down to the MT-Logic parts. Have commented them out and I still get the message however... Here's my script:
Mpeg2Source("C:\Documents and Settings\John\Desktop\SW Test\VIDEO_TS\sw test.d2v",cpu2="ooooxo")
#cut off some black bars and make image size MOD 16
orig=Crop(0,96,0,-96,align=true) #NTSC now 720x288
#orig=Crop(0,120,0,-120,align=true) #PAL now 720x336
#global motion stage
temp=orig.TemporalSoften(7,255,255,25,2)
rep=Repair(temp,orig,mode=16).TemporalSoften(1,255,255,25,2)
source=Interleave(rep,orig,rep)
mdata=DePanEstimate(source, range=1, trust=0, dxmax=1, dymax=0)
DePan(source, data=mdata, offset=1)
SelectEvery(3,2)
#anti-aliasing
NNEDI(dh=true,field=1).TurnRight().NNEDI(dh=true,field=1).TurnLeft()
#resize to 16x9 proportion (still MOD 16)
Spline36Resize(720,384) #NTSC
#Spline36Resize(720,448) #PAL
#some filtering, sharpening and smoothing to avoid oversharpening
FFT3DFilter(sigma=1.5,sharpen=.6)
BlindPP(cpu2="ooooxo")
#get motion vectors and apply them
source=last
backward_vec1= source.MVAnalyse(isb=true, delta=1,pel=2,overlap=4,sharp=1,idx=1)
forward_vec1 = source.MVAnalyse(isb=false,delta=1,pel=2,overlap=4,sharp=1,idx=1)
bw1=source.MVCompensate(backward_vec1,idx=2)
fw1=source.MVCompensate(forward_vec1, idx=2)
#local motion stabilization/degrain stage
inter=Interleave(bw1,bw1,source,fw1,fw1)
intersmooth=inter.Clense().TemporalSoften(1,255,255,10,2)
RestoreMotionBlocks(intersmooth,inter,neighbour=inter,alternative=inter,gmthreshold=100,dist=1,
\ dmode=3,debug=false,noise=10,noisy=15,grey=false,show=false)
SelectEvery(5,2)
#temporal min/max sharpening stage
pmax=source.MT_Logic(bw1,"max").MT_Logic(fw1,"max")
pmin=source.MT_Logic(bw1,"min").MT_Logic(fw1,"min")
Sharpen(.6)
MT_Clamp(pmax,pmin,1,1,U=2,V=2)
#moving star protection (better version will be tested soon)
restored=last
a=source.Levels(0,1.5,150,0,255)
b=restored.Levels(0,1.5,150,0,255)
ConditionalFilter(restored,source,restored,"(LumaDifference(b,a)/AverageLuma(a))","greaterthan",".01")
#set black level, remove sides, add borders, hue and saturation
Levels(10,1.13,255,0,255) #8 is bare minimum to fix "Tie matte scene"
Crop(8,8,-4,-8,align=true)
#Crop(8,10,-4,-10,align=true) #PAL
AddBorders(6,56,6,56) #NTSC now 720x480
#AddBorders(6,74,6,74) #PAL now 720x576
Tweak(sat=1.08,hue=-4)
Can anyone see any obvious errors? Have been trawling the net for any helpful information but no luck so far.
Which version of masktools should I be using? Perhaps the answer lies here?
Thanks,
- John
P.S. I've edited out the subs in my script, as the clip I am running the test on doesn't need them.