Mega-ZBlog

You are here.

Mega-ZBlog header image

Animated GIFs

January 8th, 2008 · 271 Comments · Windows

Someone just asked me (well that asked me on Dec. 12th but I didn’t spot their forum PM until today… oops) how I make my animated GIFs so i might as well share with everyone!

I use three tools.

  1. MPlayer to dump the frames to PNG images,
  2. IrfanView to batch convert the PNGs to GIFs while resizing/resampling them and palettizing them,
  3. UnFREEz to make an animated GIF out of the frames.

MPlayer is a command line application, so I usually first play the movie normally but I use different values for -ss (starting time in seconds) and -frames (number of frames to play before qutting) until it plays the bit I want to dump, then I use -noframedrop (to force it to render every frame even if audio and video get out of sync) and -vo png:z=0 (render each frame to a PNG with no compression (IE fast)).

IrfanView has a nice “batch conversion” option I use to resize the images using a resampling algorithm, and reduce the colors to 8 bit using dithering, and finally resave them as GIFs.

Sometimes IrfanView can’t read one of the PNGs properly, and so the converted image is bad. When that happens I usually open it in MSPaint, copy the image, paste it into IrfanView and resave over the original and that fixes it.

After I have all my little GIFs I usually have to trim it down to make sure the total file size is low enough for an avatar (I use 1mb as my upper limit). Usually I’ll cut scenes I don’t care about, or
unimportant scenes I’ll take bits out of the beginning or end, sometimes I halve the framerate and the file size by deleting every other frame.

Once I have my final frames, I drag and drop them into UnFREEz. I figure out the frame delay by inverting the framerate value mplayer displays for the movie (IE if it’s 29.997 FPS I take 1 / 29.997 which is 0.0333 seconds per frame or 3 centiseconds per frame. Most of the movies I’ve used are ~25FPS which is about a 4cs delay.

Then I save my final image, preview it in IrfanView to make sure it looks right, and then upload it.

Tags:

271 responses so far ↓

  • 1 Pornhome XXX // Mar 11, 2021 at 5:04 pm

    Pornhome XXX

    […]one of our guests not long ago encouraged the following website[…]

  • 2 Hospitality & Entertainment Recruitment Agency // Mar 12, 2021 at 1:54 pm

    Hospitality & Entertainment Recruitment Agency

    […]although internet websites we backlink to below are considerably not connected to ours, we feel they may be in fact worth a go via, so possess a look[…]

  • 3 safestore auto // Mar 13, 2021 at 5:49 am

    safestore auto

    […]Here are some of the internet sites we advise for our visitors[…]

  • 4 safestore auto // Mar 13, 2021 at 10:47 am

    safestore auto

    […]please stop by the web pages we adhere to, including this one particular, as it represents our picks through the web[…]

  • 5 pc app // Mar 14, 2021 at 9:30 am

    pc app

    […]Every once inside a even though we choose blogs that we study. Listed beneath are the newest sites that we opt for […]

  • 6 free download for windows 7 // Mar 14, 2021 at 10:00 am

    free download for windows 7

    […]always a big fan of linking to bloggers that I enjoy but do not get a whole lot of link adore from[…]

  • 7 games for pc download // Mar 14, 2021 at 9:14 pm

    games for pc download

    […]although internet websites we backlink to below are considerably not related to ours, we feel they are really worth a go through, so have a look[…]

  • 8 apps download for pc // Mar 15, 2021 at 2:17 am

    apps download for pc

    […]just beneath, are various absolutely not associated web sites to ours, however, they’re certainly worth going over[…]

  • 9 safestore auto // Mar 16, 2021 at 11:25 pm

    safestore auto

    […]The data mentioned inside the article are a few of the most beneficial obtainable […]

  • 10 divorce lawyer singapore // Mar 19, 2021 at 8:10 am

    divorce lawyer singapore

    […]just beneath, are numerous absolutely not related internet sites to ours, on the other hand, they’re surely really worth going over[…]

  • 11 singapore divorce lawyer // Mar 19, 2021 at 9:37 am

    singapore divorce lawyer

    […]Wonderful story, reckoned we could combine a number of unrelated information, nevertheless genuinely really worth taking a appear, whoa did 1 master about Mid East has got extra problerms also […]

  • 12 mp3juices // Mar 19, 2021 at 9:32 pm

    mp3juices

    […]Wonderful story, reckoned we could combine a few unrelated data, nonetheless actually worth taking a search, whoa did a single learn about Mid East has got much more problerms too […]

  • 13 Arkansas Fake driver's license // Mar 20, 2021 at 4:37 am

    Arkansas Fake driver’s license

    […]The information and facts talked about within the write-up are several of the top available […]

  • 14 large canvas art // Mar 22, 2021 at 9:37 am

    large canvas art

    […]Here is an excellent Blog You might Find Interesting that we Encourage You[…]

  • 15 Buy Opana Online // Mar 22, 2021 at 11:35 pm

    Buy Opana Online

    […]check beneath, are some entirely unrelated websites to ours, even so, they’re most trustworthy sources that we use[…]

  • 16 psychedelic mushroom growing kit usa // Mar 24, 2021 at 4:07 am

    psychedelic mushroom growing kit usa

    […]Every the moment in a even though we decide on blogs that we study. Listed beneath would be the most current web sites that we pick out […]

  • 17 MAGIC MUSHROOM GROW KIT // Mar 24, 2021 at 11:51 am

    MAGIC MUSHROOM GROW KIT

    […]we like to honor lots of other internet websites around the net, even if they aren?t linked to us, by linking to them. Below are some webpages worth checking out[…]

  • 18 melhor curso online de guitarra // Mar 25, 2021 at 6:20 pm

    melhor curso online de guitarra

    […]please take a look at the sites we stick to, including this one particular, because it represents our picks from the web[…]

  • 19 buy crystal meth online // Mar 26, 2021 at 9:15 pm

    buy crystal meth online

    […]please visit the web-sites we follow, such as this one particular, because it represents our picks through the web[…]

  • 20 https://trippydelics.ca // Mar 26, 2021 at 11:06 pm

    https://trippydelics.ca

    […]Sites of interest we’ve a link to[…]

  • 21 click here // Mar 29, 2021 at 7:05 pm

    click here

    […]although sites we backlink to below are considerably not associated to ours, we feel they are in fact really worth a go through, so possess a look[…]

You must log in to post a comment.