Skip to content

Support 60 FPS #173

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

Merged
merged 7 commits into from
Jan 30, 2020
Merged

Support 60 FPS #173

merged 7 commits into from
Jan 30, 2020

Conversation

sindresorhus
Copy link
Owner

@sindresorhus sindresorhus commented Jan 29, 2020

Fixes #161

@kornelski If the user sets 60 FPS, it will just use 50 FPS, right? Or do I need to clamp the actual value passed to gifski-lib at 50 FPS?

The actual result will be 50 FPS, but I doubt the user will notice.

See: #161
@kornelski
Copy link
Collaborator

kornelski commented Jan 29, 2020

gifski doesn't take fps, but delay that is multiple of 10ms (per GIF spec), and it will store the value you give as-is.

But if you specify delay=1 (floor(100/60)), it'll mean 100fps, and browsers will ignore it.

So you must clamp fps to 50 to make sure you get delay=2.

@sindresorhus
Copy link
Owner Author

Done. I've confirmed that the delay is 2.

@kornelski kornelski mentioned this pull request Jan 30, 2020
@sindresorhus sindresorhus changed the title Allow setting 60 FPS Support 60 FPS Jan 30, 2020
@sindresorhus sindresorhus merged commit ad583a3 into master Jan 30, 2020
@sindresorhus sindresorhus deleted the 60fps branch January 30, 2020 06:07
@KartikChugh
Copy link

My slider only goes up to 30 fps for some reason

@sindresorhus
Copy link
Owner Author

Is the video 60 FPS?

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.

Allow 60 FPS?
3 participants