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

Deferred webp encoding for faster frame add #35

Merged
merged 2 commits into from
Dec 12, 2015

Conversation

positlabs
Copy link
Contributor

Storing image data is much faster than encoding to webp. This PR stores the image data, and waits to encode webp in the compile method.

Here are some test videos from #34

Immediate encoding: https://youtu.be/QK9AOAvGMsw

Delayed encoding: https://youtu.be/99Kob5Xv0Yk

@positlabs
Copy link
Contributor Author

Don't merge this PR yet. I am going to try modifying it so it doesn't totally block the main thread during compilation.

@positlabs
Copy link
Contributor Author

This works great, but note that there is a breaking change included. The signature of WhammyVideo.compile has changed to compile(outputAsArray, callback) because it's now an async method.

antimatter15 added a commit that referenced this pull request Dec 12, 2015
Deferred webp encoding for faster frame add
@antimatter15 antimatter15 merged commit 7570be3 into antimatter15:master Dec 12, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants