diff options
Diffstat (limited to '320kme-pls')
| -rwxr-xr-x | 320kme-pls | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/320kme-pls b/320kme-pls new file mode 100755 index 0000000..d0450df --- /dev/null +++ b/320kme-pls @@ -0,0 +1,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 |