WTF - What the Flac!
A file with the FLAC
file extension is a Free Lossless Audio Codec file, an
open source audio lossless compression format. Lossless compression is a class
of data compression algorithms that allows the original data to be perfectly
reconstructed from the compressed data.
Install required packages
sudo apt-get install lame
sudo apt-get install flac
Cli command in bash
This command will convert all files in the current directory to mp3, creating
new files with the same extensions.
It encode the files using a fixed bitrate jstereo 320 kbps encoding.
Lowering this value will decreare audio quality and file size.
for f in *.flac; do flac -cd "$f" | \
lame -b 320 - "${f%.*}".mp3; done