With all of your help, I've got Ices & Icecast producing live streams for the internet. 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. Any help would be appreciated. Thanks, Marion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20041005/e6ae05e4/attachment-0001.html
Christoph Rupp
2004-Oct-05 07:01 UTC
[Icecast] Archiving live streams broken down by time.
Hi Marion, 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. Chris
Andy Baxter
2004-Oct-05 07:34 UTC
[Icecast] Re: Archiving live streams broken down by time.
On Tue, 05 Oct 2004 08:53:27 -0500, Marion Hall wrote:> With all of your help, I've got Ices & Icecast producing live streams for > the internet. > > > > 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. > > > > Any help would be appreciated.One way to do it would be to run jack as a sound daemon, then use the jackified version of ices to make the stream, and have a script which kicks off a recording session using ecasound every 30 minutes. But if you're happy to record the sessions at the same bitrate you're streaming at, the other poster's solution with wget might be better.
Chris Rupp wrote:> 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.> ChrisI believe that's going to work. Here are the commands I used: wget -O /var/mp3/openline-`date +%m-%d-%Y`.ogg http://localhost:8000/kwlv.ogg & start-stop-daemon --stop -n wget I've got the cron jobs set to the times of the shows and I'll find out tomorrow if it works. Thanks for your help Marion
Chris Rupp wrote>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.>ChrisThat worked great. Thanks, Marion