From 9dc258297c819e66572570d0f5b908599cad4139 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sun, 9 May 2021 13:26:35 -0400 Subject: [PATCH] Add a processing movie-maker example for stitching together images generated by Processing into a video with the codec of your choosing. --- processing/movie-maker.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 processing/movie-maker.sh diff --git a/processing/movie-maker.sh b/processing/movie-maker.sh new file mode 100644 index 0000000..71f4f49 --- /dev/null +++ b/processing/movie-maker.sh @@ -0,0 +1,25 @@ +#!/bin/bash -e + +##################################################### +# +# This script will take all of the frames rendered +# by a processing sketch using the "saveFrame()" +# function and sticth them together into a video. +# By default frames save as +# +# Usage: bash processing/movie-maker.sh +# +##################################################### + +INPUT_DIR="${1}" +OUTPUT="${2}" + +FRAMERATE=24 + +ffmpeg \ + -f image2 \ + -i "${INPUT_DIR}/screen-%04d.tif" \ + -r ${FRAMERATE} \ + -c:v prores_ks \ + -profile:v 3 \ + "${OUTPUT}" \ No newline at end of file