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.
- read a directory of input images
- generate letterboxed 1280x720 JPEG intermediates
- encode intermediates into sexy MPEG4 video
- add your own music and enjoy!
##Dependencies
- node.js
- imagemagick
- FFmpeg
- gm
- Fluent FFmpeg
##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