#! /bin/sh if [ -z "$1" ]; then echo "Usage: $0 input.avi..." exit 1 fi exec mplayer -vf cropdetect -vo null -nosound "$@"