[svlug] MP3 stream capture

David E. Fox dfox at m206-157.dsl.tsoft.com
Sun Feb 12 13:09:49 PST 2006


On Tue, 7 Feb 2006 08:50:44 -0800
Don Marti <dmarti at zgp.org> wrote:


> "Internet Radio to Podcast with Shell Tools"
> http://www.linuxjournal.com/article/8171

Nice article. That's pretty close to the way I did things, except I did
conversions to wav using sox after the fact (and audacity for edits)
since my target was CD audio rather than ipod/mp3.

Prior to being clued in to 'mplayer -dumpstream', I used to use a sox
hack which let me grab the input of the ossdsp device as one input, and
save the output however I'd like:

#! /bin/sh
sox -V -c2 -r 44100 -t ossdsp -w -s /dev/dsp $1.ogg

Works well if you want to record something while you're listening to
it. The disadvantage is that it's an extra bit to set up after you have
the radio station or what have you going, and you may get artifacts
from the sound card mixed into the recording (like mcrophone, as well
as level settting from kmix / aumix) detracting from the source
recording.

> Don Marti


-- 
------------------------------------------------------------------------
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