LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-09-2004, 11:35 AM   #1
lub0
Member
 
Registered: Aug 2003
Location: Glasgow Scotland
Posts: 92

Rep: Reputation: 15
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
 
Old 01-09-2004, 11:44 AM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
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

Last edited by Mega Man X; 01-09-2004 at 04:43 PM.
 
Old 01-09-2004, 11:45 AM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
google came up with nothing ?
look at the first result?
and yes mplayer will run it
 
Old 01-09-2004, 11:46 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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).
 
Old 01-09-2004, 04:18 PM   #5
lub0
Member
 
Registered: Aug 2003
Location: Glasgow Scotland
Posts: 92

Original Poster
Rep: Reputation: 15
Talking Doh!

Thanks people, Trouble is I dont have it installed 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!

Last edited by lub0; 01-09-2004 at 04:21 PM.
 
Old 01-31-2004, 01:57 PM   #6
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
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.
 
Old 01-31-2004, 03:56 PM   #7
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
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

Last edited by lokee; 01-31-2004 at 04:00 PM.
 
Old 02-01-2004, 12:06 AM   #8
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
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.
 
Old 02-01-2004, 10:43 AM   #9
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
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";
}
 
Old 04-14-2006, 03:23 AM   #10
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 80
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.
 
Old 08-20-2006, 04:27 AM   #11
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
playing drm protected wma files in linux ZaphyR Linux - General 33 12-27-2008 11:27 AM
Playing wma files ... Anmol Suse/Novell 1 09-11-2005 05:56 PM
Playing Windows media player files(WMA) in Linux akiko_f Linux - Newbie 4 06-21-2005 03:26 AM
Playing WMA-files thort Linux - Newbie 4 08-22-2004 03:09 AM
mplayer playing RA and WMA files from the Web azebuski Linux - Software 1 02-16-2004 01:55 AM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration