Skip to content

Instantly share code, notes, and snippets.

View djaney's full-sized avatar

Djane Rey Mabelin djaney

  • Arcanys, Inc.
  • Philippines
View GitHub Profile
@djaney
djaney / timelapse.md
Created September 19, 2017 07:47 — forked from porjo/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality