[Icecast] Archiving live streams broken down by time.
crupp at umc-web.de
Tue Oct 5 07:11:32 PDT 2004
Marion Hall wrote:
> Is there a way that I can save an archive file by a time span; for
> example we have two radio shows that we want to have daily archives on
> the website, one that is from 7:30am to 8:00am and one that is from
> 3:00pm to 3:30pm. Is there a way that they could be saved with a
> different filename each day. Ex. OpenLine093004.ogg for the first show
> and SportsShow093004.ogg for the second show. Then have the next day
> saved with the following date.
you could use a cronjob - the first cronjob starts a shell script at
3:00; the shell script generates the filename from the current date and
time (i.e. OpenLine09001.ogg) and starts dumping the stream (i.e. with
wget). at 3:30 you start another cronjob which kills wget.
More information about the Icecast