Skip to content

Commit

Permalink
might fix recursive search
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Aug 9, 2017
1 parent 1e75310 commit 6277eaa
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6277eaa

Please sign in to comment.