3 # 2010, Calin-Andrei Burloiu, calin.burloiu@gmail.com
5 # This scripts converts all mts files to avi starting from a root directory
6 # recursively. The avi files are placed in the same directory as the
11 echo "usage: $0 root_path"
16 #resolution=960x720 # HD
17 resolution=800x600 # SD
21 for filename in $(find "$root_path" -name '*.mts'); do
22 new_filename=$(dirname "$filename")/$(basename "$filename" .mts)_SD.mp4
24 ./ffmpeg-mts2mp4-custom "$filename" "$new_filename" $resolution 700k