I have spent weeks trying to figure out how to convert my .rm and .ram files to mp3. I finally found it by searching for something to encode an mp3 from a wma. This works for wma, RealMedia or any other format that your mplayer is set up to play.
Also so everyone knows I did not come up with this on my own, I found it here and had to make some changes to make it compatible with enhancements in mplayer.
1. open gedit to a blank document (Applications >Accessories>Text Editor)
2. copy this text into it, then save it as wmamp3 (or whatever format you use it for)
current_directory=$( pwd )
for i in *.ram; do mv "$i" `echo $i | tr ' ' '_'`; done
for i in *.ram; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done
#Rip with Mplayer / encode with LAME
for i in *.ram ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && lame -m s audiodump.wav -o $i; done
#convert file names
for i in *.ram; do mv "$i" "`basename "$i" .ram`.mp3"; done
3. For wma use this, or for other formats anywhere you see .wma change it to .rm or .ogg or.mov, use it for anything mplayer can play
4. Open a terminal (Applications>Accessories>Terminal) and make sure you are in the directory the file was saved in
5. make it executable with:
chmod +x wmamp3 (or for other to use it too use a+x for +x)
6. and copy it to your script folder with:
sudo cp wmamp3 /usr/bin/
(you'll want to rename other iterations things like rmmp3, movmp3 and change the line accordingly)
7. Then use it by going to the folder in terminal and typing wmamp3
WARNING!! This will change ALL your files in that folder of the type specified to an mp3 and remove the old files. Create backups of your files first and test it on your system to make sure you have everything configured properly!!
I'm not sure I like the quality of the files made by lame, i may change later to toolame or if anyone knows of a better mp3 encoder I'm all ears for better options. Also, you can use this to convert to ogg, wma or anything you have an encoder for. I hope this helps anyone looking for a quick solution to convert large amounts of files.
On my system it took about 15 seconds to convert each rm file to mp3.