eastein / gifl00p

gif looper - in development
3 stars 0 forks source link

update command possibly, better pallete choice #2

Open eastein opened 9 years ago

eastein commented 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
jackcarrozzo commented 9 years ago

Here is some solid data on the subject:

http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html