User Tools

Site Tools


ubuntu:sound:convert_flac_to_mp3

This is an old revision of the document!


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 subdirectories

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.1654786475.txt.gz · Last modified: 2022/06/09 14:54 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki