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

KDE Leftovers

  • Qt Creator 4.2.1 released
    We are happy to announce the release of Qt Creator 4.2.1. This is a pure bugfix release, and takes care of various important bugs.
  • KTextEditor depends on KSyntaxHighlighting
    Recently, the KSyntaxHighlighting framework was added to the KDE Frameworks 5.29 release. And starting with KDE Frameworks 5.29, KTextEditor depends on KSyntaxHighlighting. This also means that KTextEditor now queries KSyntaxHighlighting for available xml highlighting files.
  • [Krita] Interview with Adam
    Good day. My name is Adam and I am a 26-year-old person who is trying to learn how to draw…
  • [Krita] We’re doing a User Survey!
    While we’re still working on Vector, Text and Python Scripting, we’ve already decided: This year, we want to spend on stabilizing and polishing Krita!

More of today's howtos

Linux and Graphics

ASUS "Tinker Board"

  • Asus takes on Raspberry Pi with 4K-capable Tinker Board
    Tech giant Asus is taking on the Raspberry Pi with its own DIY-friendly single-board computer that's said to offer 4K video playback and 24-bit audio support in exchange for a hefty £55 price tag.
  • ASUS "Tinker Board" Powered By Rockchip ARM SoC, Supports Debian
    Making its rounds this morning as a "Raspberry Pi competitor" is the Tinker Board from ASUS. The Tinker Board is ASUS' take on an ARM SBC similar to what's already offered by a plethora of vendors. The Tinker Board features a quad-core 1.8GHz ARM Cortex-A17 processor with ARM Mali T764 graphics and there is 2GB of DDR3 memory.