rm/ra to mp3
Henk Postma
henkpm at gmail.com
Tue Oct 16 18:35:01 UTC 2007
On 10/16/07, Andy <stude.list at googlemail.com> wrote:
> On 15/10/2007, OOzy Pal <oozypal at gmail.com> wrote:
> > Is there any utility that convert from real player audio (rm/ra) to mp3?
[snip!]
> Alternatively you could have mPlayer convert to WAV and then you can
> encode to MP3 your self. (or more likely write a quick script to do
> it). Can't remember the commands to do this right now.
This bash script should to the trick: call with two arguments, 1) the
input file, 2) the output file. Needs lame and mplayer
#!/bin/bash
fifo=/tmp/`echo $1 $2 | md5sum | awk '{print $1}'`
mkfifo "$fifo"
mplayer "$1" -ao pcm:file="$fifo" -vo null -vc dummy &
lame -S "$fifo" "$2"
rm "$fifo"
--
http://www.csun.edu/~hpostma/
More information about the ubuntu-users
mailing list