#! /bin/sh if [ -z "$1" ]; then echo "Usage: $0 input.avi" exit 1 fi exec ffmpeg -i "$1" -vf cropdetect -an -f rawvideo -y /dev/null