Code Monkey home page Code Monkey logo

video2gif's Introduction

video2gif

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.

Requirements

Python 3.6+, pysimplegui,opencv-python and other common packages listed in requirements.txt.

Installation

  1. Clone this repository
  2. Install dependencies
    pip3 install -r requirements.txt
  3. Run setup from the repository root directory
    python3 setup.py install

Getting Started

  1. Start interface
    python3 vgif/main.py
  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.

Interface

Instance Segmentation Sample The options includes:

  • Video Sample Rate:Set sample rate for the source video (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)

Citation

Use this bibtex to cite this repository:

@misc{ouzheng1993,
  title={video2gif},
  author={ou zheng},
  year={2020},
  publisher={Github},
  journal={GitHub repository},
  howpublished={\url{https://github.com/ozheng1993/video2gif}},
}

To do

  • GIF Size
  • file output

Contributing

Contributions to this repository are welcome. Examples of things you can contribute:

  • update README
  • update user interface

video2gif's People

Contributors

0xflotus avatar ozheng1993 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.