Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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

2 Answers 2

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
    
Thanks.. I would try this out. :) –  Manu Jul 30 '13 at 5:37

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.