Log in

View Full Version : Avisynth 64Bit MT + fft3dfilter


Slabrdix
11th May 2011, 22:06
Hi, I'm experimenting with fft3dfilter and MT on a 4 Code Athlon
unfortunately ncpu=X does not do nothing to gain speed
I used MT to gain a bit, but wanted to be sure that the quality of the filtering stays the same.

So i used the following script to check if the filtering stays the same with MT

LoadPlugin(".\FFT3DFilter.dll")
org=DirectShowSource("org.mp4")

last = org
of = FFT3DFilter(bt=3,sigma=1.5,plane=4)
last = org
af = MT("FFT3DFilter(bt=3,sigma=1.5,plane=4)",1)
last = org
bf = MT("FFT3DFilter(bt=3,sigma=1.5,plane=4)",2)
last = org
df = MT("FFT3DFilter(bt=3,sigma=1.5,plane=4)",4)

s1=subtract(of,af).AddBorders(2,2,2,2).Subtitle("org - 1T")
s2=subtract(of,bf).AddBorders(2,2,2,2).Subtitle("org - 2T")
s3=subtract(of,df).AddBorders(2,2,2,2).Subtitle("org - 4T")
s4=subtract(bf,df).AddBorders(2,2,2,2).Subtitle("2t - 4T")

s12=Stackvertical(s1,s2)
s34=Stackvertical(s3,s4)

result = Stackhorizontal(s12,S34)
return Levels(result,124,1.0,131,0,255)

Im filtering the same source frame

with std FTT3DFILTER
with one MT Thread
with two MT Threads
with four MT Threads

then i substract the threaded from the std and the 2Thread from the 4Thread. Borders ... subtitles to identify them, then stacking them together. At last I boost the levels to make differences more obvious

I expected the 4 stacked results to be nearly even ( i expected small glitches at the "threaded" boarders (lines)). But the result is totally different. And I cant explain them.
Normal and MT-1Thread are identical (as expected) but the others ... are strangely different

Here is the screenshot

http://s1.directupload.net/images/110511/temp/vhmcl6ke.jpg (http://s1.directupload.net/file/d/2521/vhmcl6ke_jpg.htm)

Does anybody know what's wrong, or is FFT3DFilter simply not able to be used with MT

Blue_MiSfit
12th May 2011, 07:03
What about SetMTMode?

Derek