summaryrefslogtreecommitdiff
path: root/graphics/make_movie.sh
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2021-12-04 13:34:49 -0700
committerSimponic <loganhunt@simponic.xyz>2021-12-04 13:34:49 -0700
commitaa1d7c6e284cc0818325614391619f3ff13d3e94 (patch)
tree8a59a6b3e5aacb7f682756d3c7751f1d72e1d940 /graphics/make_movie.sh
downloadgol-aa1d7c6e284cc0818325614391619f3ff13d3e94.tar.gz
gol-aa1d7c6e284cc0818325614391619f3ff13d3e94.zip
Initial commit
Diffstat (limited to 'graphics/make_movie.sh')
-rwxr-xr-xgraphics/make_movie.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/make_movie.sh b/graphics/make_movie.sh
new file mode 100755
index 0000000..8ff0877
--- /dev/null
+++ b/graphics/make_movie.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ $# == 5 ]; then
+ for x in $(find $1 -type f -name "*.bin"); do
+ ./convert_bin_to_img $x $2 $3
+ done
+ ffmpeg -r $4 -f image2 -s "${2}x${3}" -i "${1}/iteration-%07d.bin.bmp" -vcodec libx264 -crf 25 -pix_fmt yuv420p "${5}.mp4"
+else
+ echo "Usage: ./make_movie.sh <directory> <width> <height> <fps> <output_video_name>"
+fi
+