Hexinverter ¬ Quicky: Convert a movie to a gif

Here's a quick little script that converts a video file into an animated gif, using ffmpeg. Turns out it's fairly trivial.

#!/bin/sh

INFILE=$1
OUTFILE=$1.gif

ffmpeg -i "$INFILE" -vf scale=640:360 -pix_fmt rgb24 "$OUTFILE"

test