Last active
June 8, 2017 00:20
-
-
Save mancubus77/755aee82d74cce75dd6272998f7859d6 to your computer and use it in GitHub Desktop.
How to create animated GIF images of a screencast?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simgle command: | |
mplayer -ao null out.ogv -vo jpeg:outdir=output && convert output/* output.gif && convert output.gif -fuzz 10% -layers Optimize optimised.gif | |
from | |
https://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast | |
First install this: | |
sudo apt-get install imagemagick mplayer gtk-recordmydesktop | |
those are the required stuff, ImageMagick, MPlayer and Desktop Recorder. Then use Desktop Recorder to capture a portion of the screen/application to use as the screencast. After the Desktop Recorder has saved the recording into an OGV video, MPlayer will be used to capture JPEG screenshots, saving them into the 'output' directory. | |
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 | |
shareimprove this answer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment