realaudio to mp3/wav conversion utility in FreeBSD ?

2004-05-07 Thread Joe Schmoe
I already have a good method for saving realaudio
streams to local files.  No discussion of this is
necessary.

So now I have locally saved realaudio files, and I
would like to convert them to mp3 (or at least to wav,
and then to mp3).  There is some lame GUI tool in
windows to do this, but of course I would like a CLI
tool in FreeBSD.

Does such a tool exist ?

thanks.




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: realaudio to mp3/wav conversion utility in FreeBSD ?

2004-05-07 Thread Simon Barner
Joe Schmoe wrote:
 I already have a good method for saving realaudio
 streams to local files.  No discussion of this is
 necessary.
 
 So now I have locally saved realaudio files, and I
 would like to convert them to mp3 (or at least to wav,
 and then to mp3).  There is some lame GUI tool in
 windows to do this, but of course I would like a CLI
 tool in FreeBSD.
 
 Does such a tool exist ?

Yes, it does: Mplayer!

Install the mplayer port with support for realaudio. The following will
convert a ra stream (or any other audio stream mplayer supports) and
save in wave format to the file audiodump.wav:

mplayer file.ra -ao pcm

From there, you can use lame to convert it in the mp3 format.

I have attached a script, that converts all *.wma files in a directory
into mp3s, but it should be easy enough to adopt to your situation.

I once found it via google; there are credits for the authors in the
script.

Simon


signature.asc
Description: Digital signature


Re: realaudio to mp3/wav conversion utility in FreeBSD ?

2004-05-07 Thread Simon Barner
Oops, the script was stripped off by the mailing list software. I'll
post it inline now.

- cut here -
#!/bin/sh
# extraido de http://bulmalug.net/impresion.phtml?nIdNoticia=1744
# y modificado por mapelo [EMAIL PROTECTED]
# necesita mplayer y lame

# Convertimos wma a mp3
for f in *.wma
  do
  mplayer $f -ao pcm
  mv audiodump.wav $f.wav
  #lame $f.wav
  # modificado por mapelo para hacer variable vibrate y de mayor calidad
  lame --vbr-new -V 3 -b 128 $f.wav
  rm $f.wav
  done
- cut here -


signature.asc
Description: Digital signature