diff options
| author | Steph Enders <steph@senders.io> | 2025-12-03 12:13:34 -0500 |
|---|---|---|
| committer | Steph Enders <steph@senders.io> | 2025-12-03 12:16:34 -0500 |
| commit | 85d095ac1c798292bbed74a7a13067c1e8302138 (patch) | |
| tree | b37830b46162fff27d266696b4dd166142d4ebf5 /320kme-pls | |
| parent | 87e8de41e1c1f0b44da9dac2059a8d74c8922f92 (diff) | |
Add utility for converting dir to 320kbps mp3smain
Basically a copy of fflacify-dir but for mp3s
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 |