Libervis Network - For a Free WorldLibervis Projects | Nuxified Projects
Welcome guest. Register | Login | Show what's new
Inatux.com

Converting MNG or GIF to video? [solved]

Converting MNG or GIF to video? [solved]

I hope I'm not asking for the impossible. In fact, I've seen some freeware non-freedomware which can do this sort of thing, but I'd like to do it on GNU/Linux. Basically, I have an animation in GIF and MNG and would like to convert this to a proper video like Theora (OGM) or ffmpeg (AVI, MPEG etc.) and such.

Is this anyhow possible? I've searched a bit and imagemagick has a convert command, but it seems to be able to convert only between image formats.

Perhaps ffmpeg has something for mng?

Thanks


Interesting how after hours

Interesting how after hours of searching last night I couldn't quite find the right solution and today I got it with one search query. I guess I just had to search for the right thing...

Anyway, here is the solution:

convert test.gif test%05d.jpg
ffmpeg -r 25 -i test%05d.jpg -y -an test.avi

The first is a command from the ImageMagick suite which converts every frame in a given GIF animation into a JPG file.

The second command takes those JPG's and stitches them into an AVI file. You can also use other extensions like .ogg which will make a nice OGG video. Smiling

With -r you can set the framerate to make the video slower or faster.

Yay!

Here is a result:

Here is a result: http://www.libervis.com/files/libervis_logo.ogg Smiling

So I now know how to create a GIF animation and convert it to video and add audio to it using only Inkscape, ImageMagick, ffmpeg and PiTiVi. Smiling

Once I know the process and have all the commands saved up handy this is actually not a bad way to do videos on GNU/Linux considering the alpha state of most freedomware video editors.

Also, for animations where something specific needs to be done it may actually be easier to do it this way than using a full application.

Cheers

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><br><p><img><br><b><i>
  • You may quote other posts using [quote] tags.
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • Textual smileys will be replaced with graphical ones.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 14 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

We have 7824 members who wrote 2145 articles and 12193 comments. Welcome to our newest member, Fesyinsinia!

Who's online

There are currently 1 user and 41 guests online.

Online users

Nuxified RSS feed