375 Eleventh Street
San Francisco, CA 94103


   
MP3 Archives

Here's how we create our audio webcast archives:

  • The calendar (in this case, cron) lists the hours that the club is open; that is, the time periods that we wish to archive. It runs a script that records the webcast of that time period to a file.

  • Every few minutes, another script looks at the current set of archived webcasts, and updates an HTML page describing them.

  • Once a day, files more than two weeks old are deleted.

  • When you click on a link to an archive, it doesn't merely return the file: instead, it feeds the file to you slowly, to avoid saturating the network. Since these are 128k MP3 files, they are served out at a rate of 128kbps.

Here are the programs that make all that work. Please let me know if you find this useful, or make any improvements...

Rather than using slowcat for streaming, I probably could have convinced the Icecast server to serve up the MP3 data for me, but this seemed easier, and I don't think there would have been any particular performance advantage to using Icecast instead of slowcat: the place where Icecast shines is when lots of people are listening to the same stream at the same time: with an archival situation like this, every listener is hearing something different (or at a different time.)

_______________________________________________