PDA

View Full Version : Avisynth eats up memory


Alvy
18th September 2004, 13:20
Hello,
I had this strange behavior before. But after reinstalling Win2kg it was gone for a long time. Now it's back and I can't get rid of it anymore.
At the moment I can't encode films in background because when Windows clears up some memory (when it's gone to zero) this leads to jerks in other applications.
I use avisynth in combinbation with VirtualDub (tried different versions). Encoding without avisynth (2.5.x) works fine (have not tried avysynth 2.0).

Problem does not depend on usage of ram optimizers (tried with an without an new installation).

Well, I have absolutely no idea why this happens...

All other programs work well...


Has anybody an idea?



Some System Infos:
Win2K, SP4
System: Ahlon 2400+ on Elitegroup K7S5A

Tasks in Memory:
Kerio
MBM 5
Speedfan
Girder
Matrox QuickDesk



Script example:
LoadPlugin("E:\avs\filter\DGDecode.dll") // same problem with other decoders
LoadPlugin("E:\avs\filter\undot.dll")
LoadPlugin("E:\avs\filter\FluxSmooth.dll")


mpeg2source("f:\drunt.d2v",idct=2)

Undot()

fluxSmoothST(9,13)

scharfis_brain
18th September 2004, 13:22
put the command

setmemorymax(x)

on the top of your script.

set x to the amount of megabytes, you want to allow AVS is using.

Alvy
18th September 2004, 13:31
Thanks for your fast reply!

But it does not work :( (Took amount 112 and had after a minute >300 MB (of 768) lost)

I just found out, that the memory leaks too when I go along the timeline in VD (used this method to try setmemorymax, while encoding memory leaks slower)

Alvy
18th September 2004, 13:42
Forgot to tell.
The memory is taken by windows systemcache an not virtualdub.exe or another process.

hartford
18th September 2004, 17:26
Check your registry for

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

The value for "LargeSystemCache" should be set to 0 .


"System Cache" is a misnomer; it actually is the disk cache.

Are you running W2k Server, or did you apply some registry "tweaks?"

hartford
19th September 2004, 06:04
Hello?

Alvy
19th September 2004, 14:51
Hello :) (I was not around)

Except DisablePagingExecutive all values are set to zero (tried without disabling too).


Alvy

Alvy
20th September 2004, 08:42
It seems this problem was related to the video source??

A new film (encoding with the same procedure) behaves normal.
5 hours computer-annoyance for nothing...

Anyway thanks for your help!

Alvy