Friday, March 26, 2010

Realmedia (rm) to mp3 conversion in Linux

mplayer file.rm -ao pcm:file=file.wav

lame -f file.wav file.mp3

I wrote a quick script to convert rm to mp3 and copied it to /usr/local/bin
so that it can be run from any directory.
Here's the commands to do that.

$ vim rmtpmp3

mplayer $1 -ao pcm:file=temp.wav
lame -f temp.wav $1.mp3
rename 's/\.rm\.mp3/\.mp3/' *.rm.mp3
rm temp.wav


$ chmod 755 rmtomp3
$ su
$ cp rmtomp3 /usr/local/bin

No comments:

OK GOOGLE on Samsung Galaxy S7 doesn’t work

To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...