lulalala
6th October 2013, 11:48
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.
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.
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.
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.