Git Product home page Git Product logo

giffify's Introduction

giffify

Life is too short for crappy GIFs

A two-pass, high quality video-to-animated-GIF converter script that harnesses ffmpeg to do the dirty work. Works on both Linux and macOS.

Setup and usage

  1. Copy the version you prefer (Python or Bash) to your computer, and make it executable. For example:
$ chmod a+x giffify.py
  1. Make sure you have installed ffmpeg and you have it on your PATH. Easiest way is to use a package manager. On macOS, for example, using Homebrew:
$ brew install ffmpeg
  1. Then simply use it to convert movies. It can be as simple as:
$ giffify.py my-video.mp4

giffify's People

Contributors

dextorer avatar fourlastor avatar mikcnt avatar rock3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

giffify's Issues

Duration and End Time options don't accept hours or minutes

So running giffify.py -h returns:

optional arguments:
  # [...]
  -s START_TIME, --start-time START_TIME
                        Start timestamp, as [-][HH:]MM:SS[.m...] or
                        [-]S+[.m...]
  -e END_TIME, --end-time END_TIME
                        End timestamp, as [-][HH:]MM:SS[.m...] or
                        [-]S+[.m...]. Overridden by -d
  -d DURATION, --duration DURATION
                        Duration, as [-][HH:]MM:SS[.m...] or [-]S+[.m...].
                        Overrides -e

but if you actually try to use any of these options with a time that contains HH:MM or MM an error gets thrown:

~/Desktop  $ giffify.py -s 00:10 test.gif -o out.gif
usage: giffify.py [-h] [-o OUTFILE] [-dw DESIRED_WIDTH] [-dh DESIRED_HEIGHT]
                  [-fps FPS] [-s START_TIME] [-e END_TIME] [-d DURATION]
                  video
giffify.py: error: argument -s/--start-time: invalid int value: '00:10'

This happens both if you use HH:MM:SS and MM:SS and happens for start time, end time and duration.

It works fine if you pass just the seconds

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.