Skip to content

vishnuMohanan01/convert-to-gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert-to-gif

Convert-to-GIF is a powerful command-line tool powered by FFmpeg to seamlessly transform video files into high-quality GIF animations with precise control over duration, output size, and scaling algorithm. Simplify the process of creating captivating visual content for your projects.

Installation

To install the application, please ensure that you have ffmpeg installed on your system. If ffmpeg is not already installed, you can follow the instructions specific to your operating system to install it.

Once ffmpeg is installed, you can proceed with the following steps:

  1. Clone the repository by running the command:
 git clone https://github.com/vishnuMohanan01/convert-to-gif.git
  1. Change your current directory to the cloned repository by running:
cd convert-to-gif
  1. Set the right file permissions for the setup script and run the script.
chmod +x setup.sh

# Run the script
./setup.sh

Usage

convert-to-gif -i ~/Desktop/input.mov -o output.gif

# Use -h flag to show help message
convert-to-gif -h

# Using Optional flags:

# Use -t flag for set the duration of output gif in seconds, default value is 20s
convert-to-gif -i ~/Desktop/input.mov -o output.gif -t 4

# Use -w flag to set the width of output gif, default value is 1280
convert-to-gif -i ~/Desktop/input.mov -o output.gif -w 640

# Use -f flag to set the scaling algorithm to be used, default is bicubic
# visit: http://trac.ffmpeg.org/wiki/Scaling#Specifyingscalingalgorithm for a list of such algorithms
convert-to-gif -i ~/Desktop/input.mov -o output.gif -f lanczos

Sample gif

Sample converted gif

About

Command line tool for converting videos to gifs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages