/photosmash

A node.js script that makes a video out of a directory of photos - sorta like pummelvision.com

Primary LanguageJavaScript

Photo Smash

A node.js script that will assemble a directory of images into a video of fast-moving images, like pummelvision.com by @jakelodwick.

Inspired by the Ghettovision script by @jamiew.

  1. read a directory of input images
  2. generate letterboxed 1280x720 JPEG intermediates
  3. encode intermediates into sexy MPEG4 video
  4. add your own music and enjoy!

##Dependencies

##Setup There's a fair few bits and bobs to install to get this badboy up and running:

###Windows

  • Download and install ImageMagick (Image processing)
  • Download and install FFmpeg (Video generation)
  • Download and install the x264 encoder (Encoding)

###OSX

  • Install homebrew
  • Install imagemagick brew install imagemagick
  • Install ffmpeg brew install ffmpeg

###Both

  • Download and install node.js - (Glue)

Then we're onto the fun stuff:

To install all the NPM dependencies, run: npm install

##Usage

Add some images to the in folder - Open up your terminal (or command prompt) and navigate to the folder that contains smash.js

Once there, set it off:

node smash

You should find your finished video in the out folder.

##Settings The settings are geared towards high quality, you will end up with quite weighty videos if you don't tweak the settings.

You'll find the api documentation for gm here and Fluent FFmpeg here.

##Todo

  • Check in, out, temp folders exist. Throw errors if not
  • Read in music file

##License

This source code released under an MIT license