Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wish to combine multiple images into a single strip of images, using FFMPEG.

I have been trying to search this thing on google, but unable to find anything useful. All links take me to places where multiple images are combined to give a video output.

Assuming that all the files are of the same width and height, how can I join them to get a single strip of images. Can anybody help me?

share|improve this question
This is possible with the tile filter. I'll provide an answer later if nobody else does but now I'm late for a fishing trip. – LordNeckbeard Jul 28 '13 at 16:21
I'm back now. How many images do you have? Do you want a vertical or horizontal strip? – LordNeckbeard Jul 29 '13 at 18:53
Number of images would be variable. It can range from 10 to several 100s. And I want a horizontal strip. – Manu Jul 30 '13 at 5:36

Example using the scale and tile video filter in ffmpeg:

$ ls *.png
001.png  002.png  003.png  004.png  005.png

$ ffmpeg -i %03d.png -filter_complex scale=120:-1,tile=5x1 output.png

If you have file names that are in a non-numbered sequential order you can use the glob pattern type:

$ ffmpeg -pattern_type glob -i "*.png" -filter_complex tile=5x1 output.png

Output example where each individual input image is a unique solid color (only 248 bytes!): tile

You can also add a margin (outer border space) and padding (space between frames):

$ ffmpeg -i %03d.png -filter_complex scale=120:-1,tile=5x1:margin=10:padding=4 output.png

tile with margin and padding

A vertical orientation is possible too: tile=1x5 for this example:

enter image description here

share|improve this answer

If you've got do it with ffmpeg then I don't know. If you want to get the job done and are willing to use another program suitable for the task then convert is part of ImageMagick.

convert sepimage-0.png sepimage-1.png sepimage-2.png -channel RGB \
-combine imagecopy.png
share|improve this answer
The images need to be the same size, otherwise the output just creates duplicates of the images. – user8547 Dec 27 '14 at 17:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .