dotfiles/scripts/ffgif.sh
2022-05-08 22:09:16 +02:00

6 lines
200 B
Bash
Executable file

#!/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