Skip to content

Convert .mp4, .mkv and .avi videos into gif in command line without a fuss of clicking around in dodgy GUI(s)

License

Notifications You must be signed in to change notification settings

kgmyatthu/vdo2gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert .mp4, .mkv and .avi videos into gif in command line without a fuss of clicking around in dodgy GUI(s)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages