new scripts and updates
[video-handling.git] / ffmpeg-all-mts2avi
index ff10130..cacebf4 100755 (executable)
@@ -11,10 +11,10 @@ if [ $# -ne 1 ]; then
        echo "usage: $0 root_path"
 fi
 
-root_path=$1
+root_path="$1"
 
-for i in $(find $root_path -name "*.mts"); do
+for i in $(find "$root_path" -name "*.mts"); do
        #echo $(dirname $i)/$(basename $i .mts).avi
-       ./ffmpeg-mts2avi $i "$(dirname $i)/$(basename $i .mts).avi"
+       ./ffmpeg-mts2avi "$i" "$(dirname $i)/$(basename $i .mts).avi"
 
 done