Giter Site home page Giter Site logo

mp42gif's Introduction

mp42gif

Python script that uses ffmpeg-python to convert an MP4 file into an animated GIF.

Quick Start

Download the executable

  • Windows
# in Windows PowerShell
[System.Net.WebClient]::New().DownloadFile(
    "https://github.com/nstevens1040/mp42gif/releases/download/v1.0.0/mp42gif.exe",
    "$($PWD.Path)\mp42gif.exe"
)
Unblock-File .\mp42gif.exe
  • macOS / nix
curl "https://github.com/nstevens1040/mp42gif/releases/download/v1.0.0/mp42gif" --output "mp42gif"
chmod +x ./mp42gif

or use the script

  • cross-platform
git clone https://github.com/nstevens1040/mp42gif.git
cd mp42gif
pip3 install -r requirements.txt

Usage

usage: mp42gif.exe [-h] [--input VIDIN] [--slice] [--starttime SLICE_TIME] [--stoptime SLICE_TIME] [--playbackrate PBRATE] [--blend]

Specify how your video gets converted into a GIF

optional arguments:
  -h, --help             show this help message and exit
  --input VIDIN             --input <str>(file path to your mp4 file)
  --slice                   --slice --starttime <int>(start time in seconds) --stoptime <int>(end time in seconds) :: both arguments reflect the amount of seconds from the beginning of the video
  --starttime SLICE_TIME    --starttime <int>(start time in seconds from the beginning of the video)
  --stoptime SLICE_TIME     --stoptime <int>(stop time in seconds from the beginning of the video)
  --playbackrate PBRATE     --playbackrate <float>(integer or decimal that is non-negative, non-zero, & not 1) :: numbers greater than 1 speed the video up and numbers between 0 and 1 slow the video down
  --blend                   --blend <bool>(true or false) :: Determines whether the video gets "minterpolated"

mp42gif's People

Contributors

nstevens1040 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

hotwa

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.