Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Created August 8, 2013 19:13
Show Gist options
  • Save dmerrick/6187734 to your computer and use it in GitHub Desktop.
Save dmerrick/6187734 to your computer and use it in GitHub Desktop.
#!/bin/bash
# take a directory of images and combine them into a movie
# create an editable list of frames for the movie
ls -1v | grep JPG > files.txt
# 1080p at 24 fps
mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=21600000 -o timelapse.1080p.24fps.avi -mf type=jpeg:fps=24 mf://@files.txt -vf scale=1920:1080
# 4K at 60 fps
#mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=21600000 -o timelapse.4K.60fps.avi -mf type=jpeg:fps=60 mf://@files.txt -vf scale=3840:2160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment