-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MemoryError #259
Comments
Running the above code without using TextClip and CompositeVideoClip (appending 'clip' straight to video list) gives me absolutely no memory errors. --> see EDIT Ran again this time only without TextClip and saw no memory errors. Error seems to be in the way I am using TextFileClip? EDIT: I was wrong. If my video sizes are different, using CompositeVideoClip.. size = (x, y) keeps the video's original size and uses black for the rest of the pixels (which is good visually). Is this the problem? |
Updating to say switching to Python 64bit seems to be a fix for this case. |
With python2, and this program: The computer runs out of ram after adding the first 10 files (combination of videos and images). My pc has 8gb of ram, and about half is available for moviepy. I tried the same program and files with moviepy and python3, which uses about 2gb but succeeds. |
I am seeing a memory error when using (I assume from past questions) VideoFileClip. Like other people, my first workaround was to split the job up into multiple files, however that still did not stop the memory error.
Have tried del var and delete var.reader with no success.
Here is the code with no del
[Problem somewhere in here]
loop:
end loop
[This part is working fine]
The video files themselves are between 600MB and 1GB.
The purpose of this is to run a file containing ngrams and their occurrences in movies provided by an SRT file to create a video with the audio.
Python 2.7
Latest version of moviepy
Windows 7 64
The text was updated successfully, but these errors were encountered: