diff --git a/fourcell.sh b/fourcell.sh new file mode 100644 index 0000000..7c53f4a --- /dev/null +++ b/fourcell.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +if [[ "${1}" == "" ]]; then + echo "Please provide a calibration JSON" +fi + +if [[ "${2}" == "" ]]; then + echo "Please provide one video or directory of images" + exit 2 +fi + + +if [ -f "${1}" ]; then + OUTPUT=$(mktemp -d) + ffmpeg -y -re -i "${1}" \ + -q:v 1 -qmin 1 -qmax 1 \ + "${OUTPUT}/frame_%06d.tif" +else + OUTPUT="${1}" +fi + + +