summaryrefslogtreecommitdiff
path: root/graphics/make_movie.sh
blob: 8ff0877767a9a7c613802b25a0fd0e4c044cd112 (plain)
1
2
3
4
5
6
7
8
9
10
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