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:

Print chess board in command line

The following bash one-liner will print a chess board in a terminal (the script works for the shells bash and ksh only) for (( i = 1; i ...