#!/bin/sh

# This script converts regular AVI into the format needed for the 
# Blackberry Pearl ...

mencoder=/Users/taylor/bin/mencoder

echo -n "input file: "
read input

echo -n "output file: "
read output

echo "Converting $input to $output..."

$mencoder -vf scale=240:135 "$input" -o "$output" -of avi -ofps 15 -ovc \
  lavc -oac lavc -lavcopts vcodec=mpeg4:vbitrate=230:acodec=mp3:abitrate=64

exit 0
