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

From Wurst-Wasser.net
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== The Mission ===
=== The Mission ===
Trying to combine many <tt>.jpg</tt>-files into one movie, using my [[Mac]] with [[Mac OS X]] 10.8 Snow Leopard.
Trying to combine many <tt>.jpg</tt>-files<ref>Taken with [[Raspberry Pi Camera Setup for Time-Lapse]]</ref> into one movie, using my [[Mac]] with [[Mac OS X]] 10.8 Snow Leopard.


=== The Solution(s) ===
=== The Solution(s) ===
Line 11: Line 11:
** <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
* This is what I use to create a movie (input files are photos taken every minute):<br><tt> </tt>
* This is what I use to create a movie (input files are photos taken every minute, renumbered using [[Script for renaming files using numbers]]):<br><tt>~/bin/ffmpeg -f image2 -r 60 -i "/Users/heiko/Desktop/Kastanie/test/%05d.jpg" -r 30 "/Users/heiko/Desktop/Kastanie/out.mov"</tt><br>And this is the result: [[Media:HorseChestnutSpring2014.mov]]<br>


==== Using <tt>mencoder</tt> ====
==== Using <tt>mencoder</tt> ====
Line 22: Line 22:
** https://lukecyca.com/2013/stop-motion-with-ffmpeg.html
** https://lukecyca.com/2013/stop-motion-with-ffmpeg.html
** http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html
** http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html
** https://stackoverflow.com/questions/24961127/how-to-create-a-video-from-images-with-ffmpeg Make Movie from images (list in txt-file)
* Footnotes:
* Footnotes:
<references/>
<references/>


[[Category:Mac OS X]]
[[Category:Mac OS X]]

Latest revision as of 18:01, 23 February 2020

The Mission

Trying to combine many .jpg-files[1] 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"[2]
    …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, renumbered using Script for renaming files using numbers):
    ~/bin/ffmpeg -f image2 -r 60 -i "/Users/heiko/Desktop/Kastanie/test/%05d.jpg" -r 30 "/Users/heiko/Desktop/Kastanie/out.mov"
    And this is the result: Media:HorseChestnutSpring2014.mov

Using mencoder

TBD

  1. Taken with Raspberry Pi Camera Setup for Time-Lapse
  2. 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