WMA to MP3
I created this script to go through all *.wma files in a directory and convert them to mp3 files and then delete the wma files. I works great for my mp3 play that does not support wma. It takes the wma files and converts them to wav then converts them to mp3. It uses mplayer and lame to do the work.
#!/bin/bash #Rip with Mplayer / encode with LAME for i in *.wma ; do mplayer -ao pcm -vc dummy "$i" && lame --preset 128 audiodump.wav -o \ "`basename "$i" .wma`.mp3"; done; rm -f audiodump.wav #Delete audiodump.wav rm audiodump.wav
One Reply to “WMA to MP3 on Linux”
a couple things here. you may first want to run
sudo apt-get install mplayer2
sudo apt-get install lame
as these are necessary for the script to run. once those are installed this works perfectly.