Created
July 12, 2019 17:31
-
-
Save nuxero/1651d18e72acc7029b069a043e6c9645 to your computer and use it in GitHub Desktop.
Script for creating gifs from videos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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