-   Linux - General (
-   -   Converting wma format to mp3 format. (

fakie_flip 09-19-2005 11:22 PM

Converting wma format to mp3 format.
I am using Fedora Release Core 3. I am using K3b as my burning software.
I am unable to use wma format, because it is used in windows. Is there a way i can get my wma formats converted to a mp3 format; so then I can be able to burn the music with my K3B? Also is there a way to burn wma's on K3B?

mickyg 09-20-2005 08:43 AM

Have a look at mplayer, it comes with a program called mencoder which you can use to do all kinds of audio/video encoding/decoding stuff.

I've never tried to do what you're asking but it I wouldn't be suprised if mencoder can do it, have a read of the documentation and see if it will. If you do figure it out it'd be nice if you post the solution here too.

Hope that helps.


Seems this has already been asked and answered here

This also seems to explain in a nice simple way.

gnukish 09-20-2005 10:05 AM

Kaudiocreator in KDE works fine for ripping cds.

fakie_flip 09-20-2005 10:16 AM

I may have to use Windows software to convert the .WMA format files back to MP3 format files because the files are on a NTSF partition that is read only to Linux. Will my sound files lose their quality? I do not have all the cds to rip them again(15-20gb of music). Is there a way to leave them the way they are and burn and play them as .WMA format? Thank you for the help.

heema 09-21-2005 05:47 AM

there is a script in the wiki that works pretty well , it needs mplayer and lame

fakie_flip 09-21-2005 08:19 AM

Does anyone know how to burn WMA as music on Linux?

BlueFireEXE 10-02-2005 08:49 PM

Burning WMA to a CD in Linux
I'm assuming you use Gentoo since that's what your profile says, so here are my directions:

1) Copy all of the songs you intend to burn into a single directory. (Replace 'username' with your username.)

$ cd /home/username/
 $ mkdir burn-this
 $ cd burn-this
 $ cp /path/to/songs/*.wma .

2) Copy this script into a file named 'wma2wav' in your /usr/bin/ directory.

# wma to wav

function wma2wav () {
  if [ ! -f "$1" ]; then
    echo "File $1 not found!"
    wav=`ls "$1" | sed -e 's/.wma/.wav/' | tr -d "*"`
    mplayer -ao pcm "${1%%.[Ww][Mm][Aa]}.wav" "$1" &&
    mv audiodump.wav "$wav" && unset wav &&

# Convert all wma files in directory
if [ $# -eq 1 -a -d "$1" ]; then
  for file in $1/*.[Ww][Mm][Aa]; do
    wma2wav "$file"

# One or more wma files were given
for file in $*; do
  wma2wav "$file"

# Not enough information
if [ $# -lt 1 ]; then
  echo "Usage:        wma2wav myfile.wma"
  echo "        wma2wav /directory/containing/wma/files"
  echo "        wma2wav myfile.wma myfile2.wma myfile3.wma"
  # You have to use quotations for the arguement below.
  # Failure to do so will result in only one file being
  # converted. Namely, the first one it comes across...
  echo '        wma2wav "*.wma"'
  echo "For converting .wma's that have spaces in the"
  echo 'name, use the directory option OR "*.wma"'

# Finished with script


$ chmod +x /usr/bin/wma2wav
 $ wma2wav /home/username/burn-this
 $ ls -lh /home/username/burn-this

Make certain the CD you are burning can handle the total size displayed at the top of the list.

3) Finally use whichever burning method you prefer. I would use this (be sure to change the 'dev=' if you use this):

cdrecord dev=ATA:0,0,0 -audio /home/username/burn-this/*.wav
4) Once finished just remove the 'burn-this' directory and call it good. If you have any issues in the meantime, you'll need to figure them out on your own.

- Blue Fire

All times are GMT -5. The time now is 01:56 PM.