Convert an image sequence to a movie

From NoskeWiki
Jump to navigation Jump to search

About

On this page I've listed a few options which can help you take a sequence of numbered image files, each representing a "frame", and convert that into a movie file.

NOTE: In all cases, it's pretty much assumed that your image sequence is put in its own separate folder and the image names should be end with numbers as per the examples below:

  • "frame000.png", "frame001.png", "frame002.png", etc
  • "my_movie_001.jpg", "my_movie_002.png", "my_movie_003.png", etc


Methods for Creating a Movie from an Image Sequence

Option 1: QuickTime Pro...... ($30 for Mac and Window)

QuickTime 7 works on Windows and Mac (not Unix) and it costs ~$30 to unlock the "Pro" version which can be used to modify movies. Instructions to install QuickTimePro are here. Once installed you must make sure you have a sequence of (same sized) images in a numbered sequence (eg: img000.tif, img002.tif, ... img099.tif). Within QuickTime click: File > Open Image Sequence and select the first one. From here you can chose frame rate and it will save to a huge .mov file, but after saved you can go File > Export to save to a number of different compressed formats. Read more about these export options [[[QuickTime|here]]. Even though it costs $30, this is my preferred choice for because I like having lots of export options.


Option 2: ImageJ...... (free and cross-platform)

ImageJ uses Java so is cross platform (Windows, Mac OSX and Unix). ImageJ/"Fiji" (a fuller featured version) can reads and writes many image formats, but only writes out one type of movie format - and that is AVI. Often AVI is all you'll want though (especially if you want a PowerPoint movie) and the instructions are as follows:

  1. Copy all the images/frames you want in a single directory with nothing else, and make sure they are in alphabetical order. For example: "frame000.jpg", "frame001.jpg", etc.
  2. Open ImageJ.
  3. Click File > Import > Image Sequence, navigate to the desired directory and click Select. There are some nice options here for scaling etc.
  4. Click File > Save As > AVI..., select your frames per second (25 is good if you have many frames) and save you AVI.

There are no options for AVI quality, but this is still very effective if you happen to have ImageJ/Fiji installed.


Option 3: VirtualDub...... (free, but Windows only)

VirtualDub is for Windows only and was designed for creating and editing AVI files. Once you've installed the program from here, just do the following:

  1. Open VirtualDub then click File > Open, then select the first image in the sequence.
  2. Click Video > Frame Rate, to change the frame rate (once loaded).
  3. Click File > Save as AVI to save.


Option 4: ImageMagick.... (free, command line and cross-platform)

ImageMagick is a free command line program which works in a Unix Shell, so can be used via Mac OS X's Terminal program, but can also be run on Windows via a separate executable. It reads in hundreds of type of image formats, but only writes out MPEG or animated GIF. It is also tricky to get conversions to work, so if you're not comfortable or unfamiliar with command lines I suggest you skip this option! To install ImageMagick go to the imagemagick download page. If using a Mac, the easiest way to install ImageMagick is to install "MacPorts", then run "sudo port install ImageMagick". For Unix, ImageMagick may already be installed, and you can type "convert" into the command line to check. Once installed, you should put all your frames into a separate directory, restart a new shell and then run this command:

convert -quality 100 *.png outputfile.mpeg

Actually I've never had this work for me, because ImageMagick has many nasty dependencies. If that doesn't work the following line creates an animated GIF (yuck):

convert -set delay 3 -colorspace GRAY -colors 256 -dispose 1 -loop 0 -scale 50% *.png Output.gif

NOTE: A similar command line toolset you can install is FFmpeg


Option 5: Adobe Photoshop.... (costly, Windows and Mac)

Although expensive, Adobe Photoshop is a program many people may have already.

From CS3, Photoshop allows you to create movies/animations. Prior to that ImageReady was used for this.

For CC and later see: https://helpx.adobe.com/photoshop/how-to/make-animated-gif.html

For CS3 to CC use:

  1. Go: File > Scripts > Load Files into Stacks... (This option will add all your image in as one file with separate layers) and add all the images you want in the animation.
  2. Open the Animation Palette under: Window > Animation.
  3. Click on the Flyout Menu on top right corner of the animation window and select Make Frames from Layers.
    NOTE: If your frames are backwards click the bottom left icon to of the animation window get into "frame animation mode", select all the square frames then click the flyout again and reverse frames.
  4. Adjust the timing of each frame by selecting the 0 sec. on the frame.
  5. Go: File > Export > Render Video. Among the many options you can save as a movie for Flv, IPhone, IPod, Quick Time, MPEG4 and so on. I recommend using compression type "H.264".


Links