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. |
|
|
Thread Tools | Search this Thread | Display Modes |
6th October 2013, 11:48 | #1 | Link |
Registered User
Join Date: Aug 2012
Posts: 11
|
Loading many BMP and release memory as they are loaded.
I am writing a wrap to generate scripts.
It is used to load a series of BMP and display them sequentially. Since I don't control how the images are named, I can't use ImageSequence. Therefore I load each image and concatenate them at the very end. Code:
a0 = ImageSource("v01.bmp", 0, 0, fps=1) a1 = ImageSource("v01a.bmp", 0, 0, fps=1) a2 = ImageSource("v01b.bmp", 0, 0, fps=1) a3 = ImageSource("v01c.bmp", 0, 0, fps=1) ... a311 = ImageSource("v215b.bmp", 0, 0, fps=1) a0 + a1 +a2 + a3 + .... + a311 I am guessing this is due to the default maximum memory usage. I can set it to the absolutely the maximum. However I think it may still not be enough. Is there a way to free memories? Since once the images are loaded they won't be used again. Or is there a correct way to write my script? Thanks. |
Tags |
avisynth, avisynth script |
Thread Tools | Search this Thread |
Display Modes | |
|
|