Subject: Re: Recommended pkg for saving mp3 stream to file?
To: None <current-users@netbsd.org>
From: Magnus Eriksson <magetoo@fastmail.fm>
List: current-users
Date: 09/25/2004 04:30:25
On Sat, 25 Sep 2004, Daniel Carosone wrote:

> On Fri, Sep 24, 2004 at 04:15:02PM -0700, Michael Wolfson wrote:
> > I just want to time-shift my favorite radio program
> > (www.schickele.com/mix) to a more convenient time.  Is there any
> > package that'll do this without requiring decompression of the mp3
> > stream?

> Haven't tried it for this use, but probably mencoder -oac copy will do
> what you want. You might wind up with something like an avi file with
> only an audio channel.

  Assuming you need to rip rtsp:// or something that wget won't handle:

mplayer -dumpstream <URL>

  There's also a -dumpfile option to set a filename other than
"stream.dump".  I tried mencoder -oac copy (and variations thereof) too,
but could never get it to work.  This way, you'll just get the raw (as far
as I can tell) stream.

  Note that when using -dumpstream, mplayer will not spit out anything
that shows it's actually doing something, so use another shell to see the
file grow.  (Or should that be "shell instance"?)  I made the mistake of
assuming something was wrong, and retried over and over.

  Also, mplayer doesn't really behave well if you try to put it in the
background with "&", it seems -- it stops and you'll have to resume it
manually..


  This works very well (for me) with "canned" shows.  Apparently, my
connection is odd or something, I can't really listen to live radio using
mplayer.  I think it worked when I had a more reliable connection though.


Magnus