Skip to content

Instantly share code, notes, and snippets.

Last active Oct 20, 2017
What would you like to do?
# require slop, ffmpeg, imageMagick
read -r X Y W H G ID < <(slop -f "%x %y %w %h %g %i")
TMP_AVI=$(mktemp /tmp/outXXXXXXXXXX.avi)
ffmpeg -s "$W"x"$H" -y -f x11grab -i :0.0+$X,$Y -vcodec huffyuv -r 25 $TMP_AVI \
&& convert -set delay 5 -layers Optimize $TMP_AVI ./out.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment