Skip to content

Developed during Google Code-In 2016. A command-line tool built in Python that creates a GIF with subtitles from a video and subtitle file using pysubs2 and MoviePy.

Notifications You must be signed in to change notification settings

manveerxyz/GIFGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

GIFGenerator

Developed during GCI 2016.
This repository creates a GIF file with subtitles from a video and subtitle file.

Setup Instructions

Install python3

If python3 is not installed
Run this in a command window:

sudo apt-get install python3

Install pip

If pip3 is not installed
Run this in a command window:

sudo apt-get install python3-setuptools
sudo easy_install3 pip
sudo mv /usr/local/bin/pip /usr/local/bin/pip-3

Install pysubs2

Run this in a command window:

sudo pip3 install pysubs2

Install MoviePy

Run this in a command window:

pip install moviepy

If you have neither setuptools nor ez_setup installed the command above will fail.
If this is the case run this:

pip install ez_setup

Usage Instructions

Open a command window in directory containing gif_generate.py Run this command:

python gif_generate.py [-h] [--display-text= DISPLAY_TEXT]
                       [--sub-number= SUB_NUMBER] [--gif= GIF]
                       [--resize= RESIZE] [--fps= FPS] [--font= FONT]
                       [--font-size= FONT_SIZE] [--font-color= FONT_COLOR]
                       [--stroke-width= STROKE_WIDTH]
                       [--stroke-color= STROKE_COLOR] [--capital= CAPITAL]
                       video subtitles

Or run this command for more information:

python gif_generate.py [-h]

About

Developed during Google Code-In 2016. A command-line tool built in Python that creates a GIF with subtitles from a video and subtitle file using pysubs2 and MoviePy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages