Thursday, June 21, 2007

Convert Real Media Library to MP3 if you have linux

Linux has a bunch of benefits, but one very powerful benefit is the ability to convert file formats with very powerful software that you can install for free.

If you have linux, and you have access to a library of files in the Real Media format which you'd like to get into MP3 so you can get it on your iPod or MP3 player, then this is the way to do it:

1. go to the folder you are keeping these files in
2. get all ram files from the web library with DownThemAll firefox extension
3. for file in `ls`; do wget `cat $file | tr -d '\015'` ; done
    -  This is how you download the contents of the .ram files you got with DownThemAll which sometimes have the \015 or 0d character at the end of the url which we are taking off with tr -d '\015'
4. for i in `ls *.r[a,m]`; do mplayer $i -ao pcm:file=$i.wav ; done
    -  This converts the files in that directory from rm or ra to .wav files.  If you don't have mplayer installed you will need to install this package first.
5. for i in `ls *.wav`; do lame -f $i $i.mp3 ; done
    -  This converts .wav files to mp3 files.  Again if you don't have lame installed, you will need to use your package manager to install it first.

Of course, those without linux will cry unfair because they cannot do these things.  Get a copy of Ubuntu and burn it to cd and install Ubuntu on an old computer you aren't using now.

Of course, others will ask why someone hasn't made a gui that can do this.  Of course, that is easy to do, but it is just as easy for you to learn how to do the above steps.

If you really want me to make a gui that will do this for your linux computer, it is possible for the right price.

--
Sincerely,
Eric Standlee
http://crusaderx.blogspot.com

Post a Comment

+