Add a processing movie-maker example for stitching together images generated by Processing into a video with the codec of your choosing.

This commit is contained in:
Matt McWilliams 2021-05-09 13:26:35 -04:00
parent 8cc578725f
commit 9dc258297c
1 changed files with 25 additions and 0 deletions

25
processing/movie-maker.sh Normal file
View File

@ -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> <output video>
#
#####################################################
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}"