Discussion:
Command Line RM to mp3 converter?
(too old to reply)
x0054
2006-04-24 03:48:46 UTC
Permalink
Hey all,

I am looking for a CLI converter that would be able to convert RM audio
files into mp3 audio files. Any ideas. I looked around, but all I found is
the Linux copy of real player to play the files, but I can not find
something to convert from RM to MP3.

Thanks for any ideas,

- Bogdan
Chris Elvidge
2006-05-07 13:28:09 UTC
Permalink
Post by x0054
Hey all,
I am looking for a CLI converter that would be able to convert RM audio
files into mp3 audio files. Any ideas. I looked around, but all I found is
the Linux copy of real player to play the files, but I can not find
something to convert from RM to MP3.
Try mplayer with -ao pcm:waveheader then lame on the output file (or
pipe o/p to lame)
--
Chris Elvidge
chris at lowe dot ae
x0054
2006-05-20 02:33:53 UTC
Permalink
Post by Chris Elvidge
Post by x0054
Hey all,
I am looking for a CLI converter that would be able to convert RM
audio files into mp3 audio files. Any ideas. I looked around, but all
I found is the Linux copy of real player to play the files, but I can
not find something to convert from RM to MP3.
Try mplayer with -ao pcm:waveheader then lame on the output file (or
pipe o/p to lame)
Thank you. That so simple I feel stupid I did not think of it my self!
Quick question, you suggested to pipe the commands. I am a bit lost on how
to do that. It works when I create the wav file and then turn it to mp3,
but when I try to pipe (as to avoid the large wav file) it does not work
:(

Here is the command I used:

mplayer -ao pcm:waveheader input.rm | lame -b 16 -m m - output.mp3

Can you give me a hint on how to fix it?

Thank you,

- Bogdan
x0054
2006-05-20 03:54:17 UTC
Permalink
Post by x0054
Post by Chris Elvidge
Post by x0054
Hey all,
I am looking for a CLI converter that would be able to convert RM
audio files into mp3 audio files. Any ideas. I looked around, but
all I found is the Linux copy of real player to play the files, but
I can not find something to convert from RM to MP3.
Try mplayer with -ao pcm:waveheader then lame on the output file (or
pipe o/p to lame)
Thank you. That so simple I feel stupid I did not think of it my self!
Quick question, you suggested to pipe the commands. I am a bit lost on
how to do that. It works when I create the wav file and then turn it
to mp3, but when I try to pipe (as to avoid the large wav file) it
does not work
:(
mplayer -ao pcm:waveheader input.rm | lame -b 16 -m m - output.mp3
Can you give me a hint on how to fix it?
Thank you,
- Bogdan
Ahh, actually, excuse my ignorant post. Here is the answer, actually.
Just took a bit a thinking :)

#! /bin/bash

mkfifo $1.fifo
lame -b 16 -m m $1.fifo $1.mp3 &
/usr/bin/mplayer -ao pcm:file=$1.fifo $1
rm $1.fifo

- Bogdan
Michael B. Trausch
2006-05-20 15:07:35 UTC
Permalink
Post by x0054
Ahh, actually, excuse my ignorant post. Here is the answer, actually.
Just took a bit a thinking :)
#! /bin/bash
mkfifo $1.fifo
lame -b 16 -m m $1.fifo $1.mp3 &
/usr/bin/mplayer -ao pcm:file=$1.fifo $1
rm $1.fifo
- Bogdan
That's actually quite interesting. I've been using Linux for a quite a long
time now, and I've never run across the 'mkfifo' command. Read the man
page for it and I think that's quite interesting... I can certainly see how
such a mechanism would be helpful. That's pretty cool.

I can't think of *that* many uses for it, but still, that's pretty awesome.

- Mike

Continue reading on narkive:
Loading...