Skip to content

Write video in streaming mode#13

Open
tfaehse wants to merge 1 commit intofacebookresearch:mainfrom
tfaehse:main
Open

Write video in streaming mode#13
tfaehse wants to merge 1 commit intofacebookresearch:mainfrom
tfaehse:main

Conversation

@tfaehse
Copy link

@tfaehse tfaehse commented Mar 7, 2025

This PR addresses #8.

The original code caches all processed images in-memory in full resolution which explodes system memory fairly quickly.
I've tried to keep the changes minimal and switched to moviepy 1.x's streaming API that writes each frame as it is processed.

- avoid caching _all_ processed images in memory
- keep requirements the same, using moviepy 1.x API
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 7, 2025
@tfaehse tfaehse mentioned this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants