4 ms·
I use this shell script for generating gifs out of .mov files: https://gist.github.com/artursapek/5b3d15ecac5ff75593c4 https://gist.github.com/artursapek/5b3d15
by artursapek 12y ago
I use this shell script for generating gifs out of .mov files: https://gist.github.com/artursapek/5b3d15ecac5ff75593c4 https://gist.github.com/artursapek/5b3d15ecac5ff75593c4
I can probably improve it further by using some of what's in this article, but it's already faster and better than any online tool I've found.
- sorenjan 12y agoYou can pipe the frames from FFmpeg to convert to avoid temporary files. http://superuser.com/a/730389 http://superuser.com/a/730389
- artursapek 12y agoNeat! Unix pipes are amazing. Thanks.
- ux 12y ago> (convert -delay 5 -loop 0 $tmp_dir/ffout*.png $2) >& /dev/null So using ImageMagick for this... How is this memory wise BTW? (all frames are in memory at once or not?)
- artursapek 12y agoNot sure, actually. Never had it be enough of a resource hog to even think about it.
- bigboat 12y agoYes, all frames will be in memory prior to making the GIF. Probably fine for most GIFs, but if you want to go FFmpeg | ImageMagick | FFmpeg for processing a video, or maybe for a longer GIF, you can use this script to keep only a frame at a time in memory: http://www.imagemagick.org/Usage/scripts/process_ppm_pipeline http://www.imagemagick.org/Usage/scripts/process_ppm_pipelin...