#!/bin/sh
if [ -z "$1" ]; then
  echo "Usage: $0  list_of_video_files"
  exit 1
fi


while [ "$1" ]; do
FFMPEG_OPTS="-f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3"
ffmpeg -i "$1" $FFMPEG_OPTS "`basename $1 .avi`.mp4"
shift
done
