Log in

View Full Version : Avisynth multiple instances


Poutnik
20th May 2011, 07:26
Does Avisynth have ( long term ? ) objections against multiple instances ?

E.g.
AVS encoding in MeGUI, while other AVS encoding is being prepared
AVS encoding in MeGUI, while playing video with FFDShow/Avisynth filters
Or combination of above ? :-P

Does SetMemoryMax apply to each instance separately or in total ?

Do things change if FFT3DGPU ( or HW acceleration in general ) is involved ?

Thank you in advance.

IanB
21st May 2011, 00:42
Avisynth instances are independent, however a given script can consume substantial global resources from the system. When the required resources of a number of scripts running at once exceeds what is globally available, individual scripts can fail ungracefully.

Initial SetMemoryMax is based on the global free memory. So a first instance might get a high value and subsequent instances may get a lower value.

How plugins like FFT3DGPU manage multiple instances is the responsibility of the plugin. GPU resource usage can be extreme and multiple instances may or may not be possible.