#!/bin/bash
set -e
if [ "$1" == "cropit" ]; then
ITS_CROP_TIME="$(
mkdir cropped;
for i in *.mp4; do
ffmpeg -i "$i" -filter:v "crop=1920:980:0:-100" cropped/"${i%.*}.mp4"
done
rm -r ./*.mp4
cd cropped
cp -r ./*.mp4 ../
)"
fi
<