[NBLUG/talk] Grabbing streaming audio to file

Glen Gunsalus G-Gunsalus at Mindspring.com
Fri Jun 4 09:48:32 PDT 2004


Thanks for the pointer - works exactly as advertised! I captured from 
http://streamer.krcb.org:7778.  I managed to find the correct url for krcb by 
scratching around in .RealNetworks_* files.

1) Now if I can figure out the correct URL for KQED.  I have only invoked it 
from their webpage and I don't get any information as to stream source - just 
reference to kqed_spd-x.ram files in /tmp.    kqed.org:8000 doesn't work.  Any 
ideas on were to look?

2) I need to RTFMP for mplayer, but off the top of your head is there a way to 
take the e.g. 40kbps stream krcb puts out and capture at lower sampling rate 
on the fly? I'm looking to capture voice so a) don't need all that info, b) 
don't need multi Mbyte files!.

Thanks for your help.

>>> Scott Doty said:
 > On Thu, Jun 03, 2004 at 11:39:49PM -0700, Glen Gunsalus wrote:
 > > I would like to save streaming audio from one of the "local" FM stations t
 > > file so I can listen to it when I'm actually in the house.
 > > 
 > > I thought this would be a perfect chore for "chron" or "at" using perhaps 
 > > command line realplayer, but 1) can't seem to redirect to a file, 2) can't
 > > find correct command line to grab what I want from KQED stream.
 > > 
 > > I'm currently running RH 7.3.
 > > 
 > > Any pointers gratefully accepted and acknowledged.
 > > 
 > > Cheers, Glen
 > Hi Glen,
 > Realplayer won't give you any love in this endeavor.  The command-line tool
 > "mplayer" will do exactly what you ask, however:
 >    http://www.mplayerhq.hu/
 > Mplayer is a veritable swiss army knife of media encoding, transcoding, and
 > playback.  Indeed, it is the tool that allowed me to make the final break
 > with Windows, as mplayer plays Microsoft streams (though I don't think it
 > understands DRM (yet?)).
 > Anyway, the command in question would look something like:
 >    mplayer -dumpstream -dumpfile try.mp3 http://example.com:8000/
 > This would write a file "try.mp3" from the stream on the shoutcast server
 > "example.com".
 > Caveats:
 > My version of mplayer knows how to handle rtsp:, but that may have come alon
 > with the "live" library.  In fact, I'm almost sure of it, as when I try an
 > rtsp: URL with an mplayer binary built without "live", I get:
 >    RTSP support requires the "LIVE.COM Streaming Media" libraries!
 >    Unable to open URL: rtsp://example.com:8000/
 >  ...so it may be a bit of an adventure getting that going.  I've appended
 > my "Do_Config" for mplayer, some options which you may want to add to your
 > ./configure statement...
 > I should also mention that I've had trouble capturing some Realmedia
 > streams, notably air america's stream -- your mileage may vary.  (I'd be
 > happy to test if you would give me the URL in question...)
 >  -Scott
 > p.s. my "Do_Config" script to configure mplayer:
 > #!/bin/sh
 > ./configure     --prefix=/opt/MPlayer-1.0pre4 \
 >                 --enable-largefiles \
 >                 --enable-live --enable-qtx --enable-win32 \
 >                 --with-win32libdir=/opt/win32codecs \
 >                 --enable-debug
 > This sets the installation prefix to /opt/MPlayer-1.0pre4, enables large
 > file (+2GB) support, enables LIVE.COM library support (library already
 > installed), enables quicktime (Windows codecs from mplayerhq.hu installed in
 > /opt/win32codecs), enables Windows codes (/opt/win32codecs), and turns on
 > verbose debugging messages during compile, as well as compiling with
 > debugging symbols.  If you specify --enable-qtx, you must specify
 > --enable-win32.
 > Good luck! Let me know if you need a hand...
 > _______________________________________________
 > talk mailing list
 > talk at nblug.org
 > http://nblug.org/cgi-bin/mailman/listinfo/talk

More information about the talk mailing list