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

Bill Gates Inadvertently Shows Off Ubuntu on His Facebook Page

Bill Gates is much more involved in philanthropy than Microsoft these days and he's done some great work regarding the eradications of certain diseases and to improve the quality of life in a number of third world countries. He's also inadvertently promoted Ubuntu, which is a Linux system. Read more

Major Release LibreOffice 4.4 Announced

The Document Foundation today announced the latest and "most beautiful" LibreOffice ever. LibreOffice 4.4 is the ninth major release for the project and brings with it lots of design and functionality improvements. Redesigned toolbars, menus, status bars, rulers and new theme selector are among the goodies for users. Michael Meeks said today that this release not only improves the visible features but also the foundations underneath. Read more

Sphinx: An outstanding open source documentation platform

Sphinx is a free, open source project written in Python and, not surprisingly, is really well suited for documenting Python projects. Now, before you harrumph “Meh, I code in which isn’t at all like Python!” be aware that Sphinx supports several other languages (C and C++ support is in development). Read more

today's leftovers