Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created May 4, 2013 17:06
Show Gist options
  • Select an option

  • Save makevoid/5518095 to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/5518095 to your computer and use it in GitHub Desktop.
Time lapse tools
# run ruby lapse_rename.rb
# then:
# avconv -f image2 -i lapse_%04d.jpg -s hd1080 -threads 8 out.mp4
files = Dir.glob("*.JPG")
files.sort.each_with_index do |file, idx|
idx += 1
idx = idx.to_s.rjust 4, "0"
`mv #{file} lapse_#{idx}.jpg`
end
@makevoid

makevoid commented Jun 3, 2014

Copy link
Copy Markdown
Author

avconv is part of libav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment