LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-26-2004, 10:59 PM   #1
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Rep: Reputation: 30
problem converting wma to wav file


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]

Exiting... (End of file)
 
Old 07-29-2004, 06:46 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
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.

Hope this helps.
 
Old 07-29-2004, 12:25 PM   #3
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

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

thanks
 
Old 04-07-2005, 04:19 PM   #4
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
end of file problem...

I am trying to convert from wma to wav too... this is my message;

root@eyelet mp3]# mplayer 08_Dang_Cay.wma -ao pcm -aofile aaaaaaaa.wav
MPlayer 1.0pre6-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.


77 audio & 188 video codecs
Playing 08_Dang_Cay.wma.
ASF file format detected.
Clip info:
name: Dang Cay
author: Luu Bich
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16002->176400 (128.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
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)
[AO PCM] File: aaaaaaaa.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
[AO PCM] Info: fastest dumping is achieved with -vc dummy -vo null
PCM: Info: to write WAVE files use -waveheader (default).
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: -0.0 (00.0) ??,?%

Exiting... (End of file)
 
Old 04-07-2005, 04:33 PM   #5
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
Use this code:
Code:
#!/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

Last edited by Hammett; 04-07-2005 at 04:34 PM.
 
Old 04-07-2005, 07:35 PM   #6
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
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?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting an RA file to a WAV or an MP3 one hhegab Linux - Software 2 04-26-2005 05:55 AM
Is there any .wav to .wma convertor for linux? soup21 Linux - General 1 02-12-2005 08:56 AM
Is there any .wav to .wma convertor for linux? soup21 Linux - Software 1 02-12-2005 07:08 AM
WMA to WAV convertor? KiLLaWaBBiT Linux - Software 1 09-09-2004 04:47 AM
converting wma to mp3 rolanaj Linux - Software 2 08-16-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration