Skip to content

Instantly share code, notes, and snippets.

@e1himself
Created August 4, 2017 08:27
Show Gist options
  • Save e1himself/8e0d806d87d9490b267b86817e5d7ce9 to your computer and use it in GitHub Desktop.
Save e1himself/8e0d806d87d9490b267b86817e5d7ce9 to your computer and use it in GitHub Desktop.
gifify
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: gifify INPUT OUTPUT"
exit 1
fi
ffmpeg -i "$1" -r 10 -f image2pipe -vcodec ppm - | convert -delay 10 - "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment