Skip to content

Instantly share code, notes, and snippets.

@tomshen
Created May 25, 2017 12:57
Show Gist options
  • Save tomshen/138cbb993ffe64f0cebb166c52a907ea to your computer and use it in GitHub Desktop.
Save tomshen/138cbb993ffe64f0cebb166c52a907ea to your computer and use it in GitHub Desktop.
How to Create a Time-lapse with ffmpeg

How to Create a Time-lapse with ffmpeg

Given a directory containing:

.
├── LRT_00001.jpg
├── LRT_00002.jpg
├── LRT_00003.jpg
├── LRT_00004.jpg
├── LRT_00005.jpg
├── ...

run the following:

ffmpeg -r 23.976 -start_number 00001 -i LRT_%5d.jpg -s 3840×2160 -vcodec libx264 sunset.mp4
          ^ frame rate                                 ^ resolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment