Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@msiebuhr
Last active December 16, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msiebuhr/5370575 to your computer and use it in GitHub Desktop.
Save msiebuhr/5370575 to your computer and use it in GitHub Desktop.
Creating timelapse movies using Mencoder
# Encoding of a vertical video (Vertical-video-syndrome; i know)
#
# http://www.flickr.com/photos/msiebuhr/3406602054/
timelapse-vertical.avi:
mencoder \
"mf://*.JPG" \
-mf fps=25 \
-vf scale=1200:800,crop=900:700:0:50,rotate=1 \
-o $@ \
-of lavf \
-ovc lavc \
-lavcopts vcodec=mjpeg \
-lavfopts format=avi
# Produce a 720p widescreen movie by cropping the source material.
# Play with the `-vf`-parameters to crop/scale differently.
timelapse-720p.avi:
mencoder \
mf://*JPG \
-mf fps=25 \
-vf scale=1400:1050,crop=1280:720:0:50 \
-o $@ \
-of lavf \
-ovc lavc \
-lavcopts vcodec=mjpeg \
-lavfopts format=avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment