diff --git a/trunk/transcode2mp4.sh b/trunk/transcode2mp4.sh
new file mode 100755
index 0000000..c9f29d8
--- /dev/null
+++ b/trunk/transcode2mp4.sh
@@ -0,0 +1,124 @@
+#!/bin/bash
+
+INPUT="$1"
+RESOLUTION="$3"
+SEPARATE="$4"
+TITLES=0
+OPTS_HIGHRES="-e x264 -q 20.0 -r 29.97 --pfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4 -4 -X 1024 --strict-anamorphic -m"
+OPTS_LOWRES="-e x264 -q 20.0 -a 1 -E faac -B 128 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 480 -m -x cabac=0:ref=2:me=umh:bframes=0:subme=6:8x8dct=0:trellis=0"
+OPTS_SOURCE="-e x264 -q 20.0 -a 1,1 -E faac,ac3 -l 576 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0 -f mp4 --detelecine --decomb --strict-anamorphic -m -x b-adapt=2:rc-lookahead=50"
+MODE=""
+HANDBRAKE=HandBrakeCLI
+DIRNAME=`dirname "$INPUT"`
+BASENAME=`basename "$INPUT"`
+OPTS=""
+OUTPUT_DIR="$2"
+OUTPUT_FILE_NAME=""
+
+if [ -z "$INPUT" ]
+then
+ echo "usage $0