Code Monkey home page Code Monkey logo

timelapse's Introduction

Timelapse photography workflow

Steps to build a video file from still shots

  1. rename all picture files in sequence by datetime (if necessary)
  2. resize pictures to video resolution frame (eg 3008x2000 --> 1920x1277[1920x1080])
  3. crop pictures to video resolution (eg 1920x1277 --> 1920x1080)
  4. create list of picture files
  5. build video from files

Methods, tools & commands to make it happen

  1. My camera fills up folders with up to 500 shots, in sequential numbering, reset for each folder.
    In order to get them all in a row, I use a 0-based prefix for each folder.
    So pictures IMG001.JPG, IMG002.JPG, etc from the first folder become 0IMG001.JPG, 0IMG002.JPG, etc.
    YMMV :-) eg. for file in *.JPG; do mv "${file}" "0${file}"; done
  2. mogrify -verbose -resize 1920x1277 *.JPG
  3. mogrify -verbose -crop 1920x1080+0+0 *.JPG
  4. ls *.JPG > jpegs.txt
  5. mencoder is the goto tool for this
    mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 -o timelapse.avi -mf type=jpeg:fps=24 mf://@jpegs.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.