I'm using Time Lapse Assembler, but it only works with jpg files. The problem is that the pics I want to combine into a timelapse are bmp images (15,000 of them!). So I'm trying first to convert them into jpg with Automator (it's a mac). The problem is that I'm failing miserably to convert them with Automator. I keep getting an error message.

Any suggestions as to how to timelapse the bmp pics directly on a mac, or how to convert them into some other format before timelapsing them?

  • 2
    Use a tool to batch process them – Dave Jan 29 '16 at 10:45
  • 1
    I would suggest you use ffmpeg for that. One simple command line should do the trick. – GiantTree Jan 29 '16 at 11:12
  • 1
    @GiantTree: Why don't you turn that into an answer (with a sample command and brief explanation)? – fixer1234 Feb 2 '16 at 3:37
#!/usr/bin/env python

import os
import glob

files = sorted(glob.glob("/path/to/files/img*.bmp"))

outdir = "./Order"

if not os.path.exists(outdir):

for i, f in enumerate(files):
    os.symlink(f, os.path.join(outdir, "%03d.bmp" % (i + 1)))

And then:

ffmpeg -r 5 -intra -qscale 1 -i %03d.bmp out4.mp4

Might do the trick for you.

The python script puts the file in order.You will need a wildcard (*) to replace the variable part of the file name.

Then the ffmpeg command grabs the ordered files and makes a video out of it.

I'm think I grabbed this code from somewhere a few years ago, so credit to whoever was the author. If you know who he/she is paste a link in the comments and I'll update the answer.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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