Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.51 KB

README.md

File metadata and controls

46 lines (38 loc) · 1.51 KB

python version pip moviepy

What is this

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.

Features

  • custom fps, speed, size.

Installation

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

Usage

Converting the whole video file

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.

image1

Converting only a specific part of the video file

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

image1

Picking Underlying program ( imageio / ffmpeg )

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