You are not logged in.

#1 2005-07-05 19:48:00

bistrototal
Member
From: Norway
Registered: 2005-05-25
Posts: 59

wma -> wav with mplayer error message

I try to convert some wma files to wav with the following set of commands:

for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i; done

I then get the following error messages:

MPlayer interrupted by signal 11 in module: af_preinit
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.

I run mplayer 1.0pre7-1 and have tried to reinstall but without any success.

I have NO idea what the problem could be....

Offline

#2 2005-07-06 06:32:34

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: wma -> wav with mplayer error message

i'm assuming the wma files play with mplayer normally, otherwise you wouldn't have posted smile

i would try it without -af resample, as the signal is being thrown by af_preinit. just a guess though.

a little hint: you don't need to specify waveheader, it's on by default. and i would highly advise specifying unique filenames for the output, as they'll probably just overwrite each other, and i'm sure you don't want that. (-ao pcm:file=$i.wav)

EDIT: i'm assuming you want to resample because you want to burn the music to cd? anyway, if you can't get mplayer resampling properly, you could try pacman -S libsamplerate, and run sndfile-resample, it works very well. libsamplerate has some options about the quality ... i have a feeling the output would be superior to that of mplayer, especially since it takes so long to process on the highest setting.

Offline

#3 2005-07-06 15:55:21

bistrototal
Member
From: Norway
Registered: 2005-05-25
Posts: 59

Re: wma -> wav with mplayer error message

I'm not quite sure why i wanted to convert them.... big_smile Your suggestions worked perfectly well.

Maybe i'll try out the libsamplerate-stuff in the weekend. (I'm quite unexperienced with sound in linux.)

Thanks!

Offline

Board footer

Powered by FluxBB