View Full Version : Out Of Memory Access Violation
jinkazuya
6th November 2017, 05:48
Same as last time. Below is the screen shot
http://i66.tinypic.com/r1n5fd.png
Below is the script I used and pretty simple script
SetFilterMTMode("DEFAULT_MT_MODE", 2)
..................................................
prefetch(10)
The script only works when I eliminate either the SetFilterMTMode for multithreading or the QTGMC deinterlacer. Just wonder why and what is happening?
pinterf
6th November 2017, 14:32
Same as last time. Below is the screen shot
Below is the script I used and pretty simple script
...
prefetch(10)
The script only works when I eliminate either the SetFilterMTMode for multithreading or the QTGMC deinterlacer. Just wonder why and what is happening?
Prefetch(10) needs a lot of RAM. Default memory max is around 1 GBytes (for 32 bit avisynth+) which is not enough. You can increase the memory limit, e.g. SetMemoryMax(3000), or try to set a much smaller prefetch count. Or consider switching to the 64-bit version if required plugins are all available.
In Avisynth+ the memory requirement of caching mechanism is somewhat more linear to the prefetch count.
jinkazuya
6th November 2017, 17:10
Prefetch(10) needs a lot of RAM. Default memory max is around 1 GBytes (for 32 bit avisynth+) which is not enough. You can increase the memory limit, e.g. SetMemoryMax(3000), or try to set a much smaller prefetch count. Or consider switching to the 64-bit version if required plugins are all available.
In Avisynth+ the memory requirement of caching mechanism is somewhat more linear to the prefetch count.
Thanks for your help and reply. But with the script I posted, there is no problem encoding DVD and the error only occurs when I encode TV 1080i streams or other streams with bigger resolution.
Note: Even if I tried to lower the prefetch count to the smallest number, it still generated the darn "cannot allocate memory error".
pinterf
6th November 2017, 17:32
You can try running your script with avsmeter that will report the memory usage. Set prefetch 2-3-... you'll see your bottleneck. When the memory consumption reaches 1GB, increase SetMemoryMax and go on with testing.
(and note that 1920x1080 has five as much data than 720x576, memory is needed primarily for the caching system)
jinkazuya
7th November 2017, 06:59
You can try running your script with avsmeter that will report the memory usage. Set prefetch 2-3-... you'll see your bottleneck. When the memory consumption reaches 1GB, increase SetMemoryMax and go on with testing.
(and note that 1920x1080 has five as much data than 720x576, memory is needed primarily for the caching system)
I tried to increase the memory to 3000 and lower the thread count to 2. But the error still occurs. Just wonder what is happening?
Below is the test result
http://i64.tinypic.com/t9zmdy.png
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.