This page looks best with JavaScript enabled

Convert flac to mp3

 ·  ☕ 1 min read

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.

Flac wikipedia

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

Lame usage