https://github.com/manveerxyz/gifgenerator
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.
https://github.com/manveerxyz/gifgenerator
ccextractor gif gif-creator google-code-in
Last synced: 9 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/manveerxyz/gifgenerator
- Owner: manveerxyz
- Created: 2016-12-23T23:43:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T16:52:16.000Z (over 8 years ago)
- Last Synced: 2024-04-14T01:53:11.206Z (about 2 years ago)
- Topics: ccextractor, gif, gif-creator, google-code-in
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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]
```