--- /dev/null
+#!/bin/bash
+#
+# 2010, Calin-Andrei Burloiu, calin.burloiu@gmail.com
+#
+# This scripts converts all mts files to avi starting from a root directory
+# recursively. The avi files are placed in the same directory as the
+# original mts files.
+#
+
+if [ $# -ne 1 ]; then
+ echo "usage: $0 root_path"
+fi
+
+root_path=$1
+
+#for i in $(find $root_path -name "*.srt"); do
+
+#done
exit 1
fi
-# TODO: Establish the appropriate bitrates.
-ffmpeg -i $MTS_FILE -f avi -acodec libmp3lame -ab 256k -ar 44100 -ac 2 -vcodec libx264 -vpre normal -b 1400k -r 30 -threads 0 $AVI_FILE
+ffmpeg -i "$MTS_FILE" -f avi -acodec libmp3lame -ab 256k -ar 44100 -ac 2 -vcodec libx264 -vpre normal -b 1400k -r 30 -threads 0 "$AVI_FILE"