animation/fourcell.sh

24 lines
337 B
Bash
Raw Normal View History

2023-02-25 02:27:08 +00:00
#!/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