Skip to content

Instantly share code, notes, and snippets.

@roban
Created March 27, 2012 14:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roban/2216581 to your computer and use it in GitHub Desktop.
Save roban/2216581 to your computer and use it in GitHub Desktop.
command I use to make a time lapse movie from a list of individual frames using mencoder
# first create a list of frames, perhaps by running:
# ls -tr *.JPG > frames.txt
# Now run mencoder to make the move. I adapted the configuration from
# http://blog.hugochinchilla.net/2011/09/time-lapse-videos-mencoder/
# playback at 15 frames per second
mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect:vqscale=3 -vf scale=1920:1440 -mf type=jpeg:fps=15 mf://@frames.txt -o time_lapse.avi
# playback at 30 frames per second
#mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect:vqscale=3 -vf scale=1920:1440 -mf type=jpeg:fps=30 mf://@frames.txt -o time_lapse30.avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment