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:
parent
8cc578725f
commit
9dc258297c
|
@ -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}"
|
Loading…
Reference in New Issue