From bd2b2541a7b00a2520ea5a3eabcb90a0bbb35b28 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 1 Nov 2021 19:41:57 +0100 Subject: add pervasive aurora mb bad apple (not really working yet) --- src/app/pervasive-aurora-mb-bad-apple/convert | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 src/app/pervasive-aurora-mb-bad-apple/convert (limited to 'src/app/pervasive-aurora-mb-bad-apple/convert') diff --git a/src/app/pervasive-aurora-mb-bad-apple/convert b/src/app/pervasive-aurora-mb-bad-apple/convert new file mode 100755 index 0000000..10dec48 --- /dev/null +++ b/src/app/pervasive-aurora-mb-bad-apple/convert @@ -0,0 +1,16 @@ +#!/bin/sh + +# ./convert.sh -r [additional ffmpeg args] + +set -eu + +mkdir -p tmp + +ffmpeg -i "$@" tmp/frame%4d.png + +parallel mogrify -resize 160x160 -threshold 50% -- tmp/*.png + +echo "const unsigned char frame_rate = $3;" > frames.cc +./frames-to-cc tmp/*.png >> frames.cc + +rm -rf tmp -- cgit v1.2.3