5774 shaares
24 results
tagged
gif
one liner... generate palette and make gif from video:
ffmpeg -i INPUT.mp4 -filter_complex "[0:v] fps=15,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" OUTPUT.gif
gifsicle -U --disposal=previous --transparent="#ffffff" -O2 anim.gif > anim_trans.gif
works without x
skip the "pile of images" by piping the output of ffmpeg/avconv directly to gifsicle with this syntax:
ffmpeg -i input.avi -vf scale=320:-1 -r 1 -f image2pipe -vcodec gif - | gifsicle --delay=5 --multifile --loop - > output.gif