#! /bin/sh
if [ -z "$1" ]; then
- echo "Usage: $0 input.avi"
+ echo "Usage: $0 input1 [input2...]"
exit 1
fi
-exec ffmpeg -i "$1" -vf cropdetect -an -f rawvideo -y /dev/null
+if [ $# -eq 1 ]; then
+ input="$1"
+else
+ input=concat:"`echo \"$@\" | sed 's/ /|/g'`"
+fi
+
+exec ffmpeg -i "$input" -vf cropdetect -an -f rawvideo -y /dev/null