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
Animated gif writer via ffmpeg #220
Comments
Also see #115 |
The pyAV plugin I am writing supports filters, so this should - in theory - be possible. In practice, it depends on me figuring out how to send an EOF signal to Edit: Note that this only affects the global palette. Generating single palettes (using palettegen with |
I submitted a PR to pyAV a few days back that allows sending EOF to a filter, so we will be able to use |
pyAV released v9 recently which includes my changes to send EOF to filters (among other goodies). I've updated our pyAV plugin, and now we can indeed create GIF using ffmpeg (that use an optimized global palette): (at the moment it's grayscale only until I work out how to handle frames with palette in pyav) |
As mentioned in #219, ffmpeg can also export animated gif (ffmpeg 2.6+). Would be a nice addition. http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
Advantages are speed and maybe quality, we'd have to do some testing to see how the paletting related to PIL's paletting. Disadvantage is that it needs the ffmpeg exe, which is not available by default (though easy enough to install using one function call).
The text was updated successfully, but these errors were encountered: