Convert any video to GIF at original resolution, with CLI and GUI support.
Project description
VidToGif
A simple and efficient tool to convert any video to GIF at original resolution. Supports both command-line (CLI) and graphical (GUI) interfaces.
Features
- Convert any video format (MP4, AVI, MOV, MKV, WMV, FLV, WebM, etc.) to GIF
- Preserve original video resolution (same-size output)
- Adjustable output FPS
- Optional start/end time trimming
- CLI with progress bar
- GUI with file browser, options panel, and progress indicator
- Cross-platform (Windows, macOS, Linux)
Installation
From PyPI
pip install vidtogif
From source
git clone https://github.com/cycleuser/Vid2Gif.git
cd Vid2Gif
pip install -r requirements.txt
pip install .
Usage
CLI
Basic conversion (output defaults to <input_name>.gif):
vidtogif input.mp4
Specify output path:
vidtogif input.mp4 -o output.gif
Set output FPS and time range:
vidtogif input.mp4 --fps 15 --start 2.5 --end 10
Run as a Python module:
python -m vidtogif input.mp4
Show help:
vidtogif --help
GUI
Launch the graphical interface:
vidtogif --gui
Or:
python -m vidtogif --gui
The GUI provides:
- Input Video - Browse and select any video file
- Output GIF - Choose where to save the GIF (auto-filled)
- Options - Set FPS, start time, and end time
- Progress bar - Real-time conversion progress
- Convert button - Start the conversion
CLI Reference
usage: vidtogif [-h] [-o OUTPUT] [--fps FPS] [--start START] [--end END] [--gui] [-v] [input]
Convert video files to GIF at original resolution.
positional arguments:
input Path to the input video file.
options:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Path for the output GIF file. Defaults to <input_name>.gif.
--fps FPS Frames per second for the output GIF (default: video FPS, capped at 30).
--start START Start time in seconds.
--end END End time in seconds.
--gui Launch the graphical user interface.
-v, --version show program's version number and exit
Requirements
- Python >= 3.8
- opencv-python >= 4.5.0
- Pillow >= 9.0.0
- Tkinter (included with most Python installations, required for GUI only)
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vidtogif-0.1.0.tar.gz.
File metadata
- Download URL: vidtogif-0.1.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8420e2de7113fb9967039e3094f4110759ef81ac3ba1b5e4bd5d185d22aa88c
|
|
| MD5 |
ec3ba705747080e602c5d038ba3ea758
|
|
| BLAKE2b-256 |
32aff20faec49705d6fb31ff63ccab2e7295cd3b0d571952141aabf000838fa3
|
File details
Details for the file vidtogif-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vidtogif-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
657e783ff32d0cab4e0bfdfa8faaab6ed001d877a9a3e773f4138eb418c61791
|
|
| MD5 |
7ae329925d9d1043a5c54ba5ea939186
|
|
| BLAKE2b-256 |
a3d670256d7d927314bcad85a8026fde03540210808883b968c27484b2ec8775
|