Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
1st April 2014, 14:09 | #1 | Link |
Registered User
Join Date: Mar 2014
Posts: 25
|
Getting Slow FPS with SetMTMode
HI i have avisynth 2.6 MT version of set's and i have installed and place the avisynth.dll into syswow64
but when i run the avs script on Megui i am really getting slow speed but when i run that script on VirtualDub and AVSmeter i get really fast speed please have look at my Screen shot i have tired with and without SetMTMode is same no speed difference on Megui can you tell me why is that happening? Screen shot of VIRTUALDUB: http://prntscr.com/360xun Screen shot of MEGUI: http://prntscr.com/360ybe Screen shot of AVSMeter: http://prntscr.com/361tga Script Code:
SetMTMode(2) LoadPlugin("D:\EDrive\megui\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("D:\EDrive\Downloads\Inga\VTS_03_1.d2v", info=3) AssumeTFF() LoadPlugin("D:\EDrive\megui\tools\avisynth_plugin\ColorMatrix.dll") ColorMatrix(hints=true, threads=0) crop(0, 52, 0, -56) Spline36Resize(640,272) # Spline36 (Neutral) UnDot() Tweak(sat=1.05, bright=-5, cont=1.05) BlindPP(quant=30, cpu=4, moderate_h=15, moderate_v=25) LSFmod(strength=75, smode=4, soothe=true, keep=100, edgemode=0, edgemaskHQ=false) Code:
SetMTMode(2, 9) LoadPlugin("D:\EDrive\megui\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("D:\EDrive\Downloads\Inga\VTS_03_1.d2v", info=3) AssumeTFF() LoadPlugin("D:\EDrive\megui\tools\avisynth_plugin\ColorMatrix.dll") ColorMatrix(hints=true, threads=0) crop(0, 52, 0, -56) Spline36Resize(640,272) # Spline36 (Neutral) UnDot() Tweak(sat=1.05, bright=-5, cont=1.05) BlindPP(quant=30, cpu=4, moderate_h=15, moderate_v=25) LSFmod(strength=75, smode=4, soothe=true, keep=100, edgemode=0, edgemaskHQ=false) Code:
SetmemoryMax(1024) SetMTMode(5, 9) LoadPlugin("D:\EDrive\megui\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("D:\EDrive\Downloads\Inga\VTS_03_1.d2v", info=3) AssumeTFF() SetMTMode(2) LoadPlugin("D:\EDrive\megui\tools\avisynth_plugin\ColorMatrix.dll") ColorMatrix(hints=true, threads=0) crop(0, 52, 0, -56) Spline36Resize(640,272) # Spline36 (Neutral) UnDot() Tweak(sat=1.05, bright=-5, cont=1.05) BlindPP(quant=30, cpu=4, moderate_h=15, moderate_v=25) LSFmod(strength=75, smode=4, soothe=true, keep=100, edgemode=0, edgemaskHQ=false) |
2nd April 2014, 11:54 | #4 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
According to the AVSMeter screen shot, everything looks very good (speed, memory and CPU usage) and your script should not be changed.
Throwing in a "Distributor()" call will just increase the number of threads and makes no sense. Pretty much all encoders call "Distributor" internally. I don't know what your megui screen shot is showing or what the relevance is, maybe you can elaborate a bit on that. |
2nd April 2014, 12:06 | #5 | Link |
Registered User
Join Date: Mar 2014
Posts: 25
|
oh sorry here is the screen shot of the error http://prntscr.com/36bf58 i have tired all the AVISYNTH.dll still same error
but i was getting good speed |
2nd April 2014, 12:13 | #6 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
I was referring to the megui screen shot from your first post. What is megui doing there (playing through file...)? What is the purpose? |
|
2nd April 2014, 12:19 | #7 | Link | |
Registered User
Join Date: Mar 2014
Posts: 25
|
Quote:
Megui version is 2418 should i try with Development Version? |
|
2nd April 2014, 12:41 | #10 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
The megui guys know best what their application does so just post there. |
|
2nd April 2014, 21:46 | #11 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Judging by the response in the Megui thread it sounds like Megui is supposed to add Distributor() automatically like VirtualDub and x264 do (and you do not want it called twice).
Oddly not having Distributor() called would cause exactly this behavior, the application that doesn't call it is limited to single threaded performance while other applications that do call it get full multithreaded. I do know VirtualDub (using Avisynth via VFW) calls Distributor() automatically while AVS2pipemod doesn't. Maybe something has changed in your Megui which causes it to not call Distributor() automatically? |
2nd April 2014, 23:17 | #13 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Yes, but given sutha25's symptoms it really sounds like Megui is using something that doesn't add Distributor().
@sutha25 Does your third example crash with Distributor()? I would use MT mode 5 for the source filter and mode 2 for the bulk of the script. I would expect VirtualDub or AVSmeter to crash too (without Distributor() ) but MT Avisynth is prone to unexpected crashes. Sometimes the oddest changes in filter order, choice, or MT mode stops or starts a script crashing, at least in my experience. edit: are you sure you are using the newest MT Avisynth from SEt? I notice in your screenshot you are using Avisynth version 2.5.8.5. Last edited by Asmodian; 2nd April 2014 at 23:39. |
3rd April 2014, 01:38 | #14 | Link | |
Registered User
Join Date: Mar 2014
Posts: 25
|
Quote:
i'll try my 3rd script on new script and let you know Edit: I tired the 3rd example with new script and it works but slow screen shot here http://prntscr.com/36ihr0 SCRIPT Code:
SetmemoryMax(1024) SetMTMode(5, 9) LoadPlugin("E:\Megui\tools\ffms\ffms2.dll") FFVideoSource("D:\Downloads\Vedi.mkv", threads=1) SetMTMode(2) #deinterlace crop(2, 88, -2, -88) Spline36Resize(720,304) # Spline36 (Neutral) DeGrainMedian(limitY=14, limitUV=16, mode=5, interlaced=false) mergechroma(blur(1.3)) # Little Noise UnDot() Tweak(sat=1.15, bright=0, cont=1.15,hue=-2) dfttest(sigma=5.6,sbsize=8,sosize=6,tbsize=5) LSFMod(strength=75,smode=4, soothe=true, keep=100, edgemode=0, edgemaskHQ=false) Sharpen(0.60, MMX=True) Distributor() Code:
SetmemoryMax(1024) SetMTMode(5, 9) LoadPlugin("D:\EDrive\megui\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("D:\EDrive\Downloads\Inga\VTS_03_1.d2v", info=3) AssumeTFF() SetMTMode(2) LoadPlugin("D:\EDrive\megui\tools\avisynth_plugin\ColorMatrix.dll") ColorMatrix(hints=true, threads=0) crop(0, 52, 0, -56) Spline36Resize(640,272) # Spline36 (Neutral) UnDot() Tweak(sat=1.05, bright=-5, cont=1.05) BlindPP(quant=30, cpu=4, moderate_h=15, moderate_v=25) LSFmod(strength=75, smode=4, soothe=true, keep=100, edgemode=0, edgemaskHQ=false) Last edited by sutha25; 3rd April 2014 at 02:27. |
|
3rd April 2014, 03:49 | #15 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Well as those look to run at similar speeds it probably isn't Distributor() after all.
Maybe play with the number of threads used by SetMTMode() to help stop crashing? Code:
LoadPlugin("D:\EDrive\megui\tools\dgindex\DGDecode.dll") LoadPlugin("D:\EDrive\megui\tools\avisynth_plugin\ColorMatrix.dll") SetmemoryMax(1024) SetMTMode(5, 4) DGDecode_mpeg2source("D:\EDrive\Downloads\Inga\VTS_03_1.d2v", info=3) ColorMatrix(hints=true, threads=0) AssumeTFF() SetMTMode(2, 4) crop(0, 52, 0, -56) Spline36Resize(640,272) # Spline36 (Neutral) UnDot() Tweak(sat=1.05, bright=-5, cont=1.05) BlindPP(quant=30, cpu=4, moderate_h=15, moderate_v=25) LSFmod(strength=75, smode=4, soothe=true, keep=100, edgemode=0, edgemaskHQ=false) Last edited by Asmodian; 3rd April 2014 at 03:52. |
3rd April 2014, 05:05 | #16 | Link | |
Registered User
Join Date: Mar 2014
Posts: 25
|
Quote:
|
|
3rd April 2014, 07:41 | #17 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Maybe don't worry about whatever Megui is using to "play" the script? Try starting an encode and see if it behaves better. It looks like Megui uses x264 directly when encoding to H.264 so don't use Distributor() when encoding.
|
3rd April 2014, 07:50 | #20 | Link |
Registered User
Join Date: Mar 2014
Posts: 25
|
thanks iam getting new error now http://prntscr.com/36keob i have installed Visual 2008 SP1 X86
|
|
|