dotfiles/scripts/ffgif.sh

7 lines
200 B
Bash
Raw Normal View History

2022-05-08 22:09:16 +02:00
#!/bin/bash
echo making gif from $1
echo
ffmpeg -i $1 -filter_complex "[0:v] palettegen" $1.palette.png
ffmpeg -i $1 -i $1.palette.png -filter_complex "[0:v][1:v] paletteuse" $1.gif
rm $1.palette.png