Skip to content

Instantly share code, notes, and snippets.

@nuxero
Created July 12, 2019 17:31
Show Gist options
  • Save nuxero/1651d18e72acc7029b069a043e6c9645 to your computer and use it in GitHub Desktop.
Save nuxero/1651d18e72acc7029b069a043e6c9645 to your computer and use it in GitHub Desktop.
Script for creating gifs from videos
#!/bin/bash
if [ -z $1 ] | [ -z $2 ] | [ -z $3 ]; then
echo "Usage: convertToGif.sh file.mp4 640:480 outputfile"
exit 1
fi
ffmpeg -i $1 -vf scale=$2 $3.gif -hide_banner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment