1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Scripts/convert-flacs-to-mp3.sh

8 lines
275 B

#!/bin/bash -ex
# Convert FLACs in a directory to MP3 files (V0, but configure it below).
# Requires fdfind and ffmpeg.
fdfind -t f -e flac . "$1" | while read -r flac; do
mp3="${flac/%flac/mp3}"
ffmpeg -i "$flac" -codec:a libmp3lame -q:a 0 "$mp3" && rm "$flac"
done