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

Use ffmped for GIF encoding #18

Open
dundalek opened this issue Feb 5, 2019 · 2 comments
Open

Use ffmped for GIF encoding #18

dundalek opened this issue Feb 5, 2019 · 2 comments

Comments

@dundalek
Copy link

dundalek commented Feb 5, 2019

Hi, I have a suggestion for GIF encoding. Currently gifine uses imagemagick's convert to produce GIFs. Convert seems to try to load all raw images into memory. That often makes my system run out of memory and freeze (with 16GB of RAM).

Instead there are options for ffmpeg to produce GIFs with a reasonable quality, speed and memory usage. Here is an example how ffmpeg can be used: https://github.com/lukechilds/gifgen/blob/master/gifgen#L71

Would it be possible to add it as an encoding option?

@leafo
Copy link
Owner

leafo commented Feb 9, 2019

I don't see why we couldn't add something.

what kind of gif are you creating that is causing your computer to run out of memory?

@dundalek
Copy link
Author

dundalek commented Feb 9, 2019

Usually some screencasts, around 1000px wide in 10 FPS, in the order of seconds or tens of seconds long.

What I do now is to export the recording as MP4 and then use the ffmpeg script to encode the GIF with no issues. But it would be nice to have that option as a single click.

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