diff --git a/convert.sh b/convert.sh index f3801e2..090047e 100755 --- a/convert.sh +++ b/convert.sh @@ -2,9 +2,15 @@ trap 'exit 2' TERM INT -for f in **/*.{avi,ogg,wmv}; do +for f in /media/**/*.{avi,ogm,wmv}; do printf '\033[1;34;40m' echo "Converting $f" - printf '\033[0m' + printf '\033[0m' avconv -i "$f" -strict experimental -c:v libx264 "${f%.avi}.mp4" && rm "$f" -done +done +for f in /media/*.{avi,ogm,wmv}; do + printf '\033[1;34;40m' + echo "Converting $f" + printf '\033[0m' + avconv -i "$f" -strict experimental -c:v libx264 "${f%.avi}.mp4" && rm "$f" +done