Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I downloaded from wal-mart.com some wma songs thinking they were going to be mp3 files, I tried to put them on my shared windows computer to convert them, but they only work on the computer downloaded to. So I tried this mplayer line that I found. I noticed some errors here, but it seems that it just uses default. Can you see anything that might help me. Wehn I go to play the wav file that is created it is 1 second long, which is probably why at the end of this it says 2.3%. Any help?
thanks
[root@mylinuxpc graceland]# mplayer Paul_Simon-1-Graceland.wma -ao pcm -aofile boy_in_a_bubble.wav
MPlayer 0.92.1-3.2.2 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No
such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or
directory
Falling back on default (hardcoded) input config
Playing Paul_Simon-1-Graceland.wma
ASF file format detected.
Clip info:
name: The Boy In The Bubble - Paul Simon
author: Paul Simon
copyright: (p)1986 Paul Simon & (c)1986 Warner Bros. Records, Inc. for the U.S. & WEA International, Inc. for the world outside of the U.S.
comments:
==========================================================================
Opening audio decoder: [dmo] Win32/DMO decoders
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 16002
Block align: 5945
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [90] [0] [0] [f] [0] [39] [17] [0] [0]
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 44100
avg byte/sec: 176400
Block align: 4
bits/sample: 16
cbSize: 0
External func OLEAUT32.dll:7
External func OLEAUT32.dll:8
GetOutput r=0x0 size:16384 align:1
StreamCount r=0x0 1 1
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16002->176400 (128.0 kbit)
Selected audio codec: [wmadmo] afm:dmo (Windows Media Audio DMO)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
PCM: File: boy_in_a_bubble.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
PCM: Info: fastest dumping is achieved with -vc dummy -vo null
PCM: Info: to write WAVE files use -waveheader (default); for RAW PCM -nowaveheader.
AO: [pcm] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Video: no video
Starting playback...
A: 1.8 2.3% 0%
Total Unfree 0 bytes cnt 0 [(nil),0]
Do you not have the Windows codecs for mplayer installed? As far as I know, those codecs should allow mplayer to play .wma files (unless, apparently, they were encoded with WMA 9, but even that may not be true anymore).
Check www.mplayerhq.hu for the codecs if you don't have them; you may have to reinstall mplayer to use them, though.
Unfortunately I do have them installed, but as you can see it can't find codecs.conf, but i moved the one that was in the mplayer folder to the place it is looking, but that didn't help.
A question I have is, if I download music that I have purchased and play it for the first time on a windows box, it says "aquiring license" and then everything is fine, but just for that computer. How does linux handle this process? Because once I got these songs on a windows box and got the licenses everything was cool on that box and I then burned it to a cd.
#!/bin/bash
current_directory=$( pwd )
for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done
for i in *.[Ww][Mm][Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -waveheader $i && lame -m s audiodump.wav -o $i; done
for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done
rm audiodump.wav
Works perfectly on me. Note that yuo'll need mplayer and lame for it to work
I found out my problem... the file was protected... i rebooto to rwindows and managed to listen to it after i downloaded a license for it. I think this renders the file useless unless your code can break the protection. Can it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.