Asked • 06/17/19

How to remove every second frame from an animated gif?

I have a folder full of videos that I want to convert to an animated gifs. ffmpeg/avconv does a bad job of doing it directly, so I instead convert the video to a gif by first outputting each frame as a png and then converting back to gif using imagemagick. The problem is that this results in a large gif in terms of file size. To solve this I want to "drop" every second or nth frame from the gif, either by skipping every image file when converting to a gif or by removing frames from a gif. How can I do this on Ubuntu (13.04) using imagemagick or some other command-line utility?

Kuljo U.

Stumbled upon VirtualDub; http://virtualdub.sourceforge.net/ Surprisingly, it just happens to be able to edit .gif's as well as videos. And it has an "every other frame, every third frame, etc." function. Easy peasy. btw, if you use VirtualDub for more extensive videos, you likely will also need the ffmpeg plugin; https://sourceforge.net/projects/virtualdubffmpeginputplugin/
Report

05/24/21

1 Expert Answer

By:

Michael H. answered • 10/22/19

Tutor
New to Wyzant

U.S. Army Veteran Graphics Designer, Tutor.

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.