Skip to content

Instantly share code, notes, and snippets.

@Zettt
Zettt / gifenc.sh
Last active January 29, 2016 14:49 — forked from goncalossilva/gifenc.sh
Handy script to encode gif using ffmpeg (2.6 or above). Put somewhere in your `$PATH` and I hope it works for you.
#!/bin/sh
# sh gifenc.sh -i input.mp4 -o output.gif
# defaults
palette="/tmp/palette.png" #location of temporary palette file
fps=20
filters=
#usage and parameter assembly
set completion-ignore-case On
set show-all-if-ambiguous on
"\e[A": history-search-backward
"\e[B": history-search-forward
# Cycle through completions by pressing tab
"\t": menu-complete