Skip to content
Snippets Groups Projects
Commit 0027fff6 authored by Thrasyvoulos Karydis's avatar Thrasyvoulos Karydis
Browse files

Adding gifenc.

parent aa71f777
Branches
No related tags found
No related merge requests found
gifenc 0 → 100644
#!/bin/sh
# Compiled from: http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
palette="./palette.png"
filters="fps=15,scale=128:-1:flags=lanczos"
ffmpeg -i $1 -vf palettegen palette.png
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
rm $palette
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment