Please use silent HTML5 videos instead of animated GIFs wherever possible. They are much more bandwidth- and CPU-efficient. This site allows you to automatically upload/convert animated GIFs into that format: <a href="http://gfycat.com/" rel="nofollow">http://gfycat.com/</a><p>The links allow you to see the animated GIFs as well, if viewer's device doesn't support HTML5.
Originally from/more discussion at <a href="http://www.reddit.com/r/programming/comments/1w2c58/a_few_animated_gifs_and_their_python_code_xpost/" rel="nofollow">http://www.reddit.com/r/programming/comments/1w2c58/a_few_an...</a>
Nice! Also check out: "Stupid programmer tricks and Star Wars .gif": <a href="http://rarlindseysmash.com/posts/stupid-programmer-tricks-and-star-wars-gifs" rel="nofollow">http://rarlindseysmash.com/posts/stupid-programmer-tricks-an...</a><p>Also Python, but uses VideoLan (VLC) to some extent to create really nifty Star Wars gifs.
(on 'jessie'):<p>apt-cache search 'movie.<asterisk>python|python.<asterisk>movie'<p>... <squatmo-germane> ...<p>well, nutz.<p>(and how the hell do you type a real asterisk in this comment forum? tried escapes... tried html entities...)
Anyone done a benchmark of this vs AVISynth? I have software I wrote in AVISynth for doing 2d to 3d Stereoscopic upconversion based on motion and parallax. I have often wished I had it in something more "real" like Python.
This is much nicer than my normal method of getting the frames with mplayer -vo png and then using ImageMagick to assemble the frames into an animated GIF.
@Schneems has a really good tutorial on this using ffmpeg.
<a href="http://www.schneems.com/post/41104255619/use-gifs-in-your-pull-request-for-good-not-evil/" rel="nofollow">http://www.schneems.com/post/41104255619/use-gifs-in-your-pu...</a>
mplayer can do this as well:<p><pre><code> mplayer videofile -vo gif89a:fps=15:output=video.gif
</code></pre>
You can use mplayer's other options to set the start time, duration, and cropping.