Open eastein opened 9 years ago
From @jackcarrozzo: this is my new improved gif gen, much higher res
ffmpeg -y -ss $startsec -t $lengthsec -i $file -vf fps=10,scale=$widthpx:-1:flags=lanczos,palettegen palette.png ffmpeg -ss $startsec -t $lengthsec -i $file -i palette.png -filter_complex "fps=10,scale=$widthpx:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
Here is some solid data on the subject:
http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
From @jackcarrozzo: this is my new improved gif gen, much higher res