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 6th October 2013, 11:48   #1  |  Link
lulalala
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
However when I feed this script into x264, the conversion process always stops at frame 65, even if I order the images in any order.

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.
lulalala is offline   Reply With Quote
Old 6th October 2013, 12:03   #2  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
See this thread, especially post #9 from IanB.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 6th October 2013, 12:36   #3  |  Link
lulalala
Registered User
 
Join Date: Aug 2012
Posts: 11
Thanks, it works well.
lulalala is offline   Reply With Quote
Reply

Tags
avisynth, avisynth script

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 22:15.


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