diff options
Diffstat (limited to 'fflacify-dir')
| -rwxr-xr-x | fflacify-dir | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fflacify-dir b/fflacify-dir new file mode 100755 index 0000000..2875098 --- /dev/null +++ b/fflacify-dir @@ -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}}.flac" + ffmpeg -n -i "${file}" "${output}" + fi +done |