3 # Calin-Andrei Burloiu, 2010, calin.burloiu@gmail.com
5 # This script converts an MTS file into an WebM file, which
6 # contains a V8 video stream and and a Vorbis audio stream.
10 echo "Usage: $0 mts-file avi-file resolution"
17 FFMPEG=/usr/bin/ffmpeg
19 if test ! -f "$MTS_FILE"; then
20 echo "Error: No such file $MTS_FILE"
24 $FFMPEG -i "$MTS_FILE" -f ogg -acodec libvorbis -ab 256k -ar 44100 -ac 2 -vcodec libtheora -b 1400k -r 25 -s $RESOLUTION -threads 0 "$AVI_FILE"