Skip to content
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

Writing movie one frame at a time #619

Closed
jakirkham opened this issue Jul 20, 2017 · 3 comments
Closed

Writing movie one frame at a time #619

jakirkham opened this issue Jul 20, 2017 · 3 comments

Comments

@jakirkham
Copy link

This has a bit of a Stack Overflow flavor. So if it needs to move, please let me know.

Regularly I have data that is simply too large to fit all of in memory at a time. However I can reasonably load one or perhaps a couple frames in memory at a time. I would like to write this data to say an mp4. Is there a good way to accomplish this with moviepy? I've seen some examples where all of the data must be in memory, but it would be nice to have some pointers on how to solve this when all of the data cannot be in memory at the same time. Thanks.

@jakirkham
Copy link
Author

Hmm...I think I have answered my own question with this. Is there an example in the docs though?

@Zulko
Copy link
Owner

Zulko commented Jul 20, 2017

Actually most examples around are for cases where frames are generated "on the fly" while writing the video, using VideoFileClip(make_frame=some_function_that generates_frames). See for instance:

http://zulko.github.io/blog/2014/11/29/data-animations-with-python-and-moviepy/

@jakirkham
Copy link
Author

Good point. Certainly something like this can be adapted very easily. Thanks.

Feel free to close.

@Zulko Zulko closed this as completed Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants