HOME - Recent Changes - Search:

Academic Work


Personal

* pot de départ


dblp


(:twitter:)

-----

[ edit | logout ]
[ help | sandbox | passwd ]

AVI -> animated gif

#############################

Problem

You have an AVI and you want to convert it to an animated GIF.

Solution

Step 1

mplayer  file.avi  -vo gif89a  -vop scale=100:100  -frames 240

Meaning: resize to 100 x 100 pixels; take the first 240 frames from the AVI.

If it works, stop here.


If there is something wrong with the GIF output, then:

mplayer file.avi -vo jpeg -vop scale=100:100 -frames 240

It'll produce 240 JPG files.

Step 2

mogrify -format gif *.jpg

Step 3

convert  -adjoin  -loop 0  -delay 5  *.gif  animation.gif

Meaning: infinite loop; leave 5/100 second delay between the images.

Note: mogrify and convert are part of the ImageMagick package.

Cloud City


anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows


Blogs and Dev.

* Ubuntu Incident
* Python Adventures
* me @ GitHub


Places

Debrecen | France | Hungary | Montreal | Nancy


Notes

full circle | km


Hobby Projects

* Jabba's Codes
* PmWiki
* Firefox
* PHP
* JavaScript
* Scriptorium
* Tutorials
* me @ GitHub


Quick Links


[ edit ]

View - Edit - History - Attach - Print *** Report - Recent Changes - Search
Page last modified on 2008 March 28, 06:31