I recently bought a new desktop computer with 6 cores and don't know how to apply avisynth_MT into my script. I already put the avisynth.dll for MT in the syswow64 folder. Here is my script:
LoadPlugin("C:\Users\Ryan\Downloads\MeGUI_2356_x86 \tools\dgindex\DGDecode.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\TIVTC.dll")
import("C:\Program Files (x86)\AviSynth 2.5\plugins\AAA.avs")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainS.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FluxSmooth.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\aWarpSharp.dll")
DGDecode_mpeg2source("C:\Users\Ryan\Desktop\VTS_01 _1.d2v", cpu=6)
TFM()
TDecimate(Mode=1)
AAA().AssumeFrameBased()
RemoveGrain(mode=1)
FluxSmooth_FluxSmoothST()
aWarpSharp(depth=2, blurlevel=2)
Crop(8, 4, -2, -0)
Spline36Resize(720, 544)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 16 of 16
Thread
-
-
Try:
# Mpeg2Source() requires mode 5
# threads usually need to be about 1.5x the number of cores
SetMtMode(5,10)
LoadPlugin("C:\Users\Ryan\Downloads\MeGUI_2356_x86 \tools\dgindex\DGDecode.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\TIVTC.dll")
import("C:\Program Files (x86)\AviSynth 2.5\plugins\AAA.avs")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainS.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FluxSmooth.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\aWarpSharp.dll")
DGDecode_mpeg2source("C:\Users\Ryan\Desktop\VTS_01 _1.d2v", cpu=6)
SetMtMode(2) # the rest will probably work in mode 2
TFM()
TDecimate(Mode=1)
AAA().AssumeFrameBased()
RemoveGrain(mode=1)
FluxSmooth_FluxSmoothST()
aWarpSharp(depth=2, blurlevel=2)
Crop(8, 4, -2, -0)
Spline36Resize(720, 544) -
I've changed the script a little bit, will this script still work correctly with avisynth_mt?# Set DAR in encoder to 4 : 3. The following lines are for automatic signalling
global MeGUI_darx = 4
global MeGUI_dary = 3
SetMtMode(5,10)
LoadPlugin("C:\Users\Ryan\Downloads\MeGUI_2356_x86 \tools\dgindex\DGDecode.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\TIVTC.dll")
import("C:\Program Files (x86)\AviSynth 2.5\plugins\AAA.avs")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainS.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FluxSmooth.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\aWarpSharp.dll")
DGDecode_mpeg2source("C:\Users\Ryan\Desktop\VTS_01 _1.d2v", CPU=2)
SetMtMode(2)
AssumeTFF()
TFM()
TDecimate(Mode=1)
AAA().AssumeFrameBased()
RemoveGrain(mode=1)
FluxSmooth_FluxSmoothST()
aWarpSharp(depth=2, blurlevel=2)
Crop(8,4,-2,0).AddBorders(6,2,4,2) -
It looks like it should work. Runs fine here with the x264 CLI encoder. I don't know about MeGUI though.
Last edited by jagabo; 28th Sep 2013 at 20:57.
-
just curious to know, what mode does an avc source require? For a blu - ray.
-
When I add in Avisynth mt to my script, I get an error with the FFT3DFilter. However, the error goes away when Avisynth mt is taken out of the script. What mode should i be using for this script.
LoadPlugin("C:\Users\Ryan\Downloads\MeGUI_2418_x86 \tools\dgavcindex\DGAVCDecode.dll")
import("C:\Program Files (x86)\AviSynth 2.5\plugins\AAA.avs")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\Toon-v1.0.dll")
import("C:\Program Files (x86)\AviSynth 2.5\plugins\finesharp.avs")
AVCSource("C:\Users\Ryan\Desktop\00036.dga")
AAA().AssumeFrameBased()
FFT3DFilter(sigma=4.0)
Toon(strength=0.75)
finesharp()Last edited by beav; 8th Jan 2014 at 16:49.
-
I did exchange the Avisynth dll to use AvisynthMT. Why is using finesharp a bad idea? The footage looks great after being blurred by FFT3DFilter and AAA. FFT3DFilter gives me an error when AvisynthMt is added into my script. The AssumeFrameBased was an accident, Didn't mean to add it.
-
Bad idea, because finesharpen is not really ment to be used that way and probably will add ringing and similar artifacts.
About fft3dfilter:
a. What error message?
b. Did you install the support libraries fft3dfilter uses?
c. What does the script look like that gives you the error message? (make sure you didn't add stuff to it that you don't want) -
This is the script I'm trying to use:
SetMTMode(5,12)
LoadPlugin("C:\Users\Ryan\Downloads\MeGUI_2418_x86 \tools\dgavcindex\DGAVCDecode.dll")
import("C:\Program Files (x86)\AviSynth 2.5\plugins\AAA.avs")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\Toon-v1.0.dll")
import("C:\Program Files (x86)\AviSynth 2.5\plugins\finesharp.avs")
AVCSource("C:\Users\Ryan\Desktop\00036.dga")
SetMTMode(2)
AAA()
FFT3DFilter(sigma=4.0)
Toon(strength=0.75)
finesharp() -
a. try lowering the thread count from to 12 in example 4 or 8
b. try exchanging the support libraries (not all versions work for everybody), see: http://forum.doom9.org/showthread.php?p=1568404#post1568404 and the following posts -
Instead of lowering the thread count you can also use a try switching to a higher mode before using fft3dfilter
-
That depends of what the bottleneck of the script is and what mode needs to be used, at least for me, normally all modes < 5 are faster then running a single threaded filter in a single thread.
(+ even if I have one filter, besides the source filter that is running in mode 5 or 6, Avisynth MT normally is faster for me)