Placeholder for fourcell script

This commit is contained in:
Matt McWilliams 2023-02-24 21:27:08 -05:00
parent 35b9deb07e
commit 6689e6af45
1 changed files with 23 additions and 0 deletions

23
fourcell.sh Normal file
View File

@ -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