WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.
TL;DR; 1)Record mp4 video with Kazam 2)Convert video to gif using Gifify
Install and Use Kazam to record the video
$ sudo apt-get install kazam
Save your video as Mp4
Use a small frame-rate to keep size small
Download + install giflossy
$ git clone email@example.com:pornel/giflossy.git $ cd giflossy giflossy$ autoreconf -i giflossy$ ./configure giflossy$ make && make install
Install Gifify using npm
$ npm i -g gifify
Use gifify to convert the mp4 video into a GIF file
Example: convert a file called video.mp4 to video.gif
Heads-up this uses a lot of RAM, even for smallish video files.
There's all sorts of options to control the frame-rate and other things too.
$ gifify video.mp4 -o video.gif