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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th August 2017, 22:30   #1  |  Link
bcn_246
Registered User
 
bcn_246's Avatar
 
Join Date: Nov 2005
Location: UK
Posts: 146
Maximum number of plugins?

Ran into some issues with TTempSmooth... initially I thought that it was the filter, however AVSMeter is showing problems with a range of plugins (alphabetically from T to V). Renaming TTempSmooth.dll to aTTempSmooth.dll got it working again.

I have about 250 dlls in my C:\Program Files (x86)\AviSynth+\plugins directory, along with about another 150 avsi scripts. Is there some sort of limit on how many plugins can be used?

bcn_246 is offline   Reply With Quote
Old 12th August 2017, 22:45   #2  |  Link
mariush
Registered User
 
Join Date: Dec 2008
Posts: 557
Yeah, there's limitations of the operating system and runtimes used

see https://blogs.technet.microsoft.com/...s-and-threads/ and https://stackoverflow.com/questions/...ly-linked-crts
mariush is offline   Reply With Quote
Old 12th August 2017, 22:49   #3  |  Link
bcn_246
Registered User
 
bcn_246's Avatar
 
Join Date: Nov 2005
Location: UK
Posts: 146
Thanks, will have to go through and delete some... bit of a pain as most are the dependencies of my avsi scripts
bcn_246 is offline   Reply With Quote
Old 12th August 2017, 22:56   #4  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 430
What happens is that most load all the plugins by default; What I do in my case is to do what Gordian Knot does, use LoadPlugin from a different folder, so I do not have to worry about how many plugins I have in one place. In Avisynth normal/MT if memory fails me can load up to 50 plugins.

By default I only load the source plugins and some script.
__________________
By law and justice!

Flea Market

Last edited by GMJCZP; 12th August 2017 at 22:59.
GMJCZP is offline   Reply With Quote
Old 13th August 2017, 08:07   #5  |  Link
Groucho2004
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: Barcelona
Posts: 3,443
Quote:
Originally Posted by bcn_246 View Post
Thanks, will have to go through and delete some... bit of a pain as most are the dependencies of my avsi scripts
Since you're using Avisynth+ you might consider splitting your plugins/avsi's into logical groups (directories) and make use of the "AddAutoloadDir" functionality.
Groucho2004 is offline   Reply With Quote
Old 13th August 2017, 09:25   #6  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 772
Quote:
Originally Posted by GMJCZP View Post
What happens is that most load all the plugins by default
yes, since avs+ don't unload the loaded plugins after autoload

Quote:
Originally Posted by GMJCZP View Post
In Avisynth normal/MT if memory fails me can load up to 50 plugins.
the non plus avs set limit for loaded plugins, yes, but you can have like 1,000 dll in autoload plugins folder and you will not get any problem unless your encode script use more than 50 plugins then you will get error message for the 50 limit

anyway, avs+ behavior now is bad, it must unload plugins like normal avs, see here https://forum.doom9.org/showthread.p...91#post1641891
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 13th August 2017, 15:53   #7  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 3,445
Quote:
Originally Posted by real.finder View Post
the non plus avs set limit for loaded plugins, yes, but you can have like 1,000 dll in autoload plugins folder and you will not get any problem unless your encode script use more than 50 plugins then you will get error message for the 50 limit
Ahhhh.... that explains why I can have around 80 dlls in the auto-loading plugins folder without an issue (Avisynth 2.60) even though AVSMeter's -avsinfo gets upset when it hits the 50 plugin limit.

Maybe in a perfect world AVSMeter would load and unload each plugin one at a time?
hello_hello is offline   Reply With Quote
Old 13th August 2017, 16:41   #8  |  Link
Groucho2004
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: Barcelona
Posts: 3,443
Quote:
Originally Posted by hello_hello View Post
Maybe in a perfect world AVSMeter would load and unload each plugin one at a time?
That is easily done but the plugin testing will take a lot longer since I would have to create/destroy the IScriptEnvironment for each plugin. No big deal for 10 plugins in the auto-load directory but it could take a minute or so with 250 plugins and a slow CPU.

Edit: I could of course create/destroy the IScriptEnvironment in larger intervals, I'll look into it.

Last edited by Groucho2004; 13th August 2017 at 16:52.
Groucho2004 is offline   Reply With Quote
Old 13th August 2017, 16:59   #9  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 772
Quote:
Originally Posted by Groucho2004 View Post
That is easily done but the plugin testing will take a lot longer since I would have to create/destroy the IScriptEnvironment for each plugin. No big deal for 10 plugins in the auto-load directory but it could take a minute or so with 250 plugins and a slow CPU.

Edit: I could of course create/destroy the IScriptEnvironment in larger intervals, I'll look into it.
what about make it every 50 plugins rather than every 1

and aren't you fix this before?
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 15th August 2017, 09:57   #10  |  Link
Groucho2004
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: Barcelona
Posts: 3,443
Quote:
Originally Posted by real.finder View Post
and aren't you fix this before?
No, that was a different issue.
Groucho2004 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.