Language Selection

English French German Italian Portuguese Spanish

Solution: Converting flac to mp3

Filed under
HowTos

Sometimes you need to convert a load of flac files to mp3's, for example when wanting to listen them on your mp3 player. This solution contains a single line of bash that'll convert all flac files in the current directory to mp3's, keeping the flac files.

Note that you will need flac and lame for this to work. Run the following line in the directory where the flac files are:

[rechosen@localhost ~]$ for file in *.flac; do $(flac -cd "$file" | lame -h - "${file%.flac}.mp3"); done

This will output the mp3 files in the same directory as the flac files. If any of the mp3 files that's being created already exists, it will be overwritten. When the conversion has finished, you can copy the mp3 files to an other location like this:

Full Story.

More in Tux Machines

Android and Google Leftovers

Today in Techrights

Linux Lite 3.2 Users Get New Versions of Lite Software and Tweaks, Update Now

Jerry Bezencon, the creator of the Ubuntu-based Linux Lite operating system for personal computers, kindly informs Softpedia today about an updated version of the in-house built Lite Software app. Read more

openSUSE Leap 42.2 Linux Now Officially Available as 64-bit Raspberry Pi 3 Image

openSUSE Project, through Douglas DeMaio, proudly informs Softpedia via an email announcement about the general availability of a 64-bit Raspberry Pi 3 image of the openSUSE Leap 42.2 operating system. Read more