vdo2gif is a command line tool for converting video file into gif. I find myself opening video editing software just to do simple gif which i'd use to show examples in readme.md of my github repos. This tool is compitable with any python3 compitable system. Tested on windows 10 and linux-debian x86 machines.
- custom fps, speed, size.
Install python3
root@kali:~# sudo apt-get install python3
Install dependencies
root@kali:~# sudo python3 -m pip -r requirement.txt
Install pip if you see something like pip module not found.
root@kali:~# sudo apt-get install python3-pip
To convert the whole video file to gif
usage: python3 vdo2gif.py /path/to/input.mp4 /path/to/output.gif
This example convert the whole video file to gif.
usage: python3 vdo2gif.py /path/to/input.mp4 /path/to/output.gif -t hr:min:sec hr:min:sec
This example convert only the part between 5sec and 9sec of the video file
Some system work better with on another , you can change the engine by doing -
usage: python3 vdo2gif.py /path/to/input.mp4 /path/to/output.gif -e ffmpeg