From 85d095ac1c798292bbed74a7a13067c1e8302138 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Wed, 3 Dec 2025 12:13:34 -0500 Subject: Add utility for converting dir to 320kbps mp3s Basically a copy of fflacify-dir but for mp3s --- 320kme-pls | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 320kme-pls (limited to '320kme-pls') 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 -- cgit v1.2.3-54-g00ecf