Log in

View Full Version : A weird bug/problem with avs 2.5


slakouze
10th May 2003, 13:53
Hi,
im trying to use a filter that dont want to work.

i have the last avisynth 2.5 build and last vdubmod version to.

When im opnening the script (whatever the source is), it tells me ERROR : unrecognized exception at line 27!

Here is the code.

FD=0
FF=180266
threshold_hm=15
threshold_sm=5

DimX=512
DimY=240

input=Mpeg2Source("D:\MAISON_OCEAN\maison.d2v",cpu=4, idct=2)
input=crop(input,10,46,702,482)
input=Deen(input,"c3d")
input=undot(input)
input=FluxSmooth(input,5,3)
limiter(input)

### Edition de la source ###
clip1=input.trim(FD+1,FF-3)
clip2=input.trim(FD+2,FF-2)
clip3=input.trim(FD+3,FF-1)

### Filtres Fort, Normale et Faible ###
video1=clip2.BicublinResize(DimX,DimY,0.33,0.33).Convolution3D(0,8,8,8,8,3,0).unfilter(-12,-12).limiter()
video2=clip2.BicublinResize(DimX,DimY,0,0.5).Convolution3D(0,3,4,3,4,3,0).unfilter(-6,-6).limiter()
video3=clip2.BicublinResize(DimX,DimY,0,0.75).Convolution3D(0,3,4,3,4,3,0).unfilter(-3,-3).limiter()

### Algo ... de detection de scènes ###
output1 = input.trim( FD, FD+1).BicubicResize( DimX, DimY, 0, 0.5) + Conditionalfilter( clip1, video1, video2, "( lumadifference( clip3)+ChromaUDifference( clip3)+ChromaVDifference( clip3))", ">", "threshold_hm", False) + input.trim( FF-1, FF).BicubicResize( DimX, DimY, 0, 0.5)
output2 = input.trim( FD, FD+1).BicubicResize( DimX, DimY, 0, 0.5) + Conditionalfilter( clip1, video2, video3, "( lumadifference( clip3)+ChromaUDifference( clip3)+ChromaVDifference( clip3))", ">", "threshold_sm", False) + input.trim( FF-1, FF).BicubicResize( DimX, DimY, 0, 0.5)
output3 = input.trim( FD, FD+1).BicubicResize( DimX, DimY, 0, 0.5) + Conditionalfilter( clip1, output1, output2, "( lumadifference( clip3)+ChromaUDifference( clip3)+ChromaVDifference( clip3))", ">", "((threshold_hm + threshold_sm)/2)", False) + input.trim( FF-1, FF).BicubicResize( DimX, DimY, 0, 0.5)
return output3


Any amateur of "Where is waldo?" ^^

sh0dan
10th May 2003, 15:24
I removed the "Deen" and replaced bicublin with bicubic, and it works perfectly here.

Just released new binary today - this might help if you still experience problems.

slakouze
11th May 2003, 20:05
Thanks, it works fine.
What should be the reason of that "bug"(if its is on)

slakouze
11th May 2003, 20:10
I think i know...

Bicublin is allright if i remove deen.

Maybe its because Convolution 3D is used in that command :
video1=clip2.BicublinResize(DimX,DimY,0.33,0.33).Convolution3D(0,8,8,8,8,3,0).unfilter(-12,-12).limiter()

It could be a compatibiity error with the Deen in c3d mode and convolution3D that does quite the ame thing


But maybe im faaaaar fom the answer ^^

sh0dan
11th May 2003, 20:33
It's probably just a bug in deen.