Last active
June 3, 2019 09:36
-
-
Save takayukioda/71ea3da1308f9488cb7005363280527f to your computer and use it in GitHub Desktop.
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 +x | |
| [ $# -lt 2 ] && echo "Usage: $(basename $0) <input path> <output filename>" >&2 && exit 1 | |
| input_path=$1 | |
| output_filename=$2 | |
| input_dirname=$(cd $(dirname "$input_path") && pwd -P) | |
| ffmpeg -i "$input_path" -vf fps=10,scale=640:-1 "$input_dirname/$output_filename.gif" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment