Skip to content

Instantly share code, notes, and snippets.

@adastreamer
Created December 3, 2016 17:17
Show Gist options
  • Save adastreamer/791c1deee4f1e647e4cc3f15c047395c to your computer and use it in GitHub Desktop.
Save adastreamer/791c1deee4f1e647e4cc3f15c047395c to your computer and use it in GitHub Desktop.
On a terminal:
mplayer -ao null <video file name> -vo jpeg:outdir=output
Use ImageMagick to convert the screenshots into an animated gifs.
convert output/* output.gif
you can optimize the screenshots this way:
convert output.gif -fuzz 10% -layers Optimize optimised.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment