Make a nice, small gif!
$ gif some_file.mov
Make a bunch of gifs!
$ gif *.mp4
Choose what width to make your gif at (default 960:
$ WIDTH=500 gif my_recording.mov
| function gif() { | |
| for file in "$@" | |
| do | |
| echo "${file%.*}".gif | |
| ffmpeg -i "$file" -filter_complex "[0:v] fps=15,scale=w=${WIDTH:-960}:h=-1,split [a][b];[a] palettegen [p];[b] fifo [b]; [b][p] paletteuse" "${file%.*}".gif | |
| done | |
| } |