https://github.com/Haoke98/video2gif
Project description
Programmatically generate animated GIF from video in Python
With this video2gif converter you can upload any format of video and rich media files to turn them into high quality animated GIFs.
Getting Started
1. Install
- pip Install
pip install vgif -U
- source Install
Clone this repository
- Run setup from the repository root directory
python3 setup.py install
2. Start UP
🅶 GUI
Start interface:
vgif-gui
Select video file
Set options
Click button “Start” to start
Once started converter will save the output under the same folder ad source video
Click button “ReStart” to re-start this process
Click button “Exit” to end this program.
The options includes:
Video Sample Rate : (default sample every 10 frame)
Output GIF FPS: Set output GIF fps(default 10 fps)
Video Resize Rate: Shrink video n times smaller (default 2 times smaller)
🅲 CMD
Usage
vgif [OPTIONS]:: Converts video to GIF. Options: -i, --input PATH input video file -o, --output TEXT output gif file path and name. -s, --scale INTEGER Scale the factor for frame_x and frame_y. -r, --resolution TEXT The resolution factor for factor ( For Compress ), like 1920x1080. -fps, --gif-fps INTEGER The fps of the GIF. --help Show this message and exit.
Just Give the Input:
vgif -i /myLocalDir/myVideo.mov This will generate the GIF with the same name to the same directory as the original file.
Give the file path for out.:
vgif -i /myLocalDir/myVideo.mov -o /some_dir/out.gif
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vgif-1.0.6.tar.gz
.
File metadata
- Download URL: vgif-1.0.6.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6052567ace66e7364dfd71a74fe052cc618fffe410603fab6ada679ca7a89696 |
|
MD5 | c59659437bcf41eb89acffbdc7345264 |
|
BLAKE2b-256 | ef01000307c294d2009bad18991421a42dd74052e7e87dedf683b2ac9a3058e9 |
File details
Details for the file vgif-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: vgif-1.0.6-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5917338a0162686624be1ff72ac518118d18ba1a4b317fec13959b0d27d48b2 |
|
MD5 | 23f5d572fe7f90f5abb99d42a96fd58e |
|
BLAKE2b-256 | 672db0492c464e32987a8506ce50ba3affa7048e7dd4c2359793c724a5cdf5d8 |