Skip to content

Instantly share code, notes, and snippets.

View michaelwittig's full-sized avatar

Michael Wittig michaelwittig

View GitHub Profile
@michaelwittig
michaelwittig / mp42gif.sh
Created March 11, 2021 12:11 — forked from troyane/mp42gif.sh
See script and documentation here: https://github.com/troyane/StackOverflow-pro/tree/master/mp42gif Script to convert MP4 file to GIF (via ffmpeg). It creates intermediate custom color palette out of input video file and use it for resulting GIF for better picture quality. For more info see https://superuser.com/a/556031
#!/bin/bash
#
# Script to convert MP4 video to GIF with generation of custom color palette.
#
#=== Do not touch code below
# Inner variables
input_file=""
input_fps="20"
input_height="512"