Creating animated GIFS with mplayer

Sunday, November 08, 2009 Posted by Psyk
Looking for a quick fire way to create an animated GIF from sections of video's I didn't need to look any further than the multimedia swiss-army knife of the linux world, mplayer/mencoder and ffmpeg.


mplayer -ao null -loop 0 -ss 0:11:22 -endpos 5 file.avi

First is to playback the video and find the section you want. Tweak the "-ss" parameter to find the starting point and the "-endpos" for the finishing point of your video clip.


 mplayer file.avi -ao null -ss 0:11:22 -endpos 5 -vo gif89a:fps=25:output=animated.gif -aspect 16/9 -vf scale=-2:100  

Use mplayer again to write out the animated GIF file. Adjust the "scale" parameter to adjust the size of the animated GIF which is useful if you're going to use it as a signature for web forum etc.
Labels:

Post a Comment