Skip to content

Instantly share code, notes, and snippets.

@blakerohde
Last active January 1, 2016 19:58
Show Gist options
  • Save blakerohde/8193425 to your computer and use it in GitHub Desktop.
Save blakerohde/8193425 to your computer and use it in GitHub Desktop.
Notes for creating a time lapse video.

Time Lapse Notes

This document briefly outlines the basic steps required to generate a time lapse video from a set of images.

Steps

  1. Capture images. It is best if the files have sequential naming convention.

  2. Move images to a single folder.

  3. cd into the folder containing the images, e.g.:

    $ cd images/
    
  4. Generate a file containing all relative-path file names for the images to be used to generate the video:

    $ ls ./ -1X > ./images.txt
    
  5. Use mencoder to generate the video (source):

    $ mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect:vqscale=3 -vf scale=1920:1080 -mf type=jpeg:fps=20 mf://@./images.txt -o time-lapse.avi
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment