Open wallabyway opened 5 years ago
script to create anim.gif
palette="/tmp/palette.png"
filters="fps=16,scale=300:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2
https://github.com/user-attachments/assets/8af8cee7-38e9-4f32-9cd2-a85839053c28
https://github.com/user-attachments/assets/b6d2cd61-782f-4685-a7ae-d20b9c389f52
script to create anim.gif
!/bin/sh
palette="/tmp/palette.png"
filters="fps=16,scale=300:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2