Skip to main content

video2gif ~ vgif

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
    1. Clone this repository

    2. Run setup from the repository root directory

      python3 setup.py install

2. Start UP

🅶 GUI

https://github.com/Haoke98/video2gif/raw/master/assets/interface.png
  1. Start interface:

    vgif-gui
  2. Select video file

  3. Set options

  4. Click button “Start” to start

  5. Once started converter will save the output under the same folder ad source video

  6. Click button “ReStart” to re-start this process

  7. 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

Metadata

Release files for vgif 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vgif 1.0.6
File Size Uploaded
vgif-1.0.6.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vgif 1.0.6
File Interpreter ABI Platform
vgif-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / vgif-1.0.6.tar.gz

Download URL vgif-1.0.6.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6052567ace66e7364dfd71a74fe052cc618fffe410603fab6ada679ca7a89696
BLAKE2b-256 checksum
How to use checksums
ef01000307c294d2009bad18991421a42dd74052e7e87dedf683b2ac9a3058e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / vgif-1.0.6-py3-none-any.whl

Download URL vgif-1.0.6-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5917338a0162686624be1ff72ac518118d18ba1a4b317fec13959b0d27d48b2
BLAKE2b-256 checksum
How to use checksums
672db0492c464e32987a8506ce50ba3affa7048e7dd4c2359793c724a5cdf5d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page