-
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
Closing VideoFileClip #57
Comments
Hey, It depends. If you are using the function If you just want to get rid of a few VideoFileClips at the end of each loop, here is how you proceed to close the files and avoid memory leaks:
In the next versions of MoviePy just |
Yes, that works for me. Appreciating your help. Thanks. |
Cool. |
Just wondering if this this update been implemented yet? |
I think so, why, have you met a similar problem with the recent versions of MoviePy ? |
Thanks for the response. No I haven't. I was just wondering if I needed to On Thu, Nov 13, 2014 at 12:41 AM, Zulko notifications@github.com wrote:
Reid Oda |
Hi - I'm getting the same error as the original poster: I'm aiming to concatenate 360+ clips together. Currently, it's breaking down at 66 clips. What would you recommend as a good workaround? (My first instinct is to bunch them into arrays of 50-ish clips, concatenate, |
Yeah, that's the main limitation of MoviePy for now, that's fixable but it's not trivial and may take time, sorry. For now you will need to go with your trick consisting in making intermediary clips and then concatenating these intermediary clips. When you make your intermediary clips, make sure to use a large bitrate="20000k" and audio_bitrate="2000k" to avoid quality loss. |
Cool, I'll do that. And no problem - MoviePy is such a fun library! Thanks for your work on it. |
Hi Zulko - I just tried implementing the iteration hack, but it's still throwing an error on too many open files. Here's my code:
Not sure how to kill those subprocesses beyond using |
Same problem as @angelaambroz , were you able to solve it? |
Now I understood You should never give too many videos files(.mp4) to moviepy at once. But you can give it a Then split it to thousands of Actually, in this time, they are not real At this moment, your memory only stored one video, the In this way, you feed the clip list to concatenate function, it won't cause memory overflow anymore Here is the demo codes:
|
Hi,
I'm using moviepy in an artwork, making concatenated videos selected from a list of 10k video files. I'm running this process in an infinite loop (making a video and displaying it), but I can't find a way to close the video files I used, and after a while it halts on the "python - IOError: [Errno 24] Too many open files" error. It is on the constructor of VideoFileClip.
Is there a way to release the files, cause I can't find any in the object methods?
Many thanks.
The text was updated successfully, but these errors were encountered: