LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   playing .wma files in Linux (https://www.linuxquestions.org/questions/linux-software-2/playing-wma-files-in-linux-133097/)

lub0 01-09-2004 11:35 AM

playing .wma files in Linux
 
Hi All,

I recently copied some cd's to my computer in windows ( xp ) using media player. Now the problem is, apart from the fact I had to burn them onto disk and not just drag them over in Linux, NTFS apparently is unreadable in Linux ?. The problem is some are in mp3 format and some .wma ( which I guess stand for windows media ? ) is there anyway I can play this format in Linux. I done a Google on it but came back with nout!

Many thanks in advance.


lub0

Mega Man X 01-09-2004 11:44 AM

Doesn't mplayer play it?

EDIT: yes it does. I've just tested it and it did, played .wma. Make sure to have the right codecs and you will be fine ;)

DrOzz 01-09-2004 11:45 AM

google came up with nothing ?
look at the first result?
and yes mplayer will run it

jtshaw 01-09-2004 11:46 AM

I am pretty sure mplayer or xmms and maybe even both can handle this. If you simply want to read an NTFS drive you can enable reading it in the kernel configuration under file systems. There is no write support for NTFS drives in linux however (at least not any that isn't extremely dangerous).

lub0 01-09-2004 04:18 PM

Doh!
 
Thanks people, Trouble is I dont have it installed :rolleyes: I'll download it and give it a try.

Again Thx


lub0

ps. DrOzz your right I was searching with my eyes shut. I use xmms ( usually ) and it was not wearing it. I must have went for a coffee when it was time to look at the monitor. Doh!

rmanocha 01-31-2004 01:57 PM

hey guys,
was just wondering if there is an mp3 encoder/decoder to convert wma to mp3?i like using xmms but apparently it doesnt play wma files so i have to use mplayer everytime i want to listen to wmas?
plz help.

lokee 01-31-2004 03:56 PM

Just use this program:

Code:

#!/bin/bash
if [ ! "$1" ]
then
        echo "File doesn't exist!"
        exit
fi
mplayer -ao pcm "$1"
lame audiodump.wav "${1/.wma/.mp3}"
rm audiodump.wav
rm "$1"

Usage: 'wma2mp3 *wma'

Description:converts wma files to mp3

rmanocha 02-01-2004 12:06 AM

thanks for the script it works gr8 except for one thing...i have to list the files individually...for each and every wma..i tried wma2mp3 *.wma which did not work...it just converted the first wma file and exited...and then i did
ll | wma2mp3
and that exited with File doesn't exist.
could u tell me how to do this since i have a lonog list of wma files.
thanks a lot for the script.

lokee 02-01-2004 10:43 AM

Use this one instead then.

Code:

#!/usr/bin/perl -w
use strict;

foreach my $file (@ARGV) {
next if ($file !~ /\.wma$/i);
my $base = $file; $base =~ s/\.wma$//i;
system "mplayer \"$file\" -ao pcm -aofile \"$base.wav\"";
system "lame -h \"$base.wav\" \"$base.mp3\"";
unlink("$base.wav");
print "$base.wma converted to mp3.\n";
}


fakie_flip 04-14-2006 03:23 AM

I have some wma music files that will not play by mplayer or xine. I have been told they are encrypted with DMR. How can I play these? Converting them to mp3 using audacity did not work.

fakie_flip 08-20-2006 04:27 AM

Well I just fixed that problem. I used rm to remove 14 gigabytes of the proprietary windows garbage.


All times are GMT -5. The time now is 11:57 PM.