Skip to content

Instantly share code, notes, and snippets.

@piraces
Last active November 19, 2019 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piraces/f1f3e50dc7e63772bbde64b91ee96a0e to your computer and use it in GitHub Desktop.
Save piraces/f1f3e50dc7e63772bbde64b91ee96a0e to your computer and use it in GitHub Desktop.
Simple script to convert a batch of videos to GIFs
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Please provide a video extension as argument"
fi
for f in *.$1;
do ffmpeg -i "$f" "${f%.*}_out.gif";
rm "$f"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment