[svlug] sound card with an AM/FM radio?

David E. Fox dfox at m206-157.dsl.tsoft.com
Sun Jul 25 11:44:55 PDT 2004


On Tue, 20 Jul 2004 14:12:58 -0700 (PDT)
Anthony Ettinger <apwebdesign at yahoo.com> wrote:

> Hi all,
> 
> So I'm trying to stream live AM radio (A's games) from
> my pc. I've found that with DarkIce and IceCast, I can
> hook up anything to my soundcard input device and

Depending on the URL, you could do a number of things. I've been
bringing down Schickele Mix off of WPLN via mplayer --dumpstream for
several months, via a cron job. Stopping the feed is easy enough, using
'sleep 3600'. Once I get the file complete, I then use mplayer & sox to
convert it to a 44.1khz stereo wav, which I then import into Audacity to
edit out some parts & burn the resulting to a CD.

It really depends on how easy it is to get to the underlying URL
(without running through a bunch of icecast web pages to start the
broadcast. If it's possible to snag the URL of the broadcast, you might
try playing the URL directly with mplayer; if that works, then you can
automate with mplayer --dumpstream.

Another possibility is streamtuner/streamripper, if that works with
stuff on icecast.

Yet another possibility -- start up the feed when you go to work, and
then (preferably, otherwise you might have a *really* big WAV file)
start an at job that will start recording the output of the soundcard to
a file on your HD. I use 'sox' for this:

#! /bin/sh
sox -V -c2 -r 44100 -t ossdsp -w -s /dev/dsp -t wav - | lame -h - $1.mp3

That automatically encodes but you can omit that, and save the result to
a WAV file.

I prefer the dumpstream solution as I can dump the resulting stream to a
WAV file directly, and the 'sox' method tends to intruduce issues like
mixer volume record control (could be set too high, etc.).


-- 
------------------------------------------------------------------------
David E. Fox                              Thanks for letting me
dfox at tsoft.com                            change magnetic patterns
dfox at m206-157.dsl.tsoft.com               on your hard disk.
-----------------------------------------------------------------------




More information about the svlug mailing list