Prerequisites:

* cURL
  http://curl.haxx.se/
* FFmpeg
  http://ffmpeg.org/
* a webserver configured to serve PHP scripts
* a cron daemon

Included with this package:

* httpsegmenter (patched)
  http://code.google.com/p/httpsegmenter/
* MediaElement.js
  http://mediaelementjs.com/

Setup:

1) Copy the scripts and the mediaelement directory to a directory on your 
   webserver.
2) Change $baseurl and $description in rss.php and the webserver root 
   (default is /var/www/tmp/htdocs) in record.sh to suit your installation.
3) Go into the httpsegmenter directory, make it, and copy the binary
   somewhere in your PATH.
4) Create some cron jobs to record shows...this example records Rush Limbaugh 
   off of the KXNT live-audio stream (assuming that your clock is set to 
   Pacific time):

   5 9 * * 1-5 /var/www/tmp/htdocs/record.sh 10560 limbaugh 'http://69.31.54.132/KXNTAMAAC?streamtheworld_user=1&SRC=CBS&DIST=CBS&TGT=RadioPlayer'

   record.sh takes three arguments: recording time (in seconds), a filename
   prefix, and a stream URL.

The author of httpsegmenter put it under the GPLv2.  My change to it (line
344 of segmenter.c) is likewise under the GPLv2, included as COPYING in the
httpsegmenter directory.  

The author of MediaElement.js put it under some combination of the GPLv2 and
the MIT license.

My scripts are offered under the MIT license, included in the LICENSE file.

Send questions to scott@alfter.us.

Scott Alfter
19 July 2012
