Last active
December 16, 2015 03:29
-
-
Save msiebuhr/5370575 to your computer and use it in GitHub Desktop.
Creating timelapse movies using Mencoder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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