This is a small code snippet that can be used to convert any video to a gif. The output will not only be Faster as compared to online converters but will also be in HQ.
Following modules need to be installed for it to work properly:
- Moviepy
MoviePy is a Python module for video editing, which can be used for basic operations (like cuts, concatenations, title insertions), video compositing (a.k.a. non-linear editing), video processing, or to create advanced effects. It can read and write the most common video formats, including GIF.
It can be installed using "pip install moviepy"