#!/bin/bash if [ "$#" -ne 1 ]; then echo "USAGE: $0 FILE" exit 1 fi fullpath="$1" dir=`dirname "$fullpath"` filename=`basename "$fullpath"` filename="${filename%.*}" outfile="$dir/$filename""Shrunk.mp4" echo "$outfile" ffmpeg -y -i "$fullpath" -s ega "$outfile"