Giter VIP home page Giter VIP logo

lapse's Introduction

Lapse

Convert still photos from a GoPro camera into a video file. This is useful for stop motion or time lapse photography.

This script works with the filenames produced by a GoPro camera, which look like this:

G0010076.JPG
G0010077.JPG
G0010078.JPG

If your photos use a different naming scheme, you'll have to edit that line in the script to make it work.

Invoke the script by giving it the source and target directories. For example, I might type this:

lapse /Volumes/SD64A/DCIM ~/Movies/Lapse

...where the name of my SD card is "SD64A" (it's 64 GB, and I have two of them), and I keep my time lapses in a directory called "Lapse".

The script combines each subdirectory of DCIM into one video file, then concatenates them into one huge file.

You will need a bunch of free storage to do this. The resulting video files are about 2/3 the size of the still photos. If you have 64 GB of 5 megapixel stills, you will need perhaps 90 GB for the video files. (You can delete half of this once the script has finished running.)

That's not even at the highest quality level, which you can adjust. You can choose a value from 0-3 inclusive. The default is 2. You can adjust it like so:

lapse /Volumes/SD64A/DCIM ~/Movies/Lapse 3

The bigger the number, the bigger the video's file size, and the higher the quality. The final output is a ProRes video file. Converting to H.264 (or whatever you're into) requires further processing.

I then import the resulting video file into iMovie or Final Cut Pro. The entire purpose of this script is to replace GoPro Cineform Studio with a shell command, at least for this one task.

Compatibility

Debian and Ubuntu (among others) ship with a fork of FFMPEG called Libav. You will need to either install FFMPEG, or use avconv (and therefore a modified or entirely different wrapper script) instead.

Installation on Mac OS X

This script uses FFMPEG to do the heavy lifting. To install FFMPEG on Mac OS X with Homebrew, enter this in the Terminal app:

brew install ffmpeg --devel

The "--devel" flag gets you the latest version, which is faster. More info here: https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX

Legal

All trademarks (such as GoPro, Cineform Studio, iMovie, and Final Cut Pro) belong to their respective owners.

lapse's People

Contributors

lethor avatar

Watchers

 avatar

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.