ubuntu:sound:convert_flac_to_mp3
Ubuntu - Sound - Convert FLAC to MP3
for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done
or
for a in ./*.flac; do ffmpeg -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}"; done
Convert files in all sub-directories
find . -type f -name "*.flac" -print0 | while IFS= read -r -d '' file; do echo "$file"; flac -cd "$file" | lame -b 320 - "${file%.*}".mp3; done
ubuntu/sound/convert_flac_to_mp3.txt · Last modified: 2022/09/19 11:07 by peter