Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some CDs that I want to convert to FLAC. Banshee can't find their metadata, but Windows Media Player can.

I figured there are two workarounds:

  • Rip all CDs using Windows Media Player WMA-lossless, and batch-convert to FLAC with metadata.
  • Tweak Banshee to connect to Windows Media Player metadata sources

Any ideas how to do it? I'm preferably looking for a command-line method.

share|improve this question
up vote 4 down vote accepted

To convert WMA to FLAC, you could try soundconverter, a graphical application, but it allows to add multiple files and directories. It keeps the metadata if the output format supports it. To install it enter into your terminal this: sudo apt-get install soundconverter

share|improve this answer

I've used avconv with great success. It's a command-line utility and has a vast number of options.

The avconv utility is provided by the libav-tools Install libav-tools package (starting in Ubuntu 12.04). To install that, click that link or run:

sudo apt-get update && sudo apt-get install libav-tools

I needed only the most basic conversion of WMA to FLAC (the same as you're asking for). To do that with avconv

avconv -i <input-filename.wma> <output-filename.flac>

For more information, see man avconv.

To convert all WMA files inside a directory, you can use the following script:

for file in *.wma; do avconv -i "${file}" "${file%%.wma}.flac"; done
share|improve this answer

protected by Community Mar 24 '15 at 7:01

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.