How to create time-lapse movies from JPEG stills: Difference between revisions

From Wurst-Wasser.net
Jump to navigation Jump to search
Line 8: Line 8:
** <tt>-t 20</tt> = length of movie (20 seconds)
** <tt>-t 20</tt> = length of movie (20 seconds)
** <tt>-f image2</tt> = force format for output or input? TBD!
** <tt>-f image2</tt> = force format for output or input? TBD!
** <tt>-r 1</tt> = input-rate (1 image per second)
** <tt>-r 1</tt> <tt>-r 30</tt> = input-rate (1 image per second for the input files and 30 images per second for the output file)
** <tt>-i "%05d.jpg"</tt> = input files with wildcard
** <tt>-i "%05d.jpg"</tt> = input files with wildcard
** <tt>-r 30 "out.mov"</tt> = output frame rate and file name
** <tt>-r 30 "out.mov"</tt> = output frame rate and file name

Revision as of 10:31, 6 April 2014

The Mission

Trying to combine many .jpg-files into one movie, using my Mac with Mac OS X 10.8 Snow Leopard.

The Solution(s)

Using ffmpeg

  • Download and install ffmpeg either via homebrew, compiling or just downloading binary from: http://ffmpegmac.net
  • This…
    ~/bin/ffmpeg -t 20 -f image2 -r 1 -loop 1 -i "%05d.jpg" -r 30 "out.mov"[1]
    …will create a movie with…
    • -t 20 = length of movie (20 seconds)
    • -f image2 = force format for output or input? TBD!
    • -r 1 -r 30 = input-rate (1 image per second for the input files and 30 images per second for the output file)
    • -i "%05d.jpg" = input files with wildcard
    • -r 30 "out.mov" = output frame rate and file name
  • This is what I use to create a movie (input files are photos taken every minute):

Using mencoder

TBD

  1. Since the pictures taken are named like this: 2014-03-30_10-17-02.jpg, you will have to rename them, for example with a little script or Better Finder Rename