Prepare:
Install ffmpeg, to shorten encoding duration. Please considering compiling ffmpeg yourself(instead of using binary file from package).
Install ImageMagick (or GraphicsMagick).
Go capture your screen:
Review and trim your clip(output.mp4 -> myclip.mp4)
Output as series of pictures(myclip.mp4 -> PNGs)
Combine series of pictures(PNGs -> GIF)
Here’s the demo GIF[54s(mp4) -> ~20s(GIF), 900k]:
with:
Reference:
More demo GIFs!!1
Compiling ffmpeg
Capture screen in Linux
How to trim first seconds with ffmpeg
How to convert with reasonable quality