Header image alt text

Morning Seditionists

Recording Streaming Audio

Now that Marc’s back, all of us over here in the East, and anybody who can’t get next to a computer or within range of KTLK , are trying to figure out the best options for listening to the show.

Basically, you’ve got two options: subscribe to AAR Premium (or just the Marc Maron Show) , or find a way to record the stream.

There are a bunch of freeware, shareware, and commercial applications available for this purpose. For Windows users, ReplayAV is a good program that does what it says it does, and is fairly reasonably priced. If you’re on a Mac, or you want to look at free or cheaper programs, your best bet is to do a google search, such as this one for Mac, or this one for Windows, or even this one, for Linux.

For “Very Simple Replay A/V instructions”, see these, generously provided by Melina on her blog. If you find them useful, don’t forget to say “thanks.”

If you have a favorite program that you use, please share by posting the information in the comments below.

4 thoughts on “Recording Streaming Audio”

  1. beemer

    OK, after much :fustrate: I got the following to work:

    The script (only very slightly modified from the URL above):

    #!/bin/sh
    #
    # recorder — wrapper to pull remote audio stream and convert contents
    # to mp3

    # Path and arguments to lame (mp3 encoder)
    lame=”/usr/local/bin/lame -S”
    # Path and arguments to mplayer (stream decoder)
    mplayer=”/usr/bin/mplayer -quiet”
    # Where to put the output files
    odir=”$HOME/”

    showname=$1
    duration=$2
    url=$3

    fifo=”${showname}_fifo”
    ofile=”$odir/${showname}-`date +%Y%m%d-%H%M`.mp3″

    mkfifo $fifo
    $lame $fifo $ofile &
    $mplayer -ao pcm:file=$fifo $url &

    sleep 5
    pids=`ps auxww | grep $fifo | awk ‘{print $2}’`

    sleep `echo ${duration}*60 | bc`

    kill $pids
    rm $fifo

    (end of file)

    I could not get the ‘today’ script to work, so I put the following in my crontab (keep in mind I’m in Eastern time zone, and don’t want to miss the show if the Clippers run late):

    0 1 * * 2-6 bin/recorder Marc_Maron 180 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf

    (I put the recorder in my $HOME/bin directory)

  2. beemer

    Yet another thought on this: You can enter multiple lines in your crontab to record smaller segments of the show. This will allow you to listen to only the parts that contain the show. There’s probably a better way, but I’m not putting a lot of effort into it.

    0 1 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf
    15 1 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf
    30 1 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf
    45 1 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf
    0 2 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf
    15 2 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf
    30 2 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf
    45 2 * * 2-6 bin/recorder Marc_Maron 15 http://live.eonstreams.com/ccri_ca_losangeles_ktlk_am.asf

    Someone in today’s thread referred to a new stream, so you may want to use that one instead.

Leave a Reply