blob: d0450dfa915aae4afa6b0a92bc0f7488f01cc101 (
plain)
1
2
3
4
5
6
7
8
9
10
|
set -e
dir="$1"
ext="$2"
find "${dir}" -type f | while read file; do
if [[ $file =~ .${ext} ]]; then
output="${file%.${ext}}.mp3"
ffmpeg -n -i "${file}" -b:a 320k "${output}"
fi
done
|