#!/bin/bash echo "recompile .ppm frames into a movie file. Input: directory containing frames to be compiled, prefix of filename, size, codec, respectively. Up to 1,000 frames." cd $1 ffmpeg -f image2 -i $2%03d.png -r 30 -s $3 output.$4