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

Possible to change frame durations individually? #51

Open
MoritzStefaner opened this issue Aug 6, 2021 · 2 comments
Open

Possible to change frame durations individually? #51

MoritzStefaner opened this issue Aug 6, 2021 · 2 comments

Comments

@MoritzStefaner
Copy link

Hi, great library, thanks!

I was wondering if it's possible to change frame durations on a per-frame-basis?

@skeddles
Copy link

skeddles commented Sep 6, 2021

yes you can just run encoder.setDelay before the encoder.addFrame and it will change the framerate. The frame rate will stay like that unless you change it back before the next frame.

@MoritzStefaner
Copy link
Author

MoritzStefaner commented Sep 7, 2021 via email

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