#! /bin/sh if [ -z "$1" ]; then echo "Usage: $0 input1 [input2...]" exit 1 fi 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