#/bin/bash

LIST=`ls *.avi`

for i in $LIST;
do
	if [ -e $i.mov ]; then
		echo "$i.mov already exists.  Skipping..."
	else
		echo "Converting $i into $i.mov..."
		ffmpeg -vcodec xvid -b 300 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 96 -i "$i" -s 320x240 -aspect 4:3 "$i.mov"
	fi
done;

