title: Fastest way to create animated gifs from mp4
body: <p>I have to batch process a very high number(200,000+) of short mp4s(less then 10s) into animated gifs.  I think I have tried every possible command line way of doing it, but it still takes too long to produce quality gifs.  Currently I use ffmpeg to unpack image(jpg) frames, and image magick convert to assemble them.  It produces high quality gifs, but takes too long and uses too much memory and CPU, even with tweaking with the -limit memory and map limits.</p>
  
  <p>I have also tried creating animated gifs directly using ffmpeg, but the quality is terrible at best.  Also, I have tried using gifsicle, which does seem fast, but it only takes gifs as inputs, and using ffmpeg to generate them produces poor quality gifs.</p>
  
  <p>Does anyone have some command line recipes for fast high quality gif creation?</p>